I forgot to mention that when you use "smtpd_sender_login_maps"
you also need to add the following to the main.cf file.


smtpd_sender_restrictions = reject_sender_login_mismatch

2009/7/26 David Touzeau <[email protected]>:
> Le dimanche 26 juillet 2009 à 19:26 +0200, mouss a écrit :
>> David Touzeau a écrit :
>> > Dear
>> >
>> > I have a plan to do this :
>> > Some people can send mails to Internet (foreign domains)
>> > Some people can only send mails to the user local database and not to
>> > foreign domains.
>> >
>> > Is there a "map" solution to do this behavior ??
>> >
>>
>> smtpd_sender_restrictions =
>>       check_sender_access hash:/etc/postfix/privileged_sender
>>       reject_unauth_destination
>>
>> == privileged_sender
>> [email protected]               OK
>> [email protected]      OK
>>
>>
>> if you want more, use restriction classes.
>>
>> In either case, users can forge the sender address. if this is an issue,
>> you need SASL authentication, preferably with smtpd_sender_login_maps
>> (the alternative would be to give no login:pass to "restricted" users).
>>
>
> THanks !!!
>
> This answer to my needs exactly what i want !!
>
>



-- 
Regards,
Damian Myerscough

Reply via email to