LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-25-2011, 11:49 PM   #1
mgichoga
Member
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 16
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.

Last edited by mgichoga; 05-25-2011 at 11:53 PM.
 
Old 05-26-2011, 10:31 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.

Last edited by Berhanie; 05-26-2011 at 10:37 AM.
 
1 members found this post helpful.
Old 05-28-2011, 07:13 PM   #3
mgichoga
Member
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 16
Thank you. It took a little bit more reading but it worked as suggested. I appreciate the community's help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deny access to alias for certain domains bentman78 Linux - Server 4 05-21-2009 01:52 PM
vhost.conf and Alias to share common files across domains - impact on server load? Trance-formation Linux - Server 2 05-19-2009 04:32 PM
Exim4+courier+webadmin: multiple domains and alias problem djib Debian 1 06-16-2008 05:04 PM
postfix alias domains csaunders Red Hat 1 04-17-2007 11:44 AM
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration