1748162 Members
3741 Online
108758 Solutions
New Discussion юеВ

sendmail configuration

 
anoop_10
Frequent Advisor

sendmail configuration




Hi,

Please help me to configure send mail on HPUX11.23 server. I want to send mails outside from my hpux server.(Requirement is from my apps team they want send mail from there application) I have one lotus notes mail server and one SMTP server which one I need to use for configuring the same. I donтАЩt have much knowledge on mailing sysytem.If anybody can send me the step by step configuration that would be great help for me. I had gone through some of the send mail documents but that doesn't help me out..


Thanks
Anoop
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sendmail configuration

Shalom,

In a corporate environment, you need to find out what server in your environment handles smtp(sendmail in this case) relay.

Lets say the server is called relayserver.

vi your sendmail.cf file

Change

DS

to

DSrelayserver

Save the file.

Done.

To test.

sendmail -v -d8.99 -d38.99 someone@yahoo.com

type some text

.



Full diagnostics displayed on screen.

NOTE: the smtp relay server which we called relayserver needs to be configured to permit relay or the mail won't go anywhewre.

If you have direct access to the Internet, you don't need the procedure above.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Keith Johnson
Valued Contributor

Re: sendmail configuration

A couple of other things you might want to consider.

Edit the the Dj$ variable in the sendmail.cf and set it to the server's domain name.

Check your /etc/nsswitch.conf and /etc/resolv.conf files to ensure they are configured correctly.
No matter where you go...there you are.
anoop_10
Frequent Advisor

Re: sendmail configuration

HI,
I have done the necessary changes in sendmail.cf..

Dj$w.domain_name
Dssmtp_ip


Keith, could you please let me know what are the settings I need to check in resolve.conf and nsswitch.conf.
Is it mandatory that SMTP server needs to be configured with the same domain???

Regards
Anoop

Rgds
Anoop
Keith Johnson
Valued Contributor

Re: sendmail configuration

If you are using DNS for resolution, your /etc/nsswitch.conf file should have an entry like:

hosts: dns [NOTFOUND=continue TRYAGAIN=continue] files

Also, your resolv.conf file should look like:

domain your.domain
nameserver

If you are using /etc/hosts as your only name resolution, make the hosts line in the /etc/nsswitch.conf file read:

hosts: files [NOTFOUND=continue]

Also in this scenario, if you have an /etc/resolv.conf file, move it elsewhere.

--Is it mandatory that SMTP server needs to be configured with the same domain???

No, your SMTP server does not have to be configured with the same domain.
No matter where you go...there you are.