[exim] control outgoing relay

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Raphael Reich
Date:  
À: exim-users
Sujet: [exim] control outgoing relay
Thanks for the enlightenment.

I will try it and report later on.

Raphael

-----Ursprüngliche Nachricht-----
Von: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] Im
Auftrag von Tony Finch
Gesendet: Mittwoch, 11. Mai 2005 17:36
An: Raphael Reich
Cc: exim-users@???
Betreff: Re: [exim] control outgoing relay

On Wed, 11 May 2005, Raphael Reich wrote:
>
> The users (whitch are all system users having maildirs) authenticate
> themselves via SMPT AUTH. The problem is, that e.g. the user tom
> (tom@???) can use any local part as sender address (e.g.
> anything@???). I want to restrict the users to their own
> local part.


In the RCPT ACL for your message submission service, put the following:

# Do return address verification.

  require
    verify         = sender


# Check that authenticated users aren't pretending to be someone else.

  deny
    message        = Sender address does not match authenticated user
    authenticated  = *
  ! condition      = ${if and{{ def:sender_address_data } \
                             {{ eq{$sender_address_data}{$authenticated_id}
}} }


In the router that handles email addresses of local users, add

address_data = $local_part

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/