Operating System - HP-UX
1753354 Members
5060 Online
108792 Solutions
New Discussion

Re: Problem w/ -s switch on mailx

 
Sandman!
Honored Contributor

Re: Problem w/ -s switch on mailx

To troubleshoot further you can look in the "/var/spool/mqueue" dir on prod and see if the mail to be sent out has a Subject line. This eliminates whether the problem is with the server sending out the email or somewhere downstream (mail relay host). Also do the prod and test servers use the same mail relays? After executing the mailx cmd look up its Q-ID and grep for the Subject line i.e.

# cd /var/spool/mqueue
# mailx
--- now get the Q-ID of the email to be sent out
# mailq
# grep Subject qf
Dennis Handly
Acclaimed Contributor

Re: Problem w/ -s switch on mailx

>Here's the example with 'set -x' trace on (this test results in a good subject line returned to me):

Are you saying when you add "set -x" it works? Or you didn't instrument the bad one?

>Sandman: To troubleshoot further you can look in the "/var/spool/mqueue" dir on prod and

Won't you have to stop sendmail so it remains in the queue long enough to look at?