Prev Previous Post   Next Post Next
  #1  
Old 6th April 2011, 08:58
drezard drezard is offline
Junior Member
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix Virtual Users

Basically, I want a "catch-all" user. (Not a domain catch-all, a user catch-all).

So when mail is sent to user@* (as long as the * is a domain listed in vhosts) then the mail gets dropped in this users mailbox.

My configuration looks like the below...

The only problem is when I send emails here is the responses I'm getting:
Code:
Send an email to:
test@example1.com - example1.com/test/ - works perfectly :)
test@example2.com - example2.com/test/ - works perfectly :)
test01@example1.com - NDR - no user recognized - fails
test01@example2.com - NDR - no user recognized - fails
How I would like it to work:
Code:
Send an email to:
test@example1.com - example1.com/test/ 
test@example2.com - example2.com/test/ 
test01@example1.com - test/
test01@example2.com - test/
vmaps (It is being postmap'ed):
Code:
test01    test/
test@example1.com    example1.com/test/
test@example2.com    example2.com/test/
vhosts:
Code:
example1.com
example2.com
main.cf:
Code:
smtpd_banner = Mail Relay
biff = no

append_dot_mydomain = no

myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
home_mailbox = Maildir/
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:1000
virtual_gid_maps = static:1000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
mydestination = $myhostname
relayhost =
mail.log:
Code:
Apr  6 10:28:15 mail-relay postfix/qmgr[6106]: D3FDC62B819F: from=<root@localhost>, size=354, nrcpt=1 (queue active)
Apr  6 10:28:15 mail-relay postfix/virtual[6117]: D3FDC62B819F: to=<test01@example1.com>, relay=virtual, delay=11, delays=11/0.02/0/0.02, dsn=5.1.1, status=bounced (unknown user: "test01@example1.com")
How do I go about setting this up?

Drez
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 18:37
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner,Mailwatch CentOS 5.2 tecstream HOWTO-Related Questions 3 16th July 2008 22:10


All times are GMT +2. The time now is 04:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.