Hello,
I have finally managed to set up my postfix mail server using Virtualmin on CentOS 5.5 Running on a Xen Virtual machine.
Postfix does appear to process mail correctly but messages take a long time (3-6 minutes) to process through the queue. If I try to flush the mail queue I receive the error message;
postqueue: fatal: Cannot flush mail queue - mail system is down
If I run the command postfix reload
then the mail queue appears to clear and mail is delivered to the relevant inbox.
Below is the output of the postfix log when sending a test email and trying to flush the queue manually. I am new to postfix but I think these are the relevant sections of the maillog.
Jun 15 11:49:23 server postfix/smtpd[6645]: connect from mail-ww0-f47.google.com[74.125.82.47] Jun 15 11:49:23 server postfix/smtpd[6645]: 1C07F1E3B4: client=mail-ww0-f47.google.com[74.125.82.47] Jun 15 11:49:23 server postfix/cleanup[6649]: 1C07F1E3B4: message-id= Jun 15 10:49:37 server postfix/postqueue[6707]: fatal: Cannot flush mail queue - mail system is down Jun 15 11:49:54 server postfix/smtpd[6645]: disconnect from mail-ww0-f47.google.com[74.125.82.47] Jun 15 10:52:45 server postfix/qmgr[17625]: 1C07F1E3B4: from=, size=4530, nrcpt=1 (queue active) Jun 15 11:52:45 server postfix/local[9231]: 1C07F1E3B4: to=, orig_to=, relay=local, delay=202, delays=202/0.01/0/0.13, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME) Jun 15 11:52:45 server postfix/cleanup[9232]: 4E64E1E3DB: message-id= Jun 15 11:52:45 server postfix/local[9231]: 1C07F1E3B4: to=, orig_to=, relay=local, delay=202, delays=202/0.01/0/0.14, dsn=2.0.0, status=sent (forwarded as 4E64E1E3DB) Jun 15 10:52:45 server postfix/qmgr[17625]: 1C07F1E3B4: removed Jun 15 11:53:14 server postfix/anvil[6647]: statistics: max connection rate 1/60s for (smtp:74.125.82.47) at Jun 15 11:49:23 Jun 15 11:53:14 server postfix/anvil[6647]: statistics: max connection count 1 for (smtp:74.125.82.47) at Jun 15 11:49:23 Jun 15 11:53:14 server postfix/anvil[6647]: statistics: max cache size 1 at Jun 15 11:49:23
I am not running spam or virus filtering, could the delay be postfix trying to run the emails through ClamAV / Spamassasin and the requests timing out because the respective servers aren’t running?
Or is it more likely a DNS problem? however mail is reaching the server almost instantly, its just held up in the queue for a long time.
Is it normal for the time entries in the maillog to not appear in chronological order? I assume this is because the time is taken from different servers, i.e. remote and my server?
Thanks in advance for any insight into the above, please let me know if you need me to post any further logs or configuration files or need further information.
Kind regards,
Chris.