LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-27-2008, 12:55 AM   #1
NaCo
Member
 
Registered: Jun 2002
Location: L.A.
Distribution: Fedora
Posts: 46

Rep: Reputation: 15
Question Postfix Maildir delivery.


Hello,

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:

/vmail/examplehost.com/angel/
/vmail/examplehost.com/mark/

My goal is to have Postfix deliver an e-mail for angel@examplehost.com to both directories!

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

virtual_mailbox_base = /vmail
virtual_mailbox_maps = mysql:/etc/postfix/virtual_mysql_map.cf

In MySql table I have:

mail-----------------------------destination
angel@examplehost.com----------examplehost.com/angel/

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: examplehost.com/angel/, examplehost.com/mark/
but the virtual daemon does not like that.

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

but this parameter's conventions are:

test@test.com test@test2.com
and not
test@test.com test.com/test/ (as in virtual_mailbox_maps)


I will extremely apreciate help for this issue.

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

Rep: Reputation: 261Reputation: 261Reputation: 261
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
NaCo
Member
 
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 main.cf 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.

Angel.
 
Old 02-01-2008, 10:38 AM   #4
Berhanie
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 angel@examplehost.com is delivered to /vmail/examplehost.com/angel/, and mail to mark@examplehost.com is delivered to /vmail/examplehost.com/mark/, the way to do what you want is by means of virtual alias, in the manner stated by trickykid:
Code:
angel@examplehost.com    angel@examplehost.com, mark@examplehost.com
.

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:
Code:
angel@examplehost.com     mark@examplehost.com
Note that the target of a bcc is single address, while the target of a virtual alias can be a list of addresses.
 
  


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 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

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

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