OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: reject sender with a different domain of mine

From: Angelos Karageorgiou (angelosunix.gr)
Date: Fri Aug 03 2007 - 04:52:43 CDT


Would it be of interest to anyone a Milter that validates sender
addresses from an ldap server ?
I wrote it as a milter due to need to interface with sendmail too :-(

O/H Tony Earnshaw έγραψε:
> David Brachet skrev, on 02-08-2007 13:21:
>
>> I have a problem: everybody can send a mail from my local network.
>> For example, my domain is my_domain.com, and i can send a mail if my
>> mail address is toto.fr <http://toto.fr>. I would like that a user
>> on my local network can send a mail only if his mail address is
>> totomy_domain.com, and for totototo.fr <mailto:totototo.fr>, the
>> user must authenticate for example.
>>
>> What is the rule i must add? I try several, but no result. Thanks
>
> Most of the answer is in RESTRICTION_CLASS_README, at the end. If you
> want to allow authenticated users unrestricted relay, you would
> implement SASL authentication and put permit_sasl_authenticated before
> check_sender_access.
>
> --Tonni
>