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
> **
> **
> 
> 

Reply via email to