LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:35 AM   #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 10:13 AM. Reason: changed configuration--new problem
 
Old 06-29-2010, 07:47 AM   #2
gr33d
Member
 
Registered: Dec 2008
Posts: 41

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

Rep: Reputation: 127Reputation: 127
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 09:11 AM.
 
Old 06-29-2010, 09:19 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
And you haven't forgotten to execute the command "postmap /etc/postfix/virtual"
 
Old 06-29-2010, 09: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 09:21 AM.
 
  


Reply

Tags
postfix



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 12:32 AM
Virtual Email Account for virtual domain in Postfix javed_dogar Linux - Server 7 10-17-2008 12:31 PM
POSTFIX with VIRTUAL DOMAIN jgph71 Linux - Software 3 10-14-2008 01:24 AM
POstfix domain mapping, how? kuplo SUSE / openSUSE 1 12-14-2005 09:56 PM
Mysql - Postfix alias domain paulten Linux - Networking 0 11-03-2003 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 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
Open Source Consulting | Domain Registration