Operating System - HP-UX
1830623 Members
2238 Online
110015 Solutions
New Discussion

How to setup sendmail to use relay-SMTP rather than its own SMTP?

 
SOLVED
Go to solution
VARITRONIX
Occasional Advisor

How to setup sendmail to use relay-SMTP rather than its own SMTP?

Currently the sendmail function uses the SMTP service on UNIX system to send outgoing mail. However, for some security reason, I want to use outside SMTP and stop the SMTP service on UNIX. How to configure sendmail to use relay SMTP to send mail??
Kwan Chris
1 REPLY 1
Printaporn_1
Esteemed Contributor
Solution

Re: How to setup sendmail to use relay-SMTP rather than its own SMTP?

Hi,

Just set DS macro
DSsendmail.servername.domain

in /etc/mail/sendmail.cf
and restart sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

test by
#sendmail -v receivername@hostname.domain
type a text
.

it will print message about relay information.

enjoy any little thing in my life