Rejecting non local mail for specific e-mail address
Hello!
I have a server with Debian Sarge, Postfix, Amavis, Spamassasin ... I would like to restrict one specific local e-mail address to receive emails which are not local or from our home domain. This e-mail address is actually an alias for large group of people (local e-mail accounts). I want only local users or users from our domain to be able to send email to group using this alias. Thank you for ideas! DarkO |
The parameter you need to change is "smtpd_recipient_restrictions".
By default, it's set to Quote:
Quote:
Code:
postconf -e "smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access hash:/etc/postfix/recipient_access, reject_unauth_destination" Quote:
Code:
postmap /etc/postfix/recipient_access Code:
postfix reload Cheers |
Thank you very much! This is the best answer I've got in a very long time.
Thanks again! Darko |
Quote:
|
It works exactly as I wanted. It allows our local and VPN users to send mail to this address and rejects mails from other IPs!
Thank you again!!! |
All times are GMT -5. The time now is 12:56 PM. |