How to restart sendmail in AIX

10 Dec, 2007  |  Posted by Danesh  |  in Linux

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

  • Digg
  • del.icio.us
  • BlinkList
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Furl
  • Google
  • Live
  • Facebook
  • Pownce
  • TwitThis
  • E-mail this story to a friend!
Tags: , , , , ,

3 Responses so far | Have Your Say!

  1. Wing Loon  |  December 11th, 2007 at 2:00 am #

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

    Wing Loon - Gravatar
  2. Danny  |  December 11th, 2007 at 3:31 pm #

    nope, no spam assassin.

    Danny - Gravatar
  3. Kishur  |  December 16th, 2007 at 8:12 pm #

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

    Kishur - Gravatar

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>