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:

# 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

user1@example.com              OK
user2@example.com              OK
and more.....

:wq!                                         Save and exit the file.



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

Popular posts from this blog

Squid Configuration

Squint Configure

Postfix SASL authentication with SMTP port 465:

How to Change the Logo from Zimbra Admin Console