Operating System - HP-UX
1847249 Members
2865 Online
110263 Solutions
New Discussion

Re: sendmail configuration

 
meekrob
Super Advisor

sendmail configuration

Hi all ,
i have to configure sendmail on a HP9000 HP-UX server ,
the mail server is a netware server ,
i need to configure sendmail so that i can send mails to the local domain ,
so how i should modify the sendmail.conf file ,and where should i mention the mail server ,
did i have to modify also the /etc/hosts ,
and did i have to create the /etc/nsswitch.conf,
Thank's

4 REPLIES 4
Peter Godron
Honored Contributor

Re: sendmail configuration

Hi,
modify your /etc/mail/sendmail.cf (grep for "relay host") to include
DS
also, include your domain in /etc/hosts
and ensure the nsswitch.conf does read /etc/hosts at some point. Mine reads files first then DNS.
Geoff Wild
Honored Contributor

Re: sendmail configuration

Also, you may want to set masquerade to youe email domain - ie you@yourdomain.com:

DMyourdomain.com

For the hosts and nsswitch.conf - that depends - what is in there now?

Can you resolve the ip of the netware server?

If yes - then you should be fine.

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.
meekrob
Super Advisor

Re: sendmail configuration

Hi ,
if i will put my domain for exemple test.com in the DS option ,so what i should also put in the Dj option ,
should i mention also the IP address of the mail server or the name in the configuration file ,??
in /etc/hosts , where i should mention the domain ?

Thank you
Keith Johnson
Valued Contributor

Re: sendmail configuration

The DS entry is used to identify the mail relay through which you want to send mail. It can be the IP of the mail relay or a host name, as long as the host name can be resolved.

The Dj option is for the domain name of the server sending the mail. However, if you have entered the fully qualified domain name of the sending server in its /etc/hosts file you don't need to set it. The /etc/hosts entry would be like:

xxx.xxx.xxx.xxx server.domain

KJ
No matter where you go...there you are.