On Wed, May 29, 2013 at 10:14:28AM +0300, Bogdan Enache wrote:

> My "smtpd_sender_restrictions" looks like this:
> 
> smtpd_sender_restrictions =
>         permit_mynetworks,
>         permit_sasl_authenticated,
>         reject_sender_login_mismatch
> 
> so where will I put the rule? Is "permit_auth_destination" also required
> before the "check_sender_access"?

If the above is what you want, then modify it as follows:

    indexed = ${default_database_type}:${config_directory}/
    smtpd_sender_restrictions =
            check_sender_access ${indexed}internal_senders,
            permit_mynetworks,
            reject_unauthenticated_sender_login_mismatch

with:

    internal_senders:
        lus...@example.com      permit_auth_destination, reject
        lus...@example.com      permit_auth_destination, reject
        ...

> Also, if I do that, will the 2 addresses be able to send to all internal
> domains or only to the same domain they're in (I'm trying to accomplish
> the second one actually)?

The first, the second is rather more complex.

-- 
        Viktor.

Reply via email to