Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-27-2008, 12:55 AM   #1
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
Question Postfix Maildir delivery.


I have Postfix running in a testing server; I have the installation set for Maildir delivery using virtual accounts (virtual mailboxes-non existing linux accounts) and I am able to send and receive e-mails.

I am looking for a way to make Postfix deliver an e-mail to two (or more if specified) Maildir (s) at the same time; for example, I have set to directories for virtual-mailbox delivery:


My goal is to have Postfix deliver an e-mail for to both directories!

I have the next parameters in Postfix's configuration file:

virtual_mailbox_base = /vmail
virtual_mailbox_maps = mysql:/etc/postfix/

In MySql table I have:


This and the rest of the configuration is working fine, but I just can not get to a solution for what I want to do.

I try inserting in the table's destination field:,
but the virtual daemon does not like that.

I have also tried the Postfix's parameter in
virtual_alias_maps = hash:/etc/postfix/virtual_alias

but this parameter's conventions are:
and not (as in virtual_mailbox_maps)

I will extremely apreciate help for this issue.

Thank you
Old 01-28-2008, 10:55 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 262Reputation: 262Reputation: 262
I'm not familiar with virtual users with MySQL but you could probably get away with this by setting up a regular alias to deliver to each user in the /etc/aliases or /etc/postfix/aliases, whichever one you use in that aspect.

angel: angel, mark
Old 01-31-2008, 12:16 AM   #3
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Original Poster
Rep: Reputation: 15
perhaps a shell script?

Thank you for your reply trickykid!

but for my understanding etc/aliases and /etc/postfix/aliases are for local accounts(linux accounts), their equivalent for virtual accounts would be the virtual_alias_maps in Postfix's configuration file, but this parameter just forwards email to another email or perhaps a local account.

I was thinking that maybe a shell script would be able to do the job, working to copy new content to another directory as soon as new content is detected in the original directory, again this is just a hypothesis; but if some one is got better skills than me to confirm this, it will be a great help for me.

Once again thank you, and any help/comment is welcome.

Old 02-01-2008, 10:38 AM   #4
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
In reference to your question on this post, assuming mail to is delivered to /vmail/, and mail to is delivered to /vmail/, the way to do what you want is by means of virtual alias, in the manner stated by trickykid:

Alternatively, as you mention in the post, you could use recipient_bcc_maps, and plop a copy of mail to coming to angel into mark's box:
Note that the target of a bcc is single address, while the target of a virtual alias can be a list of addresses.


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 and Maildir help dalrq79 Linux - Server 5 12-13-2007 09:22 PM
New to Postfix and Maildir kevlarmcc Linux - Server 5 03-17-2007 10:35 PM
Postfix and local delivery shawnbishop Linux - Software 20 10-28-2006 02:11 PM
postfix mail delivery berrance Linux - Networking 4 02-28-2005 07:46 AM
postfix and maildir format forand Linux - Software 4 05-05-2003 01:21 PM > Forums > Linux Forums > Linux - Server

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration