Greg,

You need to create a virtual domain for domain2.com

$ cat ~qmaild/control/virtualdomains
domain2.com:alias-domain2

And then create a ~alias/.qmail-domain2-default:

$ cat ~alias/.qmail-domain2-default
|forward "$DEFAULT"@domain.com

Also make sure .domain2.com is in your rctphosts.


On Wed, Oct 25, 2000 at 11:42:01AM -0700, Barley wrote:
> Hi all,
> I am managing a mail server for a company that has two domain names serving
> the same site. They want people to be able to send them mail at either
> domain but have all mail forwarded to the first domain, one account per
> user. Is there a way to configure qmail so that if it recieves mail for
> [EMAIL PROTECTED] it automatically forwards to [EMAIL PROTECTED]? I know I
> could create an entry for each user and specify forwarding instructions
> individually, but I was hoping there was a more catch-all elegant solve that
> would automatically forward mail for new users I added to domain.com. Like
> if the system gets mail for [EMAIL PROTECTED], it automatically looks for
> [EMAIL PROTECTED] Thanks for any ideas.
> 
> Gregg
> 

-- 
                                                     Albert Hopkins
                                             Sr. Systems Specialist
                                              Dynacare Laboratories 
                                              [EMAIL PROTECTED]

If the devil were to offer me a resurgence of what is commonly called 
virility, I'd decline. 'Just keep my liver and lungs in good working order,' 
I'd reply, 'so I can go on drinking and smoking.' 
-Luis Buguel 

Reply via email to