How to limit Mail Forward just for specific user

Discussion in 'General' started by psvec, Jan 8, 2025.

  1. psvec

    psvec New Member

  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    I guess you could use a sieve rule for this.

    Code:
    require ["reject", "address"];
    
    if not address :is "From" "[email protected]" {
        reject "Mail rejected - non-accepted sender.";
    }
    
    This is untested so you might need to read into the sieve docs
     
    till likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess Sieve is indeed the only way. But this also means you must remove the mail forward, replace it with a mailbox, and then add the forwards for the recipients in sieve plus the above filter as custom sieve rule in ISPConfig.
     
    ahrasis likes this.

Share This Page