LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-14-2009, 02:35 AM   #1
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 546

Rep: Reputation: 30
Exclamation postfix recipent aliases


Hi LQ!
My old address was previuosname@previoushostname.domain .
I have changed both username and hostname (still on the same machine and domain)
but i still get some mail delivered to the old recipient getting

> Relay access denied; error

Changing the aliases file to "previousname: actualname" didn't work .(offcourse!)
How could i work around this ?
Thanks

Gab
 
Old 03-14-2009, 07:36 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You should use virtual rather than aliases for this. E.g.

In main.cf
Code:
virtual_alias_domains = olddomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
In virtual:
Code:
oldname@olddomain.com    newname@newdomain.com
Make sure that olddomain.com is not listed under any other address class,
such as mydestination and virtual_mailbox_domains.
 
Old 03-14-2009, 08:56 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If previoushostname isn't used elsewhere, you could still list it under mydestination and avoid using virtual maps, but that depends on your setup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix with pop3 AND aliases Jeozp Linux - Server 4 06-21-2007 11:24 AM
Postfix/Procmail multiple recipent handling problem kirkland500 Linux - Networking 2 03-15-2005 06:14 PM
Postfix aliases riotpunk Linux - Software 1 07-23-2004 04:39 AM
postfix aliases\users help nidputerguy Linux - Networking 11 02-08-2004 09:18 PM
Postfix and the aliases file MasterC Linux - General 5 01-16-2003 04:40 PM


All times are GMT -5. The time now is 09:12 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration