OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Problem configuration: only auth user can send mail

From: andrea (battagliaexentrica.it)
Date: Mon Jun 19 2006 - 11:02:52 CDT


Hi,

I've installed postfix 2.2.10 with these options :

make makefiles CCARGS="-DUSE_TLS -I/usr/local/include -DUSE_SASL_AUTH -I/usr/include/sasl -DHAS_LDAP -I/usr/include" AUXLIBS="-L/usr/local/lib -lssl -lcrypto
 -L/usr/lib -lsasl2 -L/usr/lib -lldap -llber"

I need to allow user to send a message only if MailFrom field is equal to the login name (after authentication).
To make this I've set these parameters:

smtpd_sender_login_maps = ldap:/etc/postfix/ldap- aliases.cf
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_sender_login_mismatch

With this settings I obtain what I needed but with a side effect: a "non authenticated user" can't send a message.
Can I change settings in order to allow:
- a non authenticated user to send email
- an authenticated user to send email only if login name = MailFrom field ?

Thanks

Andrea Battaglia