OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: check sender address for auth user only ?

From: mouss (usebsdfree.fr)
Date: Fri Jun 09 2006 - 22:05:18 CDT


Dalis-Adrian wrote:
> Hello
> I need to allow authenticated user only to send mail with from *domain.com, the only solution to
> made this is to allow per user with specific user_fromdomain.com, or a settings like
> check_sender_access_for_auth_only .
> Or if i have a variable that return auth username(user login) not %u , to use in sql query, the
> problem is solved.
>
>

Do it the opposite way:
    if sender is in right domain => permit sasl (possibly with
reject_*_sender_login_mismatch)
    else => not