[KLUG Members] Across the world, sure! Across the room? No!

Adam Williams members@kalamazoolinux.org
Fri, 13 Dec 2002 10:09:15 -0500 (EST)


>I have a webserver on one side of the room, and a mail server 
>on the other side of the room (but on the same subnet). The 
>website has a page where the user will enter some test, and 
>it will get e-mailed (using the php "mail" function).
>The idea is to send the mail across the room to the mail server

All that ways!!!  Whew... Do you have a BGP feed from your ISP? :)

>(actually, the same one I'm using to send this message, so we 
>know its working); from there it will be delivered (almost always
>locally, occasionally not) to the message destination.

Does it accept TCP/IP connections?  Your not sending all this mail from 
the MDA box itself, right?

>I seem to be having real trouble getting the e-mail across the
>room! I've RTFM'ed the sendmail.org documentaion, and tried a
>number of things, like SMART_HOST, MAIL_HUB, and so on.

I think what you want is something like -
define(`LUSER_RELAY', `sardine')dnl
define(`LOCAL_RELAY', `sardine')dnl
define(`SMART_HOST', `sardine')dnl

assuming "sardine" is your MDA box.  

PAY VERY CLOSE ATTENTION TO THE QUOTING!!!!  PARAMETERS WITH INCORRECT 
QUOTING ARE SILENTLY IGNORED!!!!  A fact which has caused me many hours of 
agony.

And your internal DNS is correctly configured?

>I'm sure someone on this list has done this before, probably to
>the point where it can be done while sleeping. It does occur

If you saw my sendmail.mc you might believe I was sleeping at the time.

>to me that I have only ever configured sendmail so that it is
>a working Internet mail server, and have been successful getting
>e-mail across the world with it. Getting mail across the room
>seems to be a very different matter.

Actually internal mail servers are more difficult to config than simple 
Internet delivery boxes.