postfix: only accept relay mail from authenticated users
hi!
I've set up postfix to get collect mails for a given domain and also relay mail to any other domain (mynetworks = 0.0.0.0/0) so that people is able to send mails using our SMTP, however I want only authenticated users to be able to send mails to other domains and not just anyone. Is there an easy way to ask for that (and at the same time continue accepting any mail to our local domain)? Thanks in advance. |
In smtpd_recipient_restrictions, you need to add "permit_sasl_authenticated,reject_unauth_destination" at the first
Here is mine: smtpd_recipient_restrictions = permit_sasl_authenticated, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client list.dsbl.org, reject_rbl_client rbl.mail-abuse.org, reject_rbl_client spamsources.fabel.dk, permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_destination |
That's right, racra.
With only this, it worked (I was asking on the irc channel of postfix as well): smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination Thanks for your kind reply anyway. :-) |
Quote:
Code:
smtpd_recipient_restrictions = |
All times are GMT -5. The time now is 11:14 PM. |