Dirk Vleugels <[EMAIL PROTECTED]> wrote:
> i try to masq. all outgoing mail as coming from @domain.com.
                 ^^^
You probably don't mean _all_. As you noticed, root mails really
should not be masqueraded. Cron jobs and other administrative tasks
generate mails which should be strictly local. Using "defaulthost" for
your masquerading has terrible side-effects, as you've discovered.

> Putting domain.com into control/defaulthosts works fine, but
> now all local root mails leave the system (via  maildirsmtp)
> as [EMAIL PROTECTED], despite a local ~alias/.qmail-root pointing
> to a local user. 

That's because any task which runs a command like "mail root" will be
sending to the defaulthost--which you've set to "domain.com". I
wouldn't do that (even though it's suggested in FAQ 1.1).

Instead, you can apply FAQ 1.2 and FAQ 5.5 from the qmail FAQ. 

Note that you only need 5.5 if some clients on host.domain.com use
SMTP directly, like for example Netscape.  You might consider,
instead, disabling SMTP on host.domain.com and forcing people to use
domain.com as the SMTP server. 

Alternatively, you might set up a mini-qmail installation on
host.domain.com, as per
<ftp://koobera.math.uic.edu/www/qmail/mini.html>.

Hope this helps,
Len.

--
69. If two contend together take not the part of either unconstrained;
and be not obstinate in your own Opinion, in Things indiferent be of
the Major Side.
  -- George Washington, "Rules of Civility & Decent Behaviour"

Reply via email to