On Thu, Jan 8, 2009 at 11:10 AM, Martin Spinassi
<martins.li...@gmail.com> wrote:
> On Thu, 2009-01-08 at 10:10 -0300, Reinaldo de Carvalho wrote:
>> On Thu, Jan 8, 2009 at 9:20 AM, Martin Spinassi <martins.li...@gmail.com> 
>> wrote:
>> > main.cf:
>> >
>> > smtpd_sender_restrictions=
>> >        check_client_access hash:/etc/postfix/access
>> >        reject
>> >
>>
>> s/check_client_access/check_sender_access/
>>
>> but this a problem if is a external MTA.
>>
>> >
>> > Martín
>> >
>> >
>
> Hey! That did the trick!
>
> Thanks for the help. Can you explain me why is it a problem if it si an
> external MTA?
>
>
> Martín
>

Because any sender not equal to example.com will be reject.

You should enforce sender domain only for local network or
autenthicated connections.

Example:

smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access

# /etc/postfix/access
example.com          permit_mynetworks, permit_sasl_authenticated, reject

# postmap /etc/postfix/access

-- 
Reinaldo de Carvalho
http://korreio.sf.net (Now available in English)
http://python-cyrus.sf.net

Reply via email to