Sender Access Check in Postfix(Debian)
Sender Access Check in Postfix: (outgoing)
To control unwanted mail sending go for the following
steps:
Step 1. Add a line in main.cf file:
Step 1. Add a line in main.cf file:
# vim /etc/postfix/main.cf
smtpd_sender_restrictions = hash:/etc/postfix/sender_access
Step 2. Create sender_access file and give all the valid users account as following:
# vim /etc/postfix/sender_access
Step 3. Run the following Command:
postmap /etc/postfix/sender_access
Step 4. Restarts postfix service.
/etc/init.d/postfix restart
Check the mail log with non-listed user of sender_access file.
tail -f /var/log/mail.log
Comments
Post a Comment