Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th January 2008, 22:02
Angelito Angelito is offline
Junior Member
 
Join Date: Jan 2008
Location: Los Angeles,CA (US)
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix Virtual accounts, virtual daemon; Delivery to to Maildirs at same time.

Hello,

I have Postfix running in a test 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 two 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/
mark@examplehost.com----------examplehost.com/mark/

This and the rest of the configuration is working fine, but I just can't 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.
Reply With Quote
Sponsored Links
  #2  
Old 31st January 2008, 07:14
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

I dont see why virtual_alias_maps will not work because the users maildir is not a different one from the default i mean if you want to deliver the same mail to two mail boxes belonging to two users its simply an aliasing issue.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 31st January 2008, 07:33
Angelito Angelito is offline
Junior Member
 
Join Date: Jan 2008
Location: Los Angeles,CA (US)
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply topdog!

so if virtual_alias_maps should be able to do the job, it would mean that having the next entry for this parameter:

angel@examplehost.com mark@examplehost.com

... will make Postfix drop a copy of an email in /vmail/examplehost.com/angel/ and deliver another copy in /vmail/examplehost.com/mark/ without erasing the first copy dropped?

If this is the case my issue is solved.

once again thank you.
any comments/help/suggestions are welcome.
Reply With Quote
  #4  
Old 31st January 2008, 07:43
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

I think you need it this way
Code:
angel@examplehost.com angel@examplehost.com, mark@examplehost.com
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

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
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
How do you change the email attachment default Rockdrala Installation/Configuration 7 10th January 2008 16:11
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 17:41.


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