Discussion:
smtpd_{relay,recipient}_restrictions don't apply to sendmail command?
(too old to reply)
m***@nileshgr.com
2013-12-04 18:18:37 UTC
Permalink
I have a postfix server configured with following restrictions -

smtpd_reject_unlisted_sender = yes

smtpd_relay_restrictions = reject_unverified_recipient, permit_mynetworks, permit_sasl_authenticated, permit_auth_destination, reject

smtpd_recipient_restrictions =
reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rhsbl_helo dbl.spamhaus.org, reject_rhsbl_sender dbl.spamhaus.org,
reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unverified_recipient, permit

smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, reject_unknown_sender_domain, reject_unlisted_sender, warn_if_reject reject_unverified_sender, permit

------------------

When I try to send mail using telnet to a failing address (aka unverified) it properly fails.
But when PHP sends mail (which uses sendmail -t -i), it queues the mail.

What am I missing?
Lemat
2013-12-23 10:54:18 UTC
Permalink
Post by m***@nileshgr.com
When I try to send mail using telnet to a failing address (aka unverified) it properly fails.
But when PHP sends mail (which uses sendmail -t -i), it queues the mail.
What am I missing?
Nothing. It works just like that.

Loading...