On Fri, Jun 01, 2001 at 10:57:38AM +0200, [EMAIL PROTECTED] wrote:
> 
> On Fri, 1 Jun 2001, MMP Wolfgang Rupp wrote:
> 
> > Hi all,
> > 
> > we have here a central mailhub, mail.mm-packaging.com. This host
> > treats mail to mm-packaging.com and mail.mm-.. as local. Now I
> > also listed it as preferred MX for two domains that are "www-only",
> > but since postmaster@ must work, I put these domains into locals,
> > as well. Now postmaster mails for these domains also get to me.
> > 
> > My question: how do I prevent delivery to all other recipients
> > for which a .qmail file exists?
> 
> If I understand correctly, this should fix it:
> 
> put the www-only domains into $QMAILHOMEDIR/control/virtualdomains,
> get them out of locals. Map them to one specific user in virtualdomains,
> and there you handle it bu using .qmail files. Your local users will never
> get mail for these domains.

Actually, a better solution would be to do the following:

in virtualdomains:
domain1.com:alias-null
domain2.com:alias-null

in ~alias/.qmail-null-default put a single hash (#) mark.

Like arjen said, remove the domains from locals and send qmail-send a HUP.

--Adam

Reply via email to