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: Tony Earnshaw (tonnihetnet.nl)
Date: Thu Aug 02 2007 - 08:13:38 CDT


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

--
Tony Earnshaw
Email: tonni at hetnet dot nl