1824722 Members
3712 Online
109674 Solutions
New Discussion юеВ

Deffered mail

 
SOLVED
Go to solution
Alianto
Advisor

Deffered mail

Can someone tell me how to send the deffered mail which was found in /var/spool/mqueue. In my current system I have 4 files, as seen as below,

dcs2:/var/spool/mqueue>ls -al
total 18
drwxr-xr-x 2 bin bin 2048 Feb 28 09:44 .
drwxr-xr-x 14 root sys 1024 May 9 2001 ..
-rw------- 1 root mail 249 Feb 28 00:15 dfAAA10292
-rw------- 1 root mail 243 Feb 28 00:07 dfAAA20049
-rw------- 1 root mail 1933 Feb 28 00:15 qfAAA10292
-rw------- 1 root mail 1063 Feb 28 00:07 qfAAA20049

filename prefix by "d" actually is the contents for filename prefix by "q".

Any advice on which command in HPUX should be used for resending these file ?
7 REPLIES 7
Michael Tully
Honored Contributor

Re: Deffered mail

Hi,

The mail by default will sit there for 5 days and then will get deleted. The process will continue and try to send the mail every 30 minutes depending on your sendmail config.

The most likely cause of this is that your smart relay server is not accepting the mail. I've seen this before where the service on the mail server (particularly exchange) is not running. Check to see if you have the right smart relay server in your sendmail.cf file. e.g.

# "Smart" relay host (may be null)
DSmetxc1

If you leave this entry blank the sendmail
process may find another server for servicing.

If you change your sendmail.cf file you must restart the sendmail process.

HTH
-Michael
Anyone for a Mutiny ?
Alianto
Advisor

Re: Deffered mail

The sendmail service is fine. After discovering these, I can raise some mail test and it works, means they can be delivered to the recipient properly. Now, the problem is the deffered mail could not be sent out automatically by sendmail. So, does HPUX provide command(s) to push deffered mail to mail server ?
Michael Tully
Honored Contributor

Re: Deffered mail

Hi,

What is the difference between the recipient
address for successful mail and the unsuccessful mail. If the address can be worked out the mail should automatically be sent.

-Michael
Anyone for a Mutiny ?
Jeff Schussele
Honored Contributor

Re: Deffered mail

Alianto,

The usual cause for deferred mail is that the destination server is not accepting mail - for whatever reason. Basically all is correct w/the sendmail setup in general & the msg itself. The server just cannot deliver. This also indicates the destination is valid & has a proper DNS MX record.

Two choices:
1)Let it keep trying - if the destination comes back on-line it'll get delivered. If it doesn't it'll go back to sender - in 5 days by default.
2) Manually take it off the queu & send it back to sender with a non-delivery notice..

I generally let the defaults rule unless the sender calls & inquires. Then I'll inform them & let them decide.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Frank Li
Trusted Contributor
Solution

Re: Deffered mail

run "sendmail -q "
Hi Friend
Alianto
Advisor

Re: Deffered mail

Done.

Thank You everybody for your support.
Jeff Schussele
Honored Contributor

Re: Deffered mail

Slight correction - if the domain name is invalid the mail will be deferred as well.

Also i believe #mailq will also produce queue staus.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!