LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2011, 02:57 AM   #1
drezard
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
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
 
Old 04-07-2011, 12:05 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Something like
Code:
/etc/postfix/virtual:
@example1.com         test
@example2.com         test
, maybe?

http://www.postfix.org/VIRTUAL_README.html



Cheers,
Tink
 
  


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 + Dovecot + virtual users without a database? MheAd Linux - Server 6 10-18-2011 09:45 AM
postfix virtual users and mailman tiemen3r Linux - Server 1 07-22-2010 06:05 AM
PostFix forwardings with Virtual Users. Niels@debian Linux - Server 2 08-30-2006 11:52 AM
procmail with virtual users and postfix paul_mat Linux - Networking 0 04-06-2006 09:13 PM
Maildir, virtual postfix users sopiaz57 Linux - General 0 03-01-2004 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 AM.

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