1830061 Members
2677 Online
109998 Solutions
New Discussion

Sendmail problem

 
SOLVED
Go to solution
juno2
Super Advisor

Sendmail problem

We use sendmail to send out the mail , but sometimes some mails was disappeared in our system, these mails will be sent out when the system reboot , but I can't find these mails in webmin -- > server -- > sendmail configuration -- > mail queue (mailq) , so I think the mail is stored in the linux system , can suggest how to check what mails are stored in the system or pending to sendout ? thx
7 REPLIES 7
Stuart Browne
Honored Contributor
Solution

Re: Sendmail problem

What distribution of Linux, and what version of Sendmail?
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: Sendmail problem

mailq

That shows mails that can't get off the box.

sendmail -v -d8 -d38 someone@yahoo.com

Type some text.



.



This will get you diagnostics.

Here is my mailq output.

/var/spool/mqueue is empty


Your's cant be if after boot you are getting mails flying out.

There is a mail log in /var

Check it.

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
juno2
Super Advisor

Re: Sendmail problem

RH 7.2 / sendmail should be 8.11
Balaji N
Honored Contributor

Re: Sendmail problem

hi
ur question is not clear.

u tried mailq and there is no pending mails

but when u reboot the server, these mails are being sent? am i getting it right?

is it that you are having a mail relay and the relay is delaying the sending of severs.

if there is some output in mailq, you can send them using this command. see snipped lost below.

$ cat 075.lost
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Sending pending mail in queue LOST #075

Sendmail did mot manage to send few mails during the last time
you despatched mail, and mailq command shows them spooled. To
send out pending mail in mail queue, as root do: #sendmail -q

####[bish (at) nde.vsnl.net.in]###############################
:
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Stuart Browne
Honored Contributor

Re: Sendmail problem

In which case you wouldn't have a /etc/mail/submit.cf and thus not have a /var/spool/clientqueue/ ...

Ok, ignore me now *nod* :)
One long-haired git at your service...
juno2
Super Advisor

Re: Sendmail problem

Hi Balaji ,

It is exactly the case you said .

thx your reply
Balaji N
Honored Contributor

Re: Sendmail problem

thats Kewl. my magical powers are working :-)
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.