How to restart sendmail in AIX

I had to work with an AIX box today which was having some issues with the mailq getting filled up frequently. The issue was not with the AIX box but the out SMTP box. Damn those spammers!!

Anyway, I had to restart the sendmail daemon on the AIX box. Walk through below,

1. Verify if sendmail is running. “ps -ef | grep sendmail“.

This should show: root 5704 1 0 11:08:42 – 0:00 sendmail: accepting connections on port 25

2. Stop sendmail. “stopsrc -s sendmail” or “kill -1 `cat /etc/senamail.pid`.

3. Verify if sendmail is running. “ps -ef | grep sendmail“.

No process should be returned.

4. Start sendmail. “startsrc -s sendmail -a “-bd -q30m”“.

-bd will start the sendmail as a SMTP mail relay router.

-q will the the interval in which the sendmail daemon will process save messages. If none is provided the daemon will default to instant processing.

5. Verify if sendmail is running. “ps -ef | grep sendmail“.

This should show: root 5704 1 0 11:30:23 – 0:00 sendmail: accepting connections on port 25

  • http://wingloon.com Wing Loon

    This is totally different from Unix, Linux and Solaris. Do you have SpamAssassin running in the box?

  • http://thedaneshproject.com Danny

    nope, no spam assassin.

  • Kishur

    Thanks for helping us to fix the server and also for the info.

© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak