I have a Sendmail configuration question... I had masquerading working
under FreeBSD 4.2 but forgot to backup my configuration files when I
went to FreeBSD 4.4 and needless to say I can't remember the exact
incantations that I had to put in my mc file.
Anyway, here is my current situation. I have placed the following in
my /etc/mail/...mc file:
My intent is to rewrite the envelope headers so that mailers that are
smart enough to do DNS lookups to cough at my mail. My external
address is cn123456.jamison1.pa.home.com (well just assume that) and
my internal net is ``local.net'' (at 172.20.2.0/24 if that matters).
I'm not sure if I need the MASQUERADE_EXCEPTION or not but it doesn't
seem to help if I remove it and if I remember correctly I need it to
make local mail work. Heres the version information from my installed
isengard$ telnet localhost smtp
Connected to localhost.
Escape character is '^]'.
220 isengard.local.net ESMTP Sendmail 8.11.6/8.11.6; Sun, 2 Dec 2001
01:39:40 -0500 (EST)
221 2.0.0 isengard.local.net closing connection
Connection closed by foreign host.
And here is a transcript from a failed outgoing mail session:
----- The following addresses had permanent fatal errors -----
(reason: 553 isengard.local.net does not exist)
----- Transcript of session follows -----
... while talking to femail.sdc1.sfba.home.com.:
<<< 553 isengard.local.net does not exist
501 5.6.0 Data format error
local address is in the envelope. I've tried faking it out by using
a ``From'' line in my mail message but that doesn't seem to do the
job. I remember having to add some ``Reply To'' lines in my NMH
composition stuff... I haven't done that yet but I don't think that
it is the issue here. I can send mail by telneting to my relay and
line so it looks like if I can get Sendmail to rewrite the envelope
correctly I should be set.
Can anyone give me a hand here?
Thanks in advance...
- Dave Shawley