cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail configuration

SOLVED
Go to solution
biman saha
Occasional Contributor

Sendmail configuration

hi experts,

i need to configure sendmail from scratch.

i need help.


Thanks
2 REPLIES
Vinod Kumar Yadav
Trusted Contributor
Solution

Re: Sendmail configuration

Hi,

In the most environments a smtp relay server is provided for send a email.

You take the IP address or host name of the server for accept mail from your server then.

Edit /etc/mail/sendmail.cf

Change DS to:

DSname_of_smtp_relay_server

or

DSIP address of smtp relay server

ex

DS telcon.co.in

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

Then check few thing for sending the mail sucessfully.

Check the permission of the files related sendmail /var/spool/mqueue or check the
/etc/resolv.conf & Please check the sendmail services running.

root # ps -ef | grep -i sendmail
root 1700 1 0 Jul 11 ? 0:04 sendmail: accepting connections
root 29011 23487 0 16:13:46 pts/tb 0:00 grep -i sendmail

root # ls -ld /var/spool/mqueue
drwxr-xr-x 2 root bin 1024 Jul 13 16:13 /var/spool/mqueue

root # ls -ld resolv.conf
-rw-r--r-- 1 root sys 110 Jun 16 2007 resolv.conf

Try with Permission send mail & check the log /var/adm/syslog/mail.log


Thanks
Vinod Kumar Yadav
Jai Shiv Shankar
Steven E. Protter
Exalted Contributor

Re: Sendmail configuration

Shalom,

The above post covers you for most Corporate smtp relay environments. Do not forget that the smtp relay server needs to be configured to do relay.

http://docs.hp.com/en/B2355-90685/ch04.html

In case you have no smtp relay server or need to do more to protect your server.

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