LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forward user email to one domain (http://www.linuxquestions.org/questions/linux-newbie-8/forward-user-email-to-one-domain-845865/)

Prime235 11-22-2010 02:12 PM

Forward user email to one domain
 
Is there an easier way to forward email, in postfix, from a user to one domain for the user without listing every domain and user name?

Example: send all of user joe's email to joe@somewhere, in which there are mulitple domains other than "somewhere".

Usual Given Example-
/etc/postfix/virtual:
joe@example.com joe@somewhere
jane@example.com jane@somewhere-else

Can you do something like:
joe@ joe@somwhere
jane@ jane@somewhere
so every email of joe's goes to the somewhere domain, and every email of jane's goes to the email domain.

I'm looking for an easier way to forward email, verses having (ex) 50 different lines for 5 users and 10 domains.
I hope this makes sence.

Thanks.

smoker 11-22-2010 03:20 PM

No it doesn't make "sense".
You want to forward email for one user to one domain, then you mention multiple domains. Make your mind up.

If you ask a sensible question, you will probably get a sensible answer.

Prime235 11-23-2010 07:42 AM

All I meant was I need all users mail to go to one domain, while keeping the email separated for each user.

Ex:
Joe@whatever1 Joe@Here
Joe@whatever2 Joe@Here
Joe@whatever3 Joe@Here
...

Jane@whatever1 Jane@Here
Jane@whatever2 Jane@Here
Jane@whatever3 Jane@Here
...

So I have multiple users and multiple domains, but i need all email to go to the individual user on one domain. Not all email going to one user on one domain.

I hope this is clearer.


All times are GMT -5. The time now is 01:13 PM.