[Pkg-exim4-users] How to run a script before each queue run?
Mike Cardwell
exim-users-debian at lists.grepular.com
Sun Mar 11 15:19:15 CET 2007
* on the Sat, Mar 10, 2007 at 02:00:14PM +0000, Eugen Melinte wrote:
> Is there a way to run a script before each queue run or before the
> SMTP transport connects to the smarthost?
>
> Background info: I am using as smarthost the SMTP server of my ISP.
> They have just changed the policies on their SMTP servers and now
> each time my exim connects to the smarthost it gets a "550
> Authorization required". This is because now they require POP before
> SMTP authentication. Which is why I need to run the script _before_
> any of those two events (queue run or SMTP connect).
>
> Any advice welcome.
You might be able to set up something like readsocket in a condition in
the router that passes the mail onto the smarthost (untested):
condition = ${if eq\
{${readsocket\
{inet:your.isps.pop.host:110}\
{USER your.username\nPASS your.password\nQUIT\n}\
{30s}\
{}\
{}\
}}\
{}\
{true}\
{true}\
}
If you're using pop over SSL that becomes more of a problem. I'd
probably use "openssl s_client" and ${run} for that. But if
you're ISP is making you use POP before SMTP I doubt they're
sophisticated enough for SSL.
Mike
More information about the Pkg-exim4-users
mailing list