Re: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-18 Thread peter green

* Troy Settle [EMAIL PROTECTED] [010617 17:20]:
 Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
 ~alias/.qmail-default, but that would appear to be for all domains, which I
 do not want to do.
 
 So, I put that line into ~vpopmail/domains/foo.com/.qmail-default, but that
 resulted in mail being forwarded to [EMAIL PROTECTED]

s/LOCAL/DEFAULT/g

 In postfix, this is easy stuff with virtualmaps:
 
   @domain.com:@otherdomain.com
 
 Is there nothing similar in qmail?

If you are using vmailmgr, yes there is. Since all domains are handled by
individual system users, just point both domains at the same system user:

[/var/qmail/control/virtualdomains]
  # format is ``domain:system_user''
  # I name system users after the domain, just to be simple
  example.com:example.com
  # domain alias for example.com
  example.net:example.com

(I'm sure it's possible w/o vmailmgr; that's just what I know.) The nice
thing about this method is that it avoids the add'l delivery of a forward
(which is what the FAQ suggests). We use this all the time.

HTH,

/pg
-- 
Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
---
panic(esp: penguin doesn't disconnect after status msg-ack.);
(Panic message in the kernel.)




RE: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-18 Thread Troy Settle


Peter, Edward,

Thanks for the input on this, I'll be playing with it more today.

One important thing I forgot to mention in my last post, is that I'm only a
MX for these domains, the customer runs his own server to handle the mail.
Normally, I'd just set up an SMTP route to send all the mail to the
customer's server, but they're running exchange, and for those who don't
know, it's not fun to admin an exchange server when you have hundreds of
users to configure to accept mail at dozens of domains (actually only 2 or
3, but still a pain).

Thanks,

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: peter green [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 8:22 AM
** To: [EMAIL PROTECTED]
** Subject: Re: Rewrite (.*)@foo.com to \\[EMAIL PROTECTED]
**
**
** * Troy Settle [EMAIL PROTECTED] [010617 17:20]:
**  Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
**  ~alias/.qmail-default, but that would appear to be for all
** domains, which I
**  do not want to do.
** 
**  So, I put that line into
** ~vpopmail/domains/foo.com/.qmail-default, but that
**  resulted in mail being forwarded to [EMAIL PROTECTED]
**
** s/LOCAL/DEFAULT/g
**
**  In postfix, this is easy stuff with virtualmaps:
** 
**@domain.com:@otherdomain.com
** 
**  Is there nothing similar in qmail?
**
** If you are using vmailmgr, yes there is. Since all domains are handled by
** individual system users, just point both domains at the same system user:
**
** [/var/qmail/control/virtualdomains]
**   # format is ``domain:system_user''
**   # I name system users after the domain, just to be simple
**   example.com:example.com
**   # domain alias for example.com
**   example.net:example.com
**
** (I'm sure it's possible w/o vmailmgr; that's just what I know.) The nice
** thing about this method is that it avoids the add'l delivery of a forward
** (which is what the FAQ suggests). We use this all the time.
**
** HTH,
**
** /pg
** --
** Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
** ---
** panic(esp: penguin doesn't disconnect after status msg-ack.);
** (Panic message in the kernel.)
**
**




RE: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-17 Thread Troy Settle


Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
~alias/.qmail-default, but that would appear to be for all domains, which I
do not want to do.

So, I put that line into ~vpopmail/domains/foo.com/.qmail-default, but that
resulted in mail being forwarded to [EMAIL PROTECTED]

How do I get around this?  I'm thinking that it's something in
/var/qmail/users/assign, but I'm not sure how to go about doing this.
Ideally, I'd like the whole job to be done within /var/qmail, allowing me to
remove the domain from vpopmail.

In postfix, this is easy stuff with virtualmaps:

  @domain.com:@otherdomain.com

Is there nothing similar in qmail?

TIA,

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: peter green [mailto:[EMAIL PROTECTED]]
** Sent: Sunday, June 10, 2001 10:18 PM
** To: [EMAIL PROTECTED]
** Subject: Re: Rewrite (.*)@foo.com to \\[EMAIL PROTECTED]
**
**
** * Troy Settle [EMAIL PROTECTED] [010610 20:37]:
**  What is the procedure under qmail to rewrite addresses under virtual
**  domains?  For example, I have a customer with several domains, and they
**  would like (.*)@foo.com to be rewritten to \\[EMAIL PROTECTED]  How
** can I do this?
**
** Does [http://cr.yp.to/qmail/faq/incominguser.html#luser-relay] do it for
** you? (Assume all @foo.com addresses are unrecognized and need to be
** forwarded to @bar.net.)
**
** /pg
** --
** Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
** ---
** Anytime I see something screech across a room and latch onto
** someone's neck,
** and the guy screams and tries to get it off, I have to laugh,
** because what is
** that thing.
**  (Jack Handey)
**
**




Re: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-10 Thread peter green

* Troy Settle [EMAIL PROTECTED] [010610 20:37]:
 What is the procedure under qmail to rewrite addresses under virtual
 domains?  For example, I have a customer with several domains, and they
 would like (.*)@foo.com to be rewritten to \\[EMAIL PROTECTED]  How can I do this?

Does [http://cr.yp.to/qmail/faq/incominguser.html#luser-relay] do it for
you? (Assume all @foo.com addresses are unrecognized and need to be
forwarded to @bar.net.)

/pg
-- 
Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
---
Anytime I see something screech across a room and latch onto someone's neck, 
and the guy screams and tries to get it off, I have to laugh, because what is 
that thing.
 (Jack Handey)