1828492 Members
2650 Online
109978 Solutions
New Discussion

Sendmail Question

 
Rad Rioveros
Occasional Advisor

Sendmail Question

Hi all,

another question:

every servers on our environments have sendmail configured for sending mail alerts to outside (internet) domains. Now, we tried to configure sendmail to forward mails to a smart host (DS -> DSmyrelayhost). but after doing this it seems that we can't send mail to other local servers because i think it is always forwarded to the smarthost. So how can i configure our sendmail to send outside mails thru smarthost and at the same time can send local mails without forwarding it to the smarthost?

Thanks In Advance!

Kind regards,

r@d
2 REPLIES 2
Ramalingam
Advisor

Re: Sendmail Question

Hi,
I went through /etc/mail/sendmail.cf

If you need to send local mail bypassing
smart relay

Direct SMTP connection with local domain:
To deliver mail destined for hosts within the local domain directly, while sending all other mail to the "Smart Relay" listed above,
you will need to "uncomment" the line in ruleset 0 "following" the comment:

# See if we are supposed to deliver to hosts in the local domain ( line 1479 so uncomment 1480)
Also ensure the $m macro gets defined. It gets defined internally from $j macro.

You can check if it is set by doing the following:


sendmail -bt > $m
# If $m is undefined, you can define it as follows: #
# eg: if FOO.com is your local domain, define it as #
# DmFOO.com #


Does this help you ?
Just my 2 cents worth

Regards,
Ram.

We Learn the most When We have to Invent
Ramalingam
Advisor

Re: Sendmail Question

Hi ,

Find a lot of quetions regarding 'sendmail'

in Messaging Category..

ITRC Forums > HP-UX > Messaging
http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=152

See this thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=649575

Regards,
Ram.
We Learn the most When We have to Invent