AW: [Exim] Sender address check for authenticated users

Top Page
Delete this message
Reply to this message
Author: Matthias Lewandowski
Date:  
To: 'Oliver Egginger', exim-users
Subject: AW: [Exim] Sender address check for authenticated users
> -----Ursprüngliche Nachricht-----
> Von: Oliver Egginger [mailto:Oliver.Egginger@dvz.fh-giessen.de]
> Gesendet: Donnerstag, 16. Oktober 2003 12:23
> An: exim-users@???
> Betreff: [Exim] Sender address check for authenticated users
>
>
> Hello,
>
> I want to check the domain of the (envelope) sender address
> if a user is
> authenticated. Authenticated users are allowed to relay through
> our mailgate but only if they use a local sender address.
> I'am at a loss
> at the moment. The acl_smtp_auth ACL would be a nice place for doing
> this, but the AUTH command could happend before the MAIL FROM command
> appears, I think. Also I can't restrict everybody to local sender
> adresses, cause I want receive mail from the internet from
> everyone for
> our local users.
>
> At the moment I got this acl:
>
> ------------
>
> acl_check_rcpt:
>
>   deny    local_parts   = ^.*[@%!/|] : ^\\.

>
>   accept  local_parts   = postmaster
>           domains       = +local_domains

>
>   require verify        = sender/callout
>   require verify        = recipient

>
>   accept  domains         = +relay_to_domains
>   accept  authenticated = *

>
>   deny    message       = relay not permitted

>
> ---------
>
>
> This seems to work fine but authenticated users can use every address
> they like. How can I restrict them to local addresses (domains) ??
> Every hint would be appreciated.
>
> regards
> oliver
>
>
>
>
> --
>



maybe this way:

accept authenticated = *
       sender_domains = +local_domains



Mit freundlichen Grüßen
Matthias Lewandowski
__________________________________________________
Telefon +49 (30) 59 00 69-0
Telefax +49 (30) 59 00 69-99
COM.BOX Internet Service GmbH
Potsdamer Strasse 96 - D-10785 Berlin
Amtsgericht Berlin-Charlottenburg - HRB 71171
Geschäftsführer: Lutz Treutler
<http://www.combox.de/> - <mailto:support@combox.de>