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

3 Responses to “How to restart sendmail in AIX”

Author comments are in a darker gray color for you to easily identify the posts author in the comments

  1. Wing Loon says:

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

  2. Danny says:

    nope, no spam assassin.

  3. Kishur says:

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

Leave a Reply

© 2008-2009 The Danesh Project
Powered by Wordpress and made by Guerrilla. Best viewed in Mozilla Firefox