1832978 Members
2774 Online
110048 Solutions
New Discussion

From address in sendmail

 
SOLVED
Go to solution
GK_5
Regular Advisor

From address in sendmail

Hi! I want to change from address in my sendmail client. It shows user@host.domain.com I want it to be abc.xyz@yahoo.com

How do I do it?

Thank you,

-GK-
IT is great!
6 REPLIES 6
RAC_1
Honored Contributor

Re: From address in sendmail

mailx -r option

If you want to do it from command line.

You can also set in sendmail.cf. Do not recollect which macro to set for that.
There is no substitute to HARDWORK
Stuart Abramson_2
Honored Contributor

Re: From address in sendmail

1. To change the "site name" you do this:

cd /etc/mail
cp sendmail.cf sendmail.cf.old
vi sendmail.cf
Set:
DMdomain.com
Unset:
CE root


o Stop/Start sendmail:

# /sbin/init.d/sendmail stop; /sbin/init.d/sendmail start

Sendmail pid is 6743
Killing sendmail...
Sendmail killed.
/etc/mail/aliases: 13 aliases, longest 35 bytes, 307 bytes total
sendmail

However, I don't know if you can change "domain.com" to "yahoo.com". It doesn't sound right....
Bryan D. Quinn
Respected Contributor

Re: From address in sendmail

Hello,

You can do a masquerade in sendmail. Edit your /etc/mail/sendmail.cf file and search for DM or masquerade. You will see something like the following:

# who I masquerade as (null for no masquerading) (see also $=M)
DM

Modify this to fit what you want, like the following:

# who I masquerade as (null for no masquerading) (see also $=M)
DMyahoo.com

Then stop and restart sendmail:

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Hope this helps!
-Bryan
GK_5
Regular Advisor

Re: From address in sendmail

Thank you all.
Bryan, I already have done that part.
It is showing user@yahoo.com. I want it abc.xyz@yahoo.com.

How do I change the user portion in the email id.

Thank you

-GK-
IT is great!
Sanjay_6
Honored Contributor
Solution

Re: From address in sendmail

Hi GK,

Try this using the userdb database.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062903359

Doc id 1200503211

Hope this helps.

Regds

GK_5
Regular Advisor

Re: From address in sendmail

Thank you Sanjay,

It worked!

-GK-
IT is great!