1

With Mailscanner (v4.85.2) and Postfix (v2.11.1-1) on Ubuntu mail is being delivered, but there are times where messages sit on the incoming queue after mailscanner has scanned them for right at 5 minutes before being delivered (in my case I'm delivering to Cyrus IMAP, but I believe that's inconsequential as the problem is that postfix isn't trying to deliver them until a certain timeout occurs).

gymbrall
  • 169
  • 8

1 Answers1

4

At some point (in 2013, I believe), the postfix package changed the entry for qmgr from fifo to unix in master.cf (in /etc/postfix on my system). Because of this change, the delay was introduced. You probably also have this message in your mail log: KickMessage failed as couldn't write to /var/spool/postfix/public/qmgr

To fix this, change the qmgr entry in master.cf from:

qmgr      unix  n       -       n       300     1       qmgr

to

qmgr      fifo  n       -       n       300     1       qmgr

and reload postfix.

Thanks to the this mailscanner list thread for providing the answer.

sebix
  • 4,175
  • 2
  • 25
  • 45
gymbrall
  • 169
  • 8
  • 1
    For changes in `master.cf` a restart is needed AFAIK. – sebix May 14 '15 at 10:25
  • 1
    @sebix Just FYI, according to the documentation for master (5) on Linux, a postfix reload is sufficient: 'After changing master.cf you must execute "postfix reload" to reload the configuration.' – gymbrall Jul 09 '15 at 17:17
  • 1
    You seem to be right on that. I think, when I started with postfix, this wasn't the case. – sebix Jul 11 '15 at 13:15