sendmail/mailertable question
Chuck Swiger
cswiger at mac.com
Tue Oct 25 11:58:17 PDT 2005
stan wrote:
[ ... ]
>>Yes and no. Masquerading is for mail which passes through the server,
>>which includes mail being delivered locally from some other machine.
>
> OK, that makes sense.
>
> Next question, since sendmail is _already_ rewriting the address, why will
> adding still more rewritng stop it from doing what it is doing now, since
> Masquerading isn't enabled presently.
There's a big long discussion of this in cf/README, but reasonable people have
been known to find sendmail documentation non-informative. :-)
It might be the case that using statements of the form:
VIRTUSER_DOMAIN(`example.com')dnl
...in your .mc file may help exclude them from canonification.
It may also be the case that what you want to do is going to be better handled
by two SMTP servers, one as an external gateway, using and exposed to DNS and
your wildcard MX records, and one internal mailserver which handles local
delivery, masquerading, a mailertable distributing mail to any other local SMTP
destinations (think mailserver/listservers running on other machines), and even
use FEATURE nocanonify if you want to/have to disregard DNS entirely.
Put a spamfilter/virusfilter on your external relay, which will then serve as
your SMART_HOST for the internal mailserver.
--
-Chuck
More information about the freebsd-questions
mailing list