Sorry.. yeah discard. though there are headers checks already on this system, I can do recipient check for this one. But is it possible to discard noreply email for just only one sender? I am clear on how to discard when everything sent to noreply@.*.
check_recipient_access inline:{{nore...@example.com = discard}} On Thu, Feb 13, 2020 at 2:57 PM Wietse Venema <wie...@porcupine.org> wrote: > Linux Addict: > > Folks, I am trying to configure discord when supp...@company.com sends > to > > noreply@ / no-reply@. > > Did you mean "discard"? > > > The smtp recipient/header checks seems to parse line by line so I can > > discord to noreply, but how do add a condition. I looked if.. endif, but > I > > am unsure how to get this done with from and to lines in one regex. > > Headers are not a good way to determine where email is being sent > to. The recipient is part of the envelope. It is sent with the RCPT > TO command. > > /etc/postfix/main.cf: > smtpd_recipient_restrictions = > ... > reject_unauth_destination > check_recipient_access inline:{{nore...@example.com = discard}} > ... > > Wietse >