Arnt's improvement of:
* NO [ALERT] Maintenance mode, back in two minutes
works a treat with Thunderbird. I tried sometime similar for pop3:
#!/bin/bash
echo "+OK maintenance ready"
sleep 2
echo "+OK Password required"
sleep 2
echo "+OK logged in"
sleep 2
echo "-ERR Maintenance Mode"
But it never shows an error (with Thunderbird at least) - I looked at
the RFC for POP3 and it looks like you can only specify +OK or -ERR, and
the -ERR doesn't get presented to the client. But at least in this mode
it will not present an error.
What you could do if you're using load balanced servers as I am with the
keepalived daemon with linuxvirtualserver, is to have the "sorry server"
set to one of these scripts. Then whenever the real system is down (for
maintenance or in a fault situation), the clients automatically get
switched over to the dummy system. Could be handy to minimise the number
of support calls while trying to fix the system :)
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail