System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

error when starting sendmail

SOLVED
Go to solution
naths
Occasional Contributor

error when starting sendmail

[root@adams root]# service sendmail restart
Shutting down sendmail: [FAILED]
Shutting down sm-client: [FAILED]
Starting sendmail: [ OK ]
Starting sm-client: sendmail: fatal: flush queue mode requires no recipient
[FAILED]
[root@adams root]#

[root@adams root]# ps -ef | grep sendmail
root 27511 23990 0 08:43 pts/0 00:00:00 grep sendmail
[root@adams root]#

Could some one please tell how to restart the sendmail deamon
10 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: error when starting sendmail

Shalom,

Line by line:

[root@adams root]# service sendmail restart
Shutting down sendmail: [FAILED]
# sendmail was not running
Shutting down sm-client: [FAILED]
# sm-client was not running
Starting sendmail: [ OK ]
#sendmail started successfully
Starting sm-client: sendmail: fatal: flush queue mode requires no recipient
# sm-client pretty much does nothing, don't worry about it.
[FAILED]
[root@adams root]#

# check /var/log/maillog to see why and when sendmail failed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
naths
Occasional Contributor

Re: error when starting sendmail

Hi SEP,

these were the errors which I found in /var/log/maillog.

Jun 11 07:36:46 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.82.247.152, lip=171.70.117.190
Jun 11 07:36:51 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.82.247.152, lip=171.70.117.190
Jun 11 07:36:56 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.21.124.234, lip=171.70.117.190
Jun 11 07:36:56 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.21.124.234, lip=171.70.117.190
Jun 11 07:37:07 adams dovecot: IMAP(nburghat): Disconnected in IDLE
Jun 11 07:37:20 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.82.247.152, lip=171.70.117.190
Jun 11 07:37:25 adams dovecot: IMAP(nburghat): Disconnected in IDLE
Jun 11 07:37:40 adams dovecot: IMAP(pemswell): Disconnected: Logged out
Jun 11 07:37:40 adams dovecot: IMAP(pemswell): Disconnected: Logged out
Jun 11 07:37:44 adams postfix/postfix-script: fatal: the Postfix mail system is already running
Jun 11 07:37:44 adams postfix/sendmail[24077]: fatal: flush queue mode requires no recipient
Jun 11 07:37:52 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=64.101.209.110, lip=171.70.117.190
Jun 11 07:37:53 adams dovecot: IMAP(trfridle): Disconnected: Logged out
Jun 11 07:38:00 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.21.124.234, lip=171.70.117.190
Jun 11 07:38:00 adams dovecot: imap-login: Login: user=, method=PLAIN, rip=10.21.124.234, lip=171.70.117.190
--More--(97%)
Jimmy Vance
HPE Pro

Re: error when starting sendmail

At first glance it looks like your trying to run both sendmail and postfix. You only need one MTA and in your case I'd say postfix is running by default



__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
naths
Occasional Contributor

Re: error when starting sendmail

Jimmy,

So you mean to say that there is no need to restart the sendmail deamon.

--surendra.
Maaz
Valued Contributor

Re: error when starting sendmail

>So you mean to say that there is no need to restart the sendmail deamon.
Yes, you do not need 'sendmail', because as Jimmy Vance said that Postfix is already running, and you either need 'postfix' or 'sendmail', and you cant run both simultaneously, because both are the SMTP server.

and you should stop sendmail
and also make sure that sendmail must not run automatically at system startup, via
# chkconfig sendmail off

Regards
Maaz
snp
Occasional Visitor

Re: error when starting sendmail

Nothing worked for me and finally i have removed sendmail and trying to reinstall ended with following error message.

[root@mercury sendmail-8.14.3]# install: cannot create regular file `/usr/man/man1/vacation.1': No such file or directory
> make[1]: *** [install-docs] Error 1
> make[1]: Leaving directory `/etc/mail/sendmail-8.14.3/obj.Linux.2.6.18-8.el5.i686/vacation'
> make: *** [all] Error 2
>


Steven Schweda
Honored Contributor

Re: error when starting sendmail

> Nothing worked for me [...]

Start your own thread, and explain what
you're doing?
snp
Occasional Visitor

Re: error when starting sendmail

sendmail stop working and unable restart and shutdown.
Shutting down sendmail: [FAILED]
Shutting down sm-client: [FAILED]

so thought of remove and re-istall will work but i'm getting 2 errors while installing.
Steven Schweda
Honored Contributor

Re: error when starting sendmail

Please start your own thread.

When you do start your own thread, it might
help if you also reveal something about your
system, and a few details like:

Did sendmail ever work? If so, what changed?

Did you look at the system log file(s)?


Did I already suggest starting your own
thread? You should start your own thread.
Steven Schweda
Honored Contributor

Re: error when starting sendmail