Operating System - HP-UX
1834017 Members
2256 Online
110063 Solutions
New Discussion

Another email related thread

 
Ian Prior
Occasional Contributor

Another email related thread

Well Thanks again for the help in the earlier thread I can now type the @ sign.

What I need now is how do I find out what email address the mail will be sent from, more speciically what the part is after the @ as in the example my@server, I need to find out the @server part, as my mail relay is blocking it, and it dosent say what it is on the relay, it just drops it

Thanks again

Ian
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: Another email related thread

Use sendmail -v user@domain. You will see the SMTP transaction.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Patrick Wallek
Honored Contributor

Re: Another email related thread

Usually, if you just do 'mailx someone@somewhere.com' from the unix command line, the FROM will default to user@host.domain.com, basically your user-id followed by the fully qualified domain name of your system

This can be changed my modifying the DM macro in the /etc/mail/sendmail.cf file. There you can set the domain to whatever you want.

The syntax is simply:

DMyourdomainhere.com

Then stop and restart sendmail for it to take effect.
Kent Ostby
Honored Contributor

Re: Another email related thread

This thread will give you multiple options for masking the server:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=685447
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"