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