Sendmail.cf question: Ignoring smart relay for local mail

Joel Hammer joel
Mon May 17 12:00:35 PDT 2004


Well, fuddgettabout it.

I mucked around in the sendmail sources and fooled with m4,
groan, and did find the DR definition. So, it works.

Here is what seems to work for me:

# "Smart" relay host (may be null)
DSsmtp.comcast.net.

# who I send unqualified names to (null means deliver locally)
DRhammer11

This sendmail.cf sits in a box called jhammer6, the
firewall. hammer11 is the box that handles my local mail.

YMMV.

Who says sendmail can't be fun?

Joel



On Sat, Mar 13, 2004 at 10:23:13AM -0500, Joel Hammer wrote:
> I have a firewall box which runs sendmail, which routes
> all mail to my comcast mailserver (Otherwise, my mail
> bounces). This works fine except when I want to send
> mail locally from the firewall box to other boxes on
> the network.
> 
> I know there are M4 macros for doing this, but I am
> determined not to get involved with that, since I have
> a perfectly good sendmail.cf file and have no desire to
> tinker more than necessary.
> 
> I can brute force this by running sendmail manually with
> the -C option to point to another sendmail.cf; but, I
> would like to know a way to edit sendmail.cf to handle
> this automatically.
> 
> Thanks,
> 
> Joel
> 
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users



More information about the Linux-users mailing list