Operating System - HP-UX
1753259 Members
4732 Online
108792 Solutions
New Discussion юеВ

Sendmail SMART_HOST vs hosts.smtp?

 
SOLVED
Go to solution
Mark Garringer
Occasional Contributor

Sendmail SMART_HOST vs hosts.smtp?

First let me say I've been trying to figure this out most of the afternoon and just get more and more confused as I see other options which I _THINK_ might be relevant to my problem, but so far I'm just getting a mixed bag of results.

Here is what I have currently:

All of my HPUX systems are setup with a SMART_HOST (DS) entry to point them at an exchange server. The exchange server deals with delivering the emails to our local exchange users, as well as external internet clients without having to open port 25 up for all these machine. Fine, wonderful, fantastic.

Here is what I'd like to do:

My HPUX machines CANNOT send mail to each other, because it gets forwarded off to exchange and then eaten. So, if I setup internal DNS MX recoreds for said machines, what would I have to do to sendmail to make it ignore the SMART_HOST for something that is either a) short name (host123) or b) my internal system domain name (host123.notmyinternetmaildomain.com)?

Some pointers here from someone who knows would really help. Thanks!
3 REPLIES 3
Sundar_7
Honored Contributor
Solution

Re: Sendmail SMART_HOST vs hosts.smtp?

Hi Mark,

You dont have to setup MX records for UX boxes to send mail to each other.

Edit /etc/mail/sendmail.cf and define the local domain.

Dm

and uncomment the following line

R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?

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

# sendmail -v root@host1.yourdomain.com

This should try to directly connect to host1.yourdomain.com

-- Sundar.
Learn What to do ,How to do and more importantly When to do ?
Mark Garringer
Occasional Contributor

Re: Sendmail SMART_HOST vs hosts.smtp?

Sundar, this is EXACTLY what I wanted!

Thank you so much! I just tried it and it behavied exactly like I wanted.

I send an email via sendmail to my work internet email account, an outside webmail account, and an internal users@hpsystem and all 3 were correctly delivered!

Again, thank you! :)
Sundar_7
Honored Contributor

Re: Sendmail SMART_HOST vs hosts.smtp?

You are very welcome Mark. Glad I could be of some help :-).
Learn What to do ,How to do and more importantly When to do ?