OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Allowing only specific users on a relay

Allowing only specific users on a relay


Subject: Allowing only specific users on a relay
From: Andreas Siegert (afxsuse.de)
Date: Thu Dec 02 1999 - 07:02:34 CST


Hi,
if I want to limit which users can send mail to the internet, how can I do
this on a relay?
All inbound mail should apss easily, but outbound mail should only be accepted
if the sender appears in an acess list.
My idea is to use the following:

smtpd_sender_restrictions=
        reject_unknown_client
        reject_invalid_hostname
        reject_unknown_hostname
        reject_unknown_sender_domain
        check_sender_access regex:internet.allowed
        reject_non_fqdn_hostname
        permit

where internet.allowed is the following

user1site.de OK
user2site.de OK
user3site.de OK
 ...
usernsite.de OK
.*site.de REJECT

will that work?

thx
afx

-- 
SuSE Muenchen GmbH                Phone: +49-89-42769-0
Stahlgruberring 28                Fax:   +49-89-42017701
D-81829 Muenchen, Germany
                      May the Source be with you!



This archive was generated by hypermail 2b27 : Thu Dec 02 1999 - 07:04:17 CST