locals question

2001-06-01 Thread MMP Wolfgang Rupp

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?

example: I want the machine to accept mail to
[EMAIL PROTECTED] and [EMAIL PROTECTED]
but not for [EMAIL PROTECTED] (one www domain)

regards

Wolfgang Rupp
Network Administrator
Mayr-Melnhof Packaging GmbH
Floragasse 7/6
A-1040 Wien
Tel: +43-1-50257-238
Fax: +43-1-50257-260



Re: locals question

2001-06-01 Thread arjen


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.

Of course, give qmail-send a -HUP after finishing...

Grtz,

Arjen.





Re: locals question

2001-06-01 Thread Adam McKenna

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



Summary: locals question

2001-06-01 Thread MMP Wolfgang Rupp

Thank you for the quick response.

After arjen's and Adam's suggestions, I did the following:
- take the www-domains out of locals
- virutaldomains: foo.com:alias-foo
- created $QMAILDIR/alias/.qmail-foo-postmaster

And I did not create a .qmail-foo-default with #, because
I need valid bounces. I can't let the machine ack a message
and then send it to /dev/null.

cheers

Wolfgang Rupp
Network Administrator
Mayr-Melnhof Packaging GmbH
Floragasse 7/6
A-1040 Wien
Tel: +43-1-50257-238
Fax: +43-1-50257-260