On Tue, 17 Mar 2009, Alberto Lepe wrote:

> According to the Postfix Manual, "reject_unlisted_recipient":
> 
> > "Reject the request when the MAIL FROM address is not listed in the list of
> > valid recipients for its domain class."

No, reject_unlisted_recipient has nothing to do with the MAIL FROM; it is
used to "reject the request when the RCPT TO address is not listed in the list
of valid recipients for its domain class".

> and "smtpd_reject_unlisted_sender":
> 
> > "Request that the Postfix SMTP server rejects mail from unknown sender
> > addresses, even when no explicit reject_unlisted_sender access restriction
> > is specified."
> 
> So, If I have in my main.cf: smtpd_reject_unlisted_sender = yes, then, I
> don't need to include the  reject_unlisted_recipient rule at the
> smtpd_recipient_restrictions, right?

You are (again) confusing two different parameters; one pertains to SENDER
and the other to RECIPIENT.

> If I use that rule (either one), and someone is trying to send a mail to a
> local account from for example hotmail, gmail, or any other external server,
> means that it will be rejected??? because the FROM address is not listed in
> the local recipients. Is that true?

No.  Carefully re-read the relevant sections of postconf(5):
http://www.postfix.org/postconf.5.html#reject_unlisted_recipient
http://www.postfix.org/postconf.5.html#reject_unlisted_sender
http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_recipient
http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_sender

-- 
Sahil Tandon <sa...@tandon.net>

Reply via email to