LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix - Alias across domains (https://www.linuxquestions.org/questions/linux-server-73/postfix-alias-across-domains-882750/)

mgichoga 05-25-2011 11:49 PM

Postfix - Alias across domains
 
Linux Gurus,

I don't know if this is possible or not. I'm relaying mail for one of my sister domains through postfix transport. When their server crashed irrecoverably, I have mail in the queue that I need to forward to a new domain with another name that they have created.

ie. [old-domain].com needs to go to [new-domain].org


Is this even possible? All I see in aliases is individual users and not across domains.

Any help greatly appreciated.

Berhanie 05-26-2011 10:31 AM

so, you have mails in queue, and you want to change their destination addresses from user@old-domain to user@new-domain, is that right?

Quote:

Is this even possible? All I see in aliases is individual users and not across domains.
yes, use a pcre table for virtual aliases to capture the user portion of the address.

once the tables are in place, you'll have to requeue the mail. first, test it on one of the mails:
Code:

postsuper -r queue_id
, and then do it:
Code:

postsuper -r ALL
[edit]
if old-domain is listed in relay_domains, you need to change to new-domain before requeuing.

mgichoga 05-28-2011 07:13 PM

Thank you. It took a little bit more reading but it worked as suggested. I appreciate the community's help.


All times are GMT -5. The time now is 01:04 AM.