Ok, I checked the references... so let me correct my question:

"reject_unlisted_recipient" was indeed "reject_unlisted_sender".

So, If I use that rule, 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?

Right?


Thank you.


On Tue, Mar 17, 2009 at 11:04 AM, Alberto Lepe <d...@alepe.com> wrote:

> Ok, that makes sense... I have so many windows opened that i didn't
> rechecked what I was reading... sorry for that.
>
> Have a nice day.
>
>
> On Tue, Mar 17, 2009 at 10:44 AM, Sahil Tandon <sa...@tandon.net> wrote:
>
>> 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