Re: [exim] test database conn to prevent rejecting messages

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jasen Betts
Datum:  
To: exim-users
Betreff: Re: [exim] test database conn to prevent rejecting messages
On 2013-10-04, josh trier <josh@???> wrote:
> I am writing an ACL that a few of my relay servers will use. All is fine
> with code. However if the central database server can not be connected to I
> want to disable the ACL to prevent messages from being rejected.
>
> Right now this is what happens if DB conn fails (example of stopping mysqld
> service)
>
> SMTP>> 451 Temporary local problem - please try later451 Temporary
> local problem - please try later
> LOG: MAIN REJECT
>   H=localhost [127.0.0.1] F=<root@???> temporarily
> rejected after DATA: MYSQL     connection failed: Can't connect to
> local MySQL server through socket '/var/lib/mysql/mysql.sock'    (2)


hmm, that's a tricky one.

perhaps you can probe the database socket using "${readsocket ... }"

http://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html



--
⚂⚃ 100% natural