LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-24-2010, 12:35 PM   #1
gr33d
Member
 
Registered: Dec 2008
Posts: 41

Rep: Reputation: 15
Postfix virtual alias for second domain not mapping correctly


EDIT I moved the catch-all mapping to the bottom of the virtual_alias_maps hash, and I realized my problem description wasn't accurate. All mail is going to user1. The header tells me it's going to user2 or user3, but everything is delivered to user1. Any ideas what's going on? Let me know if I've omitted relative parts of the config files.

postfix 2.5.5 fc8

/etc/postfix/virtual:

Code:
me@domain2.com      user2
another@domain2.com   user3
@domain1.net      user1
/etc/postfix/main.cf

Code:
mydestination = $myhostname, localhost.$mydomain
virtual_alias_domains = domain1.net domain2.com
virtual_alias_maps = hash:/etc/postfix/virtual
myhostname = domain1.net
mydomain = domain1.net
my catch-all for domain.net is working ok. however, everything sent to domain2.com is delivered to user2 (local). i am expecting another@domain2.com mail to be delivered to user3 (also local)

what am i missing? thanks in advance!

Last edited by gr33d; 06-25-2010 at 11:13 AM. Reason: changed configuration--new problem
 
Old 06-29-2010, 08:47 AM   #2
gr33d
Member
 
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
bump?
 
Old 06-29-2010, 10:08 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,317

Rep: Reputation: 124Reputation: 124
Very strange really.
Only thing I've found is from Postfix manual:
Code:
/etc/postfix/virtual:
           virtual-alias.domain     anything (right-hand content does not matter)
           postmaster@virtual-alias.domain  postmaster
           user1@virtual-alias.domain       address1
           user2@virtual-alias.domain       address2, address3

       The  virtual-alias.domain anything entry is required for a
       virtual alias domain. Without this entry, mail is rejected
       with  "relay  access  denied", or bounces with "mail loops
       back to myself".
Maybe try adding that "virtual-alias.domain anything".
You could also try separating "virtual_alias_domains = domain1.net domain2.com" with a comma - although whitespace should be ok.
Edit: How does the dns entry for your domains look?

Last edited by pingu; 06-29-2010 at 10:11 AM.
 
Old 06-29-2010, 10:19 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,317

Rep: Reputation: 124Reputation: 124
And you haven't forgotten to execute the command "postmap /etc/postfix/virtual"
 
Old 06-29-2010, 10:20 AM   #5
gr33d
Member
 
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
pingability.com tells me DNS/MX records are ok.

i have not forgot postmap /etc/postfix/virtual. i normally try restarting postfix after the postmap command and sending failed emails.

ill try your other suggestions, thanks.

Last edited by gr33d; 06-29-2010 at 10:21 AM.
 
  


Reply

Tags
postfix


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
[SOLVED] POSTFIX - virtual domain and alias maps results in 'unknown user' brenton.williams Linux - Server 2 08-19-2009 01:32 AM
Virtual Email Account for virtual domain in Postfix javed_dogar Linux - Server 7 10-17-2008 01:31 PM
POSTFIX with VIRTUAL DOMAIN jgph71 Linux - Software 3 10-14-2008 02:24 AM
POstfix domain mapping, how? kuplo Suse/Novell 1 12-14-2005 10:56 PM
Mysql - Postfix alias domain paulten Linux - Networking 0 11-03-2003 05:05 PM


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

Main Menu
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