Re: [exim] Auto whitelisting - transport filters ?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Stuart Gall
Datum:  
To: Stuart Gall
CC: exim users
Betreff: Re: [exim] Auto whitelisting - transport filters ?
AH HA - Better Idea

Just before remote smtp
ROUTER
whitelist:
         driver = dnslookup
         domains = ! +local_domains
         transport = whitelist
         unseen


TRANSPORT
whitelist:
         driver = pipe
         command = /usr/exim/whitelist_address



On 31 Oct 2006, at 00:15, Stuart Gall wrote:

> Hello,
> I want to keep a record of all recipient emails sent on the remote
> smtp, for white-listing purposes.
>
> Shadow transport would be ideal but it cant be used on non local
> transports - why ?
>
> So I tried
>
> remote_smtp:
>    driver = smtp
>    transport_filter = /usr/exim/whitelist_address $recipient_addresses

>
> AND $recipients
> Those variables don't work in a transport. - Why ?
>
> The environment variables are not setup with any data for a transport
> filter.
>
> SO
> remote_smtp:
>    driver = smtp
>    transport_filter = /usr/exim/whitelist_address

>
> and I am just going to pattern match the TO line out of the message
> in the script.
>
> BUT this is seriously sub optimal, what I want to do is some how pass
> the envelope-to(s) to my script, OH and ideally it would only be
> called if the transport succeeds like shadow transports and unlike
> transport filters.
>
> PS I do not want to grep the log file on a cron job, I prefer
> immediate response.
>
> Any Other ideas ?
>
> TIA
> Stuart.
>
>
>
> --
> ## 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/
>