Re: [exim] authenticated users in exim router

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Mike Cardwell
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] authenticated users in exim router
Jonathan Gilpin wrote:
> Hi,
>
> I have the following in my spamcheck_director..
>
> spamcheck_director:
>    driver = manualroute
>    domains = ${lookup mysql {MYSQL_Q_SPAMC}{$value}}
>    senders = ! ${lookup mysql {MYSQL_Q_WHITELIST}{$value}}
>    condition = ${if and { \
>      {!eq {$received_protocol}{spam-scanned}} \
>      {!eq {$received_protocol}{local}} \
>      } {1}{0}}
>    headers_remove = X-Spam-Flag
>    route_list = "* localhost byname"
>    transport = spamcheck
>    verify = false

>
>
> But I would like to add a line so that I do not spamcheck mails from
> people who have authenticated to send the message..
>
> is this possible?


$authenticated_id will be set to something if you used server_set_id in
your authenticator. You could add an extra item to your condition, giving:

condition = ${if and { \
{eq{$authenticated_id}{}} \
{!eq {$received_protocol}{spam-scanned}} \
{!eq {$received_protocol}{local}} \
} {1}{0}}

--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/