Qmail
[Top] [All Lists]

Re: Sending mail to root@localhost

To: qmail@list.cr.yp.to
Subject: Re: Sending mail to root@localhost
From: "Matthew R. Dempsky" <mrd@alkemio.org>
Date: Thu, 11 Jan 2007 10:36:20 -0600
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <45A65359.40006@paranacidade.org.br>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <45A65359.40006@paranacidade.org.br>
On Thu, Jan 11, 2007 at 01:10:17PM -0200, Felipe Augusto van de Wiel wrote:
>       When sending mail to root@localhost, qmail-inject adds the
> defaultdomain because there is no dots in the domain part. Is there
> a way to avoid that just for the localhost?

Install mess822, replace qmail-inject with new-inject, and add
/var/qmail/control/rewrite with contents:

    *.:
    =:DEFAULTHOST
    *+:.PLUSDOMAIN
    ?:.DEFAULTDOMAIN
    =localhost.DEFAULTDOMAIN:localhost

(replacing ``DEFAULTHOST'', ``PLUSDOMAIN'', and ``DEFAULTDOMAIN'' with
the contents of the appropriate files from /var/qmail/control).

See also rewriting(5) and new-inject(1).

<Prev in Thread] Current Thread [Next in Thread>