----- Original Message ----- From: "noel seq" noelseq@hotmail.com
Earlier i used forwarding of mails for users not found locally, to pqr@mail.foo.com, collected the same on the net by creating a sub-domain mail on foo.com, pop accounts pqr for receiving and forwarding the same to their respective accounts. Now, with many new pop accounts being added, is there an alternative and simpler method of forwarding mail for such accounts.
I had the same problem, which I earlier worked around using the serialmail package. What that did was to take users that were not local, put all the messages destined for them in a separate maildir, which was read and dumped to a "smarthost" by the serialmail program. This works, but you have to rely on a smart host. Not so nice seeing that qmail is really slick at deliveries.
However, now I use a system similar to yours. I have another domain pointing to the same IP on my hosted/colocated server, so user@foo.com is also user@bar.com in my setup. This is different from your setup in that no manual forwarding has been done. Every POP box on my server can recieve mail for every domain hosted on it. abc@foo.com == abc@bar.com == abc@xyz.com. This is not a problem for me since the server and all it's domains are owned by a single company, and they don't duplicate their email addresses across organisations.
Then I have my ~alias/.qmail-default look like this:
| forward "$LOCAL"@bar.com
The "$LOCAL" is an environment variable that holds the user part of the email recipient.
So in your case, when mail is sent to pqr@foo.com, with this setup, it will be forwarded to pqr@bar.com, which is the same as pqr@foo.com. This is how my setups work - 13 so far. No problems.
--- Tushar Burman GNU/Linux/*BSD evangelist, friend to animals. tb@freeos.com icq: 112803958 y!: tusharburman msn: tusharburman aolim: tusharburman ---