Hi!

On Tue, 2009-08-18 at 21:09 +0200, Patrick Ben Koetter wrote:
> Take a look at these options documented in postconf(5):
> 
> smtpd_sender_login_maps (default: empty)
>        Optional  lookup  table with the SASL login names that own sender (MAIL
>        FROM) addresses.
> 
>        Specify zero or more "type:table"  lookup  tables.  With  lookups  from
>        indexed  files such as DB or DBM, or from networked tables such as NIS,
>        LDAP or SQL, the following search operations are  done  with  a  sender
>        address of u...@domain:
> 
>        1) u...@domain
>               This table lookup is always done and has the highest precedence.
> 
>        2) user
>               This  table  lookup  is  done  only  when the domain part of the
>               sender address matches $myorigin,  $mydestination,  $inet_inter‐
>               faces or $proxy_interfaces.
> 
>        3) @domain
>               This table lookup is done last and has the lowest precedence.
> 
>        In all cases the result of table lookup must be either "not found" or a
>        list of SASL login names separated by comma and/or whitespace.
> 
>        ...
> 
>        reject_authenticated_sender_login_mismatch
>               Enforces   the   reject_sender_login_mismatch   restriction  for
>               authenticated clients only. This feature is available in Postfix
>               version 2.1 and later.
> 
>        ...
> 
>        reject_sender_login_mismatch
>               Reject the request when  $smtpd_sender_login_maps  specifies  an
>               owner  for  the  MAIL FROM address, but the client is not (SASL)
>               logged in as that MAIL FROM address owner; or when the client is
>               (SASL) logged in, but the client login name doesn't own the MAIL
>               FROM address according to $smtpd_sender_login_maps.
> 
>        reject_unauthenticated_sender_login_mismatch
>               Enforces the reject_sender_login_mismatch restriction for  unau‐
>               thenticated  clients  only. This feature is available in Postfix
>               version 2.1 and later.

Thank you. I understood that with 'smtpd_sender_login_maps' one can
create ownership between SASL usernames and MAIL FROM addresses.
However, I fail in seeing how this can fix my task:

One of my local recipient addresses should only receive email from
specific SASL usernames. So it's rather a "SASL username -> RCPT TO"
ownership I am searching for. Maybe the above can be used to do that but
I fail to see how.

Any further pointers in the right directions are welcomed!

Cheers,
Stephan

Reply via email to