Operating System - HP-UX
1753290 Members
5189 Online
108792 Solutions
New Discussion юеВ

Re: Sendmail configuration as SMTP

 
Anubhav Dhingra
Frequent Advisor

Sendmail configuration as SMTP

Hi ,
I need to configure sendmail on couple of applications servers to use the SMTP server xx.xx.xx.xx, Authentication none. I believe this can achieved by editing sendmail.cf. please help by providing some steps and explaination on steps.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Sendmail configuration as SMTP

Hi:

To enable the "smart relay" to be able to forward mail to your corporate mail server, edit the 'DS' macro in '/etc/mail/sendmail.cf'.

By default this is empty. Edit it to look like:

# DSmymailserver.xyz.com

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Sendmail configuration as SMTP

Shalom,

After activating the smart relay feature, take the following steps:

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

Make sure the server you are relaying to accepts relay connections from this server. In most cases that needs to be authorized by IP address.

/var/adm/syslog/mail.log

Is a good file to look at to track diagnostics.

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
Kapil Jha
Honored Contributor

Re: Sendmail configuration as SMTP

If you have submit.cf file, then you may have to edit it as well
DSsmtp.server.address

And you will have to restart sendmail service for the changes to be effective.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
gb karki
Frequent Advisor

Re: Sendmail configuration as SMTP

Hi Anubhav,

Here are the steps to configure sendmail for mail alerts, may be help you.

edit /etc/hosts and add/modify the following entry:
10.11.113.55 nda-lt-egw01.lt.corp.xx.in (exchange server IP and FQDN name)
In /etc/nsswitch.conf add/modify the following entry:
# cat /etc/nsswitch.conf
hosts: files dns [NOTFOUND=return]
In /etc/resolv.conf add/modify the following entry:
search domain xx.in
nameserver 10.11.113.21 (DNS server name)
In /etc/mail/sendmail.cf search for DS and modify as following: (smart relay host)
DSnda-lt-egw01.lt.corp.xx.in
Restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Test mail: using mail end with .
Run mailq to check the mail queue.


Regards
GB
Jupinder Bedi
Respected Contributor

Re: Sendmail configuration as SMTP

you can edit sendmail.cf file , look for the entry DS and define your relay server over there

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


Good Luck!!!
All things excellent are as difficult as they are rare