Operating System - HP-UX
1833838 Members
2449 Online
110063 Solutions
New Discussion

push the queue right away

 
SOLVED
Go to solution
peterchu
Super Advisor

push the queue right away

there are some mails are stored in the mail queue ( I check by "mailq" comamnd ) , how can I push the to send the mail in the queue

8 REPLIES 8
peterchu
Super Advisor

Re: push the queue right away

I tried to use sendmail -q , but the mails still not send out , how can I push to send it out ? thx
peterchu
Super Advisor

Re: push the queue right away

I also tried to restart the sendmail , but still not work , could suggest what can I do ? thx
Michael Tully
Honored Contributor
Solution

Re: push the queue right away

This problem may depend on the message. Please supply message from with 'mailq' or from the /var/adm/syslog/mail.log file

The problem is most likely elsewhere, like your relay mail server being down.
Anyone for a Mutiny ?
HGN
Honored Contributor

Re: push the queue right away

Hi

This may be if the relay server mentioned on the sendmail.cf file is having some issues, recycling the sendmail daemon will not help in this case. Please make sure the relay server is fine.

Rgds

Gopi
Bill Hassell
Honored Contributor

Re: push the queue right away

In a standard installation, sendmail will be running (ps -ef|grep sendmail) and the message is sent immediately. There are two possibilities: the server very heavily loaded and the load exceeds the limit in /etc/mail/sendmail.cf so mail is deferred. The second (most likely) is there is an error in sending the mail. To see the details:

tail /var/adm/syslog/mail.log

Usually you'll find errors like can't qualify my own name or missing MX records in DNS, or unable to qualify my own domain name or similar. This means that you'll have to change your options in sendmail.cf so the mail can be delivered.


Bill Hassell, sysadmin
Sridhar Bhaskarla
Honored Contributor

Re: push the queue right away

Hi Peter,

Use 'sendmail -q -v'. You will see how sendmail attempts to send the mails. You should be able to figure out the reason from there. Or look at /var/adm/syslog/mail.log for more information.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay_6
Honored Contributor

Re: push the queue right away

Hi,

Check you mail.log file under /var/adm/syslog and it may give you a clue on what is happening.

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: push the queue right away

Does any mail go out?

IE - send a test email to yourself:

mailx -s "test" you@yourdomain.com
Check your log mail log file...

Look at some of the emails - cd /var/spool/mqueue

Just vi a couple...where are they going?

If you don't need them - stop sendmail, then rm them...then start sendmail.

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.