Ludo blog

en
Oct 2017
Mo Tu We Th Fr Sa Su
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

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
by ludovic Bellier on Sun Sep 26 15:52:23 2004 (Viewed: 6827 / 2 comments )
  |   RSS  |   RSS2  |   Atom  |   Source  |   Edit

#.   Jkx on Wed Oct 20 23:06:05 2004
Subliminal message, postfix handle MX dns lookup without any tricks :)
#.   Ludo on Fri Oct 29 17:27:27 2004
Subliminal response, qmail version don't change since few years, because no holes was found...
Comments not allowed anymore on this post