1: Local exchange server connect to Proxmox Internal SMTP port: 26 for outgoing emails.
2: At /etc/postfix/invalidemail,i have such content and run postmap for /etc/postfix/invalidemail
dsfcdsf@gmail.com REJECT No such user found on the system.
sdsff@gmail.com REJECT No such user found on the system.
3: At main.cf,i add check_recipient_access hash:/etc/postfix/invalidemail to smtpd_recipient_restrictions,but it never reject emails to dsfcdsf@gmail.com
All are accepted by default,how to make it works to reject emails in the list of /etc/postfix/invalidemail
2: At /etc/postfix/invalidemail,i have such content and run postmap for /etc/postfix/invalidemail
dsfcdsf@gmail.com REJECT No such user found on the system.
sdsff@gmail.com REJECT No such user found on the system.
3: At main.cf,i add check_recipient_access hash:/etc/postfix/invalidemail to smtpd_recipient_restrictions,but it never reject emails to dsfcdsf@gmail.com
All are accepted by default,how to make it works to reject emails in the list of /etc/postfix/invalidemail