Operating System - HP-UX
1826632 Members
3839 Online
109695 Solutions
New Discussion

query about sendmail & SMTP RELAY SERVER

 
SOLVED
Go to solution
praveen..
Super Advisor

query about sendmail & SMTP RELAY SERVER

Hi,
i need to make my server enabled to send the mails.
so i made following changes:
1. edit the /etc/mail/sendmail.cf file, make the entries in DS & Dj (entry of SMTP relay host.

2. edit the /etc/mail/sendmail.cw file, make the entry of server_hostname@company.com

3. edit the /etc/hosts file, make the entry of SMTP relay host.

4. edit the /etc/rc.config.d/mailservs file and check the parameter SENDMAIL_SERVER i.e. 1

5. start the sendmail service.

6. try to send a mail using mailx command

now I am able to send the mails,

please let me know
what did i do?

did i configure the sendmail or not?

actually i got a request : not to configure the sendmail on production server, we need to make our server enabled to send the mails using SMTP relay server.

Does i need to make any changes?

please suggest
thanks
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: query about sendmail & SMTP RELAY SERVER

Shalom praveen,

I am not sure why you did /etc/mail/sendmail.cw

Setting the DS directive in sendmail.cf means you will relay ALL mail to the server defined in sendmail.cf The exception will be mail to local ussers on the machine.

You need to make sure that the receiving server of the DS directive will accept mail from your server. The default is not to accept relay mail, due to anti spam policy. It must be explicitly enabled on the server receiving the relay mail.

Diagnostics:
sendmail -v -d8.99 -d38.99 someone@some.net

type some text

.


You will receive full diagnostics.

mailq

# shows the que of mail that can not be delivered. That really should have nothing in it.

Note that you don't need to have the sendmail daemon running to send mail on HP-UX. If you don't need it to receive mail, try turning it off.

To manually start the sendmail daemon:
/sbin/init.d/sendmail start

Good Luck,

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

Re: query about sendmail & SMTP RELAY SERVER

i have stopped the sendmail service bcoz i dont want to recieve any message.

and now i am able to send the mails using smtp relay server.