1827481 Members
2298 Online
109965 Solutions
New Discussion

Re: sendmail mqueue

 
Jennifer Lam
Advisor

sendmail mqueue

Hello All,
I have the problem when I sendmail from clients to mail server:
1. Client 1: after sendmail the message go through to the mail server, then store in /var/spool/mqueue directory instead of send to /var/mail directory and distribution to the users.
2. Client 2: after sendmail the message send to it /var/spool/mqueue directory, then stay there
When I check in /var/adm/syslog/mail.log:
1. Client 1: stat=send, but I did not get 'you have mail' form the user that I send mail out.
2. Client 2: the log file show that warning: "could not send message for past 4 hours". The stat=queued.
I also try to sendmail inside server local users; the message send out OK without problem, so I don't know what is causing problem (server/client).
Would you give me the idea that what is causing the problem, and what should I check.

Thank you.
Happy Holiday season
Regards
Jennifer Lam
4 REPLIES 4
Uday_S_Ankolekar
Honored Contributor

Re: sendmail mqueue

Hi,

Check whether sendmail daemon is running on both the servers. (ps -ef | grep sendmail )
if not start sendmail by this command /sbin/init.d/sendmail start

Also check if var/mail has read/write permissions.


-Goodluck,

-USA..
Good Luck..
Craig Rants
Honored Contributor

Re: sendmail mqueue

Jennifer,

Try using a verbose mail message...


/usr/lib/sendmail -v user@client2 < /etc/host

This will give you a much better idea on what is going on and just where your message is failing.

GL,
C

"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Steve Miller_4
Occasional Advisor

Re: sendmail mqueue

You can also try:

sendmail -v -d21 user@host
which will give you some debug information about DNS resolution, canonical mapping, etc.
Technology is only as good as those that know how to use it.
Wodisch
Honored Contributor

Re: sendmail mqueue

Hello Jennifer,

do you use DNS on that station?
Are the mails sent are targeted to a domain which doe snot have an "MX" record in DNS?
Check your "/etc/mail/services.switch" to NOT use "dns" in case you are NOT using DNS...

HTH,
Wodisch