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.