Operating System - HP-UX
1834361 Members
2606 Online
110066 Solutions
New Discussion

configuration of sendmail

 
SOLVED
Go to solution
bunty.....
Frequent Advisor

configuration of sendmail

Hi Friends,
I need to configure sendmail on my server.
Can you please help me how to do that?

This service is being established to enable system level alerts to be forwarded via email to support staff.

Please suggest.
Thanks
bunty
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: configuration of sendmail

Shalom bunty,

Sendmail is enabled by default.

All you need to make it work is a network connection to the mail server you wish to recieve the mail and hostname resolution if you are sending mail by domain name.

Test:

sendmail -v -d8.99 -d38.99 anaddress@your.net

type some text

.


Other tools

sendmail -v -q # runs the mail queue verbose

mailq

Look at sendmail.cf for your current sendmail configuration.

Look at /etc/rc.config.d/sendmail

If the start variable is 1 you are running the sendmail receive daemon, but that is not needed to send mail.

There may be nothing to do on your hpux server at all.

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
Ivan Ferreira
Honored Contributor

Re: configuration of sendmail

Verify the /etc/rc.config.d/mailservs file:


export SENDMAIL_SERVER=1
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

If you want to do masquerade, you could set:

export SENDMAIL_SERVER_NAME=

To something.

If you want to use a SMART Host to forward messages, edit the /etc/mail/sendmail.cf file and add:

# "Smart" relay host (may be null)
# DS
DSmailserver.domain.com

If you don't use smart host, your dns configuration must be working correctly. Check your /etc/resolv.conf file and /etc/nsswitch.conf.


Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
bunty.....
Frequent Advisor

Re: configuration of sendmail

please suggest
Shameer.V.A
Respected Contributor

Re: configuration of sendmail

Hi Bunty,
Please see the following thread, which is having detailed way to configure/ check the configuration of sendmail..

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=987413


Regards,

shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Steven E. Protter
Exalted Contributor

Re: configuration of sendmail

bunty,

My mail test above to an outide email address with the sendmail.cf DS directive off will provide proof of good DNS.

You will see an error message and the script will hang if name resolution does not work.

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