On 2013-10-04, josh trier <[email protected]> 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=<[email protected]> 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

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to