Re: vdelivermail delivers doubles (was: Catch all account!)

2001-07-17 Thread Alexander Bahlo

Daniel Biddle writes: 

> hope this helps,

Yes, it does. Thank you and Bill! :-) 

Alexander.



Re: vdelivermail delivers doubles (was: Catch all account!)]

2001-07-17 Thread Bill Shupp

> Did you ever try to put in this .qmail-default a second line when,
> for example, all umatched mail to a domain should be delivered to
> two adresses? Well, what happens is, that every matched address
> will get suddenly two identical emails. Is this a bug?
>
> -Alexander.

I would probably just setup a forward with the 2 addresses, and redirect
the first line to the forward.

Bill



Re: vdelivermail delivers doubles (was: Catch all account!)

2001-07-17 Thread Daniel Biddle

On Tue, Jul 17, 2001 at 04:23:42PM +0100, Alexander Bahlo wrote:
> On Mon, 16 Jul 2001 23:41:41 -0400, Bill Shupp wrote:
> 
> >If you want only unmatching emails to go there, put this:
> >
> >/home/vpopmail/bin/vdelivermail '' user@remotedomain
> 
> Did you ever try to put in this .qmail-default a second line when,
> for example, all umatched mail to a domain should be delivered to
> two adresses? Well, what happens is, that every matched address
> will get suddenly two identical emails. Is this a bug?

Yes, but it's a bug in your .qmail-default file, of your own making.

.qmail-default is a set of instructions telling qmail how to deliver
messages. qmail does what you tell it to: if you tell it to run the
vdelivermail program twice, it runs it twice.

vdelivermail also does what it's told to do: if you tell it to deliver a
message and it can, it will - even if another copy of the message has
already been delivered.

So, don't put vdelivermail into .qmail-default twice. Instead, set up
an address which forwards to two addresses. Then put that address at the
end of a single vdelivermail command in .qmail-default.


hope this helps,
-- 
Daniel Biddle <[EMAIL PROTECTED]>



vdelivermail delivers doubles (was: Catch all account!)

2001-07-17 Thread Alexander Bahlo

On Mon, 16 Jul 2001 23:41:41 -0400, Bill Shupp wrote:

>If you want only unmatching emails to go there, put this:
>
>/home/vpopmail/bin/vdelivermail '' user@remotedomain

Did you ever try to put in this .qmail-default a second line when,
for example, all umatched mail to a domain should be delivered to
two adresses? Well, what happens is, that every matched address
will get suddenly two identical emails. Is this a bug?

-Alexander.




Re: Catch all account!

2001-07-17 Thread Daniel Biddle

On Tue, Jul 17, 2001 at 08:14:04AM -0400, Ed Henderson wrote:
> Add this line to /var/qmail/control/virtualdomains:
> test.com:joeuser@remotedomain
> 
> This will forward all mail for test.com to the mail account
> "joeuser@remotedomain"

For instance, mail to [EMAIL PROTECTED] will be sent to the local address
joeuser@[EMAIL PROTECTED] - probably not what you intended.

See the section on virtualdomains in the manual page for qmail-send:
.

-- 
Daniel Biddle <[EMAIL PROTECTED]>



Re: Catch all account!

2001-07-17 Thread Peter Palmreuther

Hello Troy,

On Tuesday, July 17, 2001 at 1:37:45 PM "Troy Settle" wrote 
to subject: "Catch all account!":

TS> I'd actually prefer to not even have the domain created within vpopmail or a
TS> local account on the machine.  Is there a simple way to do this with just
TS> the files in /var/qmail/ ?

I'd give a try adding the domain to /var/qmail/control/rcpthosts and adding a
line to /var/qmail/control/smtproutes like

example.com:[ip-of-real-destination-host]

or

example.com:exchange-server.customer.com

HUPing qmail-send (either svc -h /service/qmail or killall -HUP qmail-send)
and the work should be done.

HTH
-- 
Best regards
Peter Palmreuthermailto:[EMAIL PROTECTED]




RE: Catch all account!

2001-07-17 Thread Troy Settle


Works perfectly.  Thanks bunches.

--
  Troy Settle
  Pulaski Networks
  540.994.4254 - 866.477.5638
  http://www.psknet.com
 

** -Original Message-
** From: Troy Settle [mailto:[EMAIL PROTECTED]]
** Sent: Tuesday, July 17, 2001 8:37 AM
** To: [EMAIL PROTECTED]
** Subject: RE: Catch all account!
** 
** 
** 
** 
** Ok, I'll give this a try.
** 
** The killer of this, is that my customer is running exchange behind a
** firewall.  My mail servers are the only hosts allowed to connect 
** through on
** port 25.  The real kicker is that this customer has 50+ domains, and if
** anyone has ever worked with exchange, you know it's not fun mapping out
** several hundred users to even a few domains, let alone 50+.
** 
** 
** --
**   Troy Settle
**   Pulaski Networks
**   540.994.4254 - 866.477.5638
**   http://www.psknet.com
** 
** 
** ** -Original Message-
** ** From: Daniel Biddle [mailto:[EMAIL PROTECTED]]
** ** Sent: Tuesday, July 17, 2001 8:29 AM
** ** To: [EMAIL PROTECTED]
** ** Subject: Re: Catch all account!
** **
** **
** ** On Tue, Jul 17, 2001 at 07:37:23AM -0400, Troy Settle wrote:
** ** >
** ** > What about forwarding all mail to another domain, but keeping
** ** the $LOCAL
** ** > value?
** ** >
** ** > The qmail faq says this in .qmail-default:
** ** >
** ** > | forward "$LOCAL@remotedomain"
** ** >
** ** > But this does not work, as $LOCAL = "domain-user"
** **
** ** Try $EXT instead. (The manual page for qmail-command lists 
** several more
** ** variables that may be useful in other situations.)
** **
** ** > I'd actually prefer to not even have the domain created within
** ** vpopmail or a
** ** > local account on the machine.  Is there a simple way to do
** ** this with just
** ** > the files in /var/qmail/ ?
** **
** ** Yes:
** **
** ** # set up the forwarding instruction
** ** echo '| forward "$EXT2@remotedomain"' > ~alias/.qmail-domain-default
** **
** ** # tell qmail where to find it
** ** echo domain:alias-domain >> /var/qmail/control/virtualhosts
** ** svc -h /service/qmail
** **
** ** # allow messages to be received
** ** echo domain >> /var/qmail/control/rcpthosts
** **
** ** I've not tested this, but I think it should work. (Except for 
** the domain
** ** names, of course!)
** **
** ** Of course you can avoid all this if the remote server is configured
** ** to accept mail for the original domain: then you can just change DNS.
** **
** **
** ** hope this helps,
** ** --
** ** Daniel Biddle <[EMAIL PROTECTED]>
** **
** **
** 
** 



RE: Catch all account!

2001-07-17 Thread Troy Settle



Ok, I'll give this a try.

The killer of this, is that my customer is running exchange behind a
firewall.  My mail servers are the only hosts allowed to connect through on
port 25.  The real kicker is that this customer has 50+ domains, and if
anyone has ever worked with exchange, you know it's not fun mapping out
several hundred users to even a few domains, let alone 50+.


--
  Troy Settle
  Pulaski Networks
  540.994.4254 - 866.477.5638
  http://www.psknet.com


** -Original Message-
** From: Daniel Biddle [mailto:[EMAIL PROTECTED]]
** Sent: Tuesday, July 17, 2001 8:29 AM
** To: [EMAIL PROTECTED]
** Subject: Re: Catch all account!
**
**
** On Tue, Jul 17, 2001 at 07:37:23AM -0400, Troy Settle wrote:
** >
** > What about forwarding all mail to another domain, but keeping
** the $LOCAL
** > value?
** >
** > The qmail faq says this in .qmail-default:
** >
** >| forward "$LOCAL@remotedomain"
** >
** > But this does not work, as $LOCAL = "domain-user"
**
** Try $EXT instead. (The manual page for qmail-command lists several more
** variables that may be useful in other situations.)
**
** > I'd actually prefer to not even have the domain created within
** vpopmail or a
** > local account on the machine.  Is there a simple way to do
** this with just
** > the files in /var/qmail/ ?
**
** Yes:
**
** # set up the forwarding instruction
** echo '| forward "$EXT2@remotedomain"' > ~alias/.qmail-domain-default
**
** # tell qmail where to find it
** echo domain:alias-domain >> /var/qmail/control/virtualhosts
** svc -h /service/qmail
**
** # allow messages to be received
** echo domain >> /var/qmail/control/rcpthosts
**
** I've not tested this, but I think it should work. (Except for the domain
** names, of course!)
**
** Of course you can avoid all this if the remote server is configured
** to accept mail for the original domain: then you can just change DNS.
**
**
** hope this helps,
** --
** Daniel Biddle <[EMAIL PROTECTED]>
**
**




RE: Catch all account!

2001-07-17 Thread Troy Settle


Sounds good, but I don't know all the usernames in the target domain, nor
would I want to add/remove users as my customer adds/removes users.

In regexp format, here's what I need:

  (.*)@test.com:\\1@remotedomain

I've had people suggest the use of vaddaliasdomain, but not every aliased
domain will be for local delivery.

Are there other environment variables besides $LOCAL that are set that I
might be able to use?  What about using a regexp in .qmail-default?

--
  Troy Settle
  Pulaski Networks
  540.994.4254 - 866.477.5638
  http://www.psknet.com


** -Original Message-
** From: Ed Henderson [mailto:[EMAIL PROTECTED]]
** Sent: Tuesday, July 17, 2001 8:14 AM
** To: 'Troy Settle'; [EMAIL PROTECTED]
** Subject: RE: Catch all account!
**
**
** Add this line to /var/qmail/control/virtualdomains:
** test.com:joeuser@remotedomain
**
** This will forward all mail for test.com to the mail account
** "joeuser@remotedomain"
**
** > -Original Message-
** > From: Troy Settle [mailto:[EMAIL PROTECTED]]
** > Sent: Tuesday, July 17, 2001 7:38 AM
** > To: [EMAIL PROTECTED]
** > Subject: RE: Catch all account!
** >
** >
** >
** > What about forwarding all mail to another domain, but keeping
** > the $LOCAL
** > value?
** >
** > The qmail faq says this in .qmail-default:
** >
** >| forward "$LOCAL@remotedomain"
** >
** > But this does not work, as $LOCAL = "domain-user"
** >
** > I'd actually prefer to not even have the domain created
** > within vpopmail or a
** > local account on the machine.  Is there a simple way to do
** > this with just
** > the files in /var/qmail/ ?
** >
** > TIA,
** >
** > --
** >   Troy Settle
** >   Pulaski Networks
** >   540.994.4254 - 866.477.5638
** >   http://www.psknet.com
** >
** >
** > ** -Original Message-
** > ** From: root [mailto:root]On Behalf Of Bill Shupp
** > ** Sent: Monday, July 16, 2001 11:42 PM
** > ** To: Daniel Duclos
** > ** Cc: [EMAIL PROTECTED]
** > ** Subject: Re: Catch all account!
** > **
** > **
** > ** Daniel Duclos wrote:
** > **
** > ** > Hello
** > ** >
** > ** > I have a virtual domain in my vpopmail, and I
** > need to make sure
** > ** > that all mails send to that domain are forwarded to an account
** > ** elsewhere
** > ** > in the internet!
** > ** >
** > ** > I couldn't get this working =(
** > ** > I hav a Linux box, qmail, vpopmail.
** > **
** > ** If you want *all* mail for the "test.com" to be forwarded
** > to another
** > ** account
** > ** put this in /home/vpopmail/domains/test.com/.qmail-default:
** > ** &user@remotedomain
** > **
** > ** If you want only unmatching emails to go there, put this:
** > **
** > ** /home/vpopmail/bin/vdelivermail '' user@remotedomain
** > **
** > ** Obviously, your paths may differ.
** > **
** > ** HTH,
** > **
** > ** Bill Shupp
** > **
** > **
** >
** >
**
**




Re: Catch all account!

2001-07-17 Thread Daniel Biddle

On Tue, Jul 17, 2001 at 07:37:23AM -0400, Troy Settle wrote:
> 
> What about forwarding all mail to another domain, but keeping the $LOCAL
> value?
> 
> The qmail faq says this in .qmail-default:
> 
>   | forward "$LOCAL@remotedomain"
> 
> But this does not work, as $LOCAL = "domain-user"

Try $EXT instead. (The manual page for qmail-command lists several more
variables that may be useful in other situations.)

> I'd actually prefer to not even have the domain created within vpopmail or a
> local account on the machine.  Is there a simple way to do this with just
> the files in /var/qmail/ ?

Yes:

# set up the forwarding instruction
echo '| forward "$EXT2@remotedomain"' > ~alias/.qmail-domain-default

# tell qmail where to find it
echo domain:alias-domain >> /var/qmail/control/virtualhosts
svc -h /service/qmail

# allow messages to be received
echo domain >> /var/qmail/control/rcpthosts

I've not tested this, but I think it should work. (Except for the domain
names, of course!)

Of course you can avoid all this if the remote server is configured
to accept mail for the original domain: then you can just change DNS.


hope this helps,
-- 
Daniel Biddle <[EMAIL PROTECTED]>



RE: Catch all account!

2001-07-17 Thread Ed Henderson

Add this line to /var/qmail/control/virtualdomains:
test.com:joeuser@remotedomain

This will forward all mail for test.com to the mail account "joeuser@remotedomain"

> -Original Message-
> From: Troy Settle [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 7:38 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Catch all account!
> 
> 
> 
> What about forwarding all mail to another domain, but keeping 
> the $LOCAL
> value?
> 
> The qmail faq says this in .qmail-default:
> 
>   | forward "$LOCAL@remotedomain"
> 
> But this does not work, as $LOCAL = "domain-user"
> 
> I'd actually prefer to not even have the domain created 
> within vpopmail or a
> local account on the machine.  Is there a simple way to do 
> this with just
> the files in /var/qmail/ ?
> 
> TIA,
> 
> --
>   Troy Settle
>   Pulaski Networks
>   540.994.4254 - 866.477.5638
>   http://www.psknet.com
> 
> 
> ** -Original Message-
> ** From: root [mailto:root]On Behalf Of Bill Shupp
> ** Sent: Monday, July 16, 2001 11:42 PM
> ** To: Daniel Duclos
> ** Cc: [EMAIL PROTECTED]
> ** Subject: Re: Catch all account!
> **
> **
> ** Daniel Duclos wrote:
> **
> ** > Hello
> ** >
> ** > I have a virtual domain in my vpopmail, and I 
> need to make sure
> ** > that all mails send to that domain are forwarded to an account
> ** elsewhere
> ** > in the internet!
> ** >
> ** > I couldn't get this working =(
> ** > I hav a Linux box, qmail, vpopmail.
> **
> ** If you want *all* mail for the "test.com" to be forwarded 
> to another
> ** account
> ** put this in /home/vpopmail/domains/test.com/.qmail-default:
> ** &user@remotedomain
> **
> ** If you want only unmatching emails to go there, put this:
> **
> ** /home/vpopmail/bin/vdelivermail '' user@remotedomain
> **
> ** Obviously, your paths may differ.
> **
> ** HTH,
> **
> ** Bill Shupp
> **
> **
> 
> 




RE: Catch all account!

2001-07-17 Thread Troy Settle


What about forwarding all mail to another domain, but keeping the $LOCAL
value?

The qmail faq says this in .qmail-default:

| forward "$LOCAL@remotedomain"

But this does not work, as $LOCAL = "domain-user"

I'd actually prefer to not even have the domain created within vpopmail or a
local account on the machine.  Is there a simple way to do this with just
the files in /var/qmail/ ?

TIA,

--
  Troy Settle
  Pulaski Networks
  540.994.4254 - 866.477.5638
  http://www.psknet.com


** -Original Message-
** From: root [mailto:root]On Behalf Of Bill Shupp
** Sent: Monday, July 16, 2001 11:42 PM
** To: Daniel Duclos
** Cc: [EMAIL PROTECTED]
** Subject: Re: Catch all account!
**
**
** Daniel Duclos wrote:
**
** > Hello
** >
** > I have a virtual domain in my vpopmail, and I need to make sure
** > that all mails send to that domain are forwarded to an account
** elsewhere
** > in the internet!
** >
** > I couldn't get this working =(
** > I hav a Linux box, qmail, vpopmail.
**
** If you want *all* mail for the "test.com" to be forwarded to another
** account
** put this in /home/vpopmail/domains/test.com/.qmail-default:
** &user@remotedomain
**
** If you want only unmatching emails to go there, put this:
**
** /home/vpopmail/bin/vdelivermail '' user@remotedomain
**
** Obviously, your paths may differ.
**
** HTH,
**
** Bill Shupp
**
**




Re: Catch all account!

2001-07-16 Thread Bill Shupp

Daniel Duclos wrote:

> Hello
>
> I have a virtual domain in my vpopmail, and I need to make sure
> that all mails send to that domain are forwarded to an account elsewhere
> in the internet!
>
> I couldn't get this working =(
> I hav a Linux box, qmail, vpopmail.

If you want *all* mail for the "test.com" to be forwarded to another
account
put this in /home/vpopmail/domains/test.com/.qmail-default:
&user@remotedomain

If you want only unmatching emails to go there, put this:

/home/vpopmail/bin/vdelivermail '' user@remotedomain

Obviously, your paths may differ.

HTH,

Bill Shupp



Catch all account!

2001-07-16 Thread Daniel Duclos


Hello

I have a virtual domain in my vpopmail, and I need to make sure
that all mails send to that domain are forwarded to an account elsewhere
in the internet!

I couldn't get this working =(
I hav a Linux box, qmail, vpopmail.

Thak you for your help!

Regards!

daniduc


Daniel Lobato Duclos - [EMAIL PROTECTED] - http://www.cybershark.net
---
Stand for something, or you will fall for nothing.
(http://www.gnu.org/philosophy/pragmatic.html)