Operating System - HP-UX
1837516 Members
3869 Online
110117 Solutions
New Discussion

Sendmail: config files how-to

 
Ivan Efimenko
Contributor

Sendmail: config files how-to

Hello,
We have host abc.com . When we send mail from this server to any other machine we see something like root@abc.com in the From field.
Is it possible to make some changes (e.g. Sendmail config files) so that the server name would appear as wwwabc.com, and we could send mail back to wwwabc.com and all other settings would be unchanged.
Thanks for the help.
2 REPLIES 2
Herve BRANGIER
Respected Contributor

Re: Sendmail: config files how-to

Hi,

To use another name for your server you need
some modifications on you configuration :

- to use wwwabc instead of abc : wwwabc has
to be on your DNS
- when DNS is well configured (for example
try "nslookup wwwabc" ), you can configure
sendmail : edit your sendmail.cf and modify it.

But wwwabc.com and abc.com are two
differents domain names. I think that you want
your host called abc.com appears to be
www.abc.com ?

If you want more information you can try
on sendmails sites for example...

Bye,

Herve



1) Find DM tag : this tag is use when you
want your mail appears to come from another
server. In your case :

DMwwwabc.com

To modify (masquerade is a better term) a
complete domain use CM)

2)But now if you server receive some mail
to foo@wwwabc.com it can refuse because the
name of your server is already abc.com. So
you need to edit sendmail.cw and had the
other(s) name(s) of your server

wwwabc
wwwabc.com

Now your server can send mail like that
seems to come from wwwabc.com and it can
receive mails.

Herve BRANGIER
Respected Contributor

Re: Sendmail: config files how-to

Hi,

wwwabc.com and abc.com are two
differents domain names. I think that you want
your host called abc.com appears to be
www.abc.com ?


To use another name for your server you need
some modifications on you configuration :

- to use wwwabc instead of abc : wwwabc has
to be on your DNS
- when DNS is well configured (for example
try "nslookup www.abc.com" ), you can configure
sendmail : edit your sendmail.cf and modify it.


1) Find DM tag : this tag is use when you
want your mail appears to come from another
server. In your case :

DMwww.abc.com

To modify (masquerade is a better term) a
complete domain use CM)

2)But now if you server receive some mail
to foo@wwwabc.com it can refuse because the
name of your server is already abc.com. So
you need to edit sendmail.cw and had the
other(s) name(s) of your server

www.abc
www.abc.com

Now your server can send mail like that
seems to come from wwwabc.com and it can
receive mails.

If you want more information you can try
on sendmails sites for example...

Bye,

Herve