Re: [Exim] Restricting From: addresses for SMTP

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Graham Briggs
CC: exim-users
Betreff: Re: [Exim] Restricting From: addresses for SMTP
On Wed, 13 Nov 2002, Graham Briggs wrote:

>
> I have SMTP AUTH configured (for PLAIN, CRAM-MD5, LOGIN) without a
> problem, and that is working great, but I would like to restrict the
> addresses that a person can send from via the SMTP server.
>
> For example, if I have a mailbox account "user@domain", I would like to
> restrict them to sending emails from "user@domain" only via SMTP.


You could block the incoming messages in the ACL:

  deny   authenticated = *
         message   = You must send from your authenticated address
         condition = ${if eq {$authenticated_id}{$sender_address}{no}{yes}}


(with possible variations such as upper/lower casing, etc.)

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.