Postfix and MailScanner

Mark Sapiro mark at msapiro.net
Sat May 16 01:11:32 UTC 2015


On 05/15/2015 05:15 PM, Kevin Miller wrote:
> Curiously, the init.d script doesn't mention postfix, but it does start it.  If I stop MailScanner and do a "ps aux | grep postfix" nothing is there.  If I start MailScanner postfix starts:
> 
> root at mxt:/var/log# ps aux | grep postfix
> postfix  28957  0.0  0.8 114488 41792 ?        Ss   16:11   0:00 MailScanner: master waiting for children, sleeping
> postfix  28958 10.7  2.7 236320 135860 ?       S    16:11   0:02 MailScanner: waiting for messages
> postfix  29026 13.5  2.7 236316 135912 ?       S    16:11   0:02 MailScanner: waiting for messages
> root     29076  0.0  0.0  12724  2232 pts/2    R+   16:12   0:00 grep postfix


I don't see postfix anywhere in the above.

I know you said in a followup the reboot fixed it. Could that be because
init started postfix.

Here's what I see on Ubuntu 14.04.2 with MailScanner 4.85.2-3.

> root at new-sbh16:~# ps -fwu postfix
> UID        PID  PPID  C STIME TTY          TIME CMD
> postfix   2041     1  0 08:18 ?        00:00:00 MailScanner: master waiting for children, sleeping
> postfix   2042  2041  0 08:18 ?        00:00:03 MailScanner: waiting for messages
> postfix   2190  2182  0 08:18 ?        00:00:00 qmgr -l -t fifo -u
> postfix   4199  2182  0 16:38 ?        00:00:00 pickup -l -t fifo -u -c

Both Mailscanner and Postfix running.

Stop MailScanner
> root at new-sbh16:~# service mailscanner stop
> root at new-sbh16:~# ps -fwu postfix
> UID        PID  PPID  C STIME TTY          TIME CMD
> postfix   2190  2182  0 08:18 ?        00:00:00 qmgr -l -t fifo -u
> postfix   4199  2182  0 16:38 ?        00:00:00 pickup -l -t fifo -u -c

Postfix still running

Stop Postfix
> root at new-sbh16:~# service postfix stop
>  * Stopping Postfix Mail Transport Agent postfix                         [ OK ] 
> root at new-sbh16:~# ps -fwu postfix
> UID        PID  PPID  C STIME TTY          TIME CMD

All stopped

Start MailScanner
> root at new-sbh16:~# service mailscanner start
> 
> 
> root at new-sbh16:~# ps -fwu postfix
> UID        PID  PPID  C STIME TTY          TIME CMD
> postfix   4437     1  0 18:03 ?        00:00:00 MailScanner: master waiting for children, sleeping
> postfix   4438  4437 41 18:03 ?        00:00:02 MailScanner: waiting for messages

Only MailScanner Running

Start Postfix
> root at new-sbh16:~# service postfix start
>  * Starting Postfix Mail Transport Agent postfix                         [ OK ] 
> root at new-sbh16:~# ps -fwu postfix
> UID        PID  PPID  C STIME TTY          TIME CMD
> postfix   4437     1  0 18:03 ?        00:00:00 MailScanner: master waiting for children, sleeping
> postfix   4438  4437 10 18:03 ?        00:00:02 MailScanner: waiting for messages
> postfix   4547  4544  0 18:04 ?        00:00:00 pickup -l -t fifo -u -c
> postfix   4548  4544  0 18:04 ?        00:00:00 qmgr -l -t fifo -u
> root at new-sbh16:~# 

All running.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list