Operating System - HP-UX
1834809 Members
2315 Online
110070 Solutions
New Discussion

sendmail requires a "dot"

 
SOLVED
Go to solution
Gilbert Standen_1
Frequent Advisor

sendmail requires a "dot"

I have used sendmail before on many servers, and I was always able to just type: mailx -s "Subject" someone@somewhere.com
but now at this new company I find that when I hit enter the command hangs, and to get it to transmit, I have to type a dot i.e. "." and then it sends it and buffers the "EOT" message. Since I use mailx in many scripts, I need it to just send it as before as a one-liner command without having to type in this "." Do I need to request a change to the configuration of mailx (sendmail) here, or is my syntax needing some modification ?
Gil
If I could take one thing with me into the next world it would be my valid login to HP ITRC Forums
3 REPLIES 3
Gilbert Standen_1
Frequent Advisor

Re: sendmail requires a "dot"

Now I find that if I redirect some file to the email, as in: mailx -s "Fri Jul 14 12:08:41 CDT 2006" gstanden@slu.edu < test2f.sql then it sends it ok.
If I could take one thing with me into the next world it would be my valid login to HP ITRC Forums
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: sendmail requires a "dot"

mailx -s "Subject" someone@somewhere.com
involked like this is waiting for stdin to supply input -- which seems to be exactly your problem.

If this works:
echo "Mickey Mouse" | mailx -s "Disney Character" someone@somewhere.com

then the problem lies with you.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: sendmail requires a "dot"

That is correct.

That is how sendmail works now - you need to pass data to it - or interactively - end with a .

For a one liner - just use:

mailx -s "your subject" you@yourdomain.com
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.