Qmail tips
This short article enumerates tips for qmail (a reminder for me):
Repair the queue
The queue is located here : /var/qmail/queue/ , you can repair it with queue_repair ( http://www.qcc.ca/~charlesc/software/queue_repair/ ).
command:
./queue_repair.py -c -s 23 --no-bigtodo /var/qmail
see: http://www.qcc.ca/~charlesc/software/queue_repair/docs.html#docs -c create and repair -s 23 number of split directories --no-bigtodo if your qmail don't use the qmail big-todo patch
Setup as MX secondary for a domain
It's quite simple, add the domain in the /var/qmail/control/rcpthosts of each recorded MX secondary. And, restarts qmail (just kill -HUP).
exemple:
server1.domain1.tld has: MX 10 server1.domain1.tld MX 20 server2.domain2.tld on server2.domain2.tld, in /var/qmail/control/rcpthosts file add line: server1.domain1.tld
Watch qmail logs with date/time
Qmail use a special log format for the date and the time (maybe seconds number since 1/1/1970 ). tai64nlocal shows user fiendly date/time.
exemple:
# tail -f /var/log/qmail/current | tai64nlocal 2005-02-10 14:07:55.565508500 delivery 3973: success: did_1+0+0/ 2005-02-10 14:07:55.565510500 status: local 0/10 remote 0/20 2005-02-10 14:07:55.565511500 end msg 52055 2005-02-10 14:27:01.610629500 new msg 52055

#. Jkx on Wed Oct 20 23:06:05 2004
Subliminal message, postfix handle MX dns lookup without any tricks :)