LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2011, 06:46 AM   #1
defaultyeti
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
Question Postfix Virtual not working correct


Hi,

I got a Debian 6 Server running and it uses Postfix as MTA. I have set up 3 Domains and a catch all rule. My virtual file looks like this:
alice@aaa.com alice
bob@aaa.com bob
@aaa.com bob
@bbb.com bob
@ccc.com bob
It works fine so far. Now I tried to add this line on top:
something@aaa.com alice
and it did not work (mail gets delivered to the catch all address). It seems, it works ONLY if the part before the domain and the local recipient are equal. Does that make sense to anyone? What did I missconfigure?

Regards
 
Old 03-25-2011, 09:16 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
What do you mean in detail by something a wildcard or a specific user?
 
Old 03-25-2011, 12:49 PM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Just to ask a potentially dumb question, did you remember to run postmap on your alias table after you made the entry and then reload Postfix?
 
Old 03-26-2011, 05:55 AM   #4
defaultyeti
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
@Reuti: Some usernames I tried. e.g. "joe" "john" "yeti" "default" ...

@Noway2: Yes, postmap + restart
 
Old 03-26-2011, 08:41 AM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
For me it looks working. But it will only deliver the email to another address without changing the receiver address in the header. Maybe it ended up in a spam filter? Can you check the various postfix logfiles, what it did with the emails?

To rewrite addresses there are canonical maps in postfix.
 
Old 03-27-2011, 08:33 AM   #6
defaultyeti
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, I found the solution, it was in my postfix main.cf configuration:
I changed

mydestination = aaa.com, bbb.com, ccc.com, localhost

to

virtual_alias_domains = aaa.com, bbb.com, ccc.com, localhost


Thank you all for your help!
 
  


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
Virtual Postfix, mysql, and Virtual Aliases kipphudson Linux - Server 4 10-16-2010 12:36 AM
[SOLVED] TLS / SASL authentication, dovecot and postfix - does this config look correct? TonyAR Linux - Server 2 10-14-2010 12:40 PM
Apache Virtual Host doesnt serve files from correct directories ajb1967 Linux - Server 3 08-05-2010 05:55 AM
Virtual Email Account for virtual domain in Postfix javed_dogar Linux - Server 7 10-17-2008 01:31 PM
(lenny) postfix + maildrop -- cant set correct maildir gnirtS Debian 1 12-18-2007 09:49 AM

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

All times are GMT -5. The time now is 10:28 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