Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th May 2006, 10:05
Wido Wido is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Maildir] Converting from Qmail to Postfix

Hi,

Right now i am running a Qmail box with Vpopmail.

It saves his mail like this:

<prefix>/domain/user/Maildir/(new/cur/tmp)

I followed this howto: http://www.howtoforge.com/virtual_po..._quota_courier

It works ok, but it saves his mail without /Maildir/ in the path.

I have to convert about 12.000 domains, so it would be very nice if i could force Postfix to also use that directory structure.

I assume i have to change something in the main.cf and something in authmysqlrc of courier, right?

I already added home_mailbox = Maildir/ to postfix's main.cf, but that does not add the Maildir directory to the path.

So what i want:

Mail to be delivered in: /home/vmail/domain/user/Maildir/(new|cur|tmp)

Can anyone help me with this?

Thank you!
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2006, 10:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I think you'll have to change select_field in /etc/postfix/mysql-virtual_mailboxes.cf and MYSQL_MAILDIR_FIELD in /etc/courier/authmysqlrc.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th May 2006, 10:47
Wido Wido is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko
I think you'll have to change select_field in /etc/postfix/mysql-virtual_mailboxes.cf and MYSQL_MAILDIR_FIELD in /etc/courier/authmysqlrc.
Thanks! That worked

/etc/postfix/mysql-virtual_mailboxes.cf
Code:
select_field = CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/Maildir/')
/etc/courier/authmysqlrc
Code:
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/Maildir/')
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
IMAP question - Moving servers and mail. Brenton Installation/Configuration 11 14th May 2010 14:38
After Debian postfix / currior install, can not get external mail skdb Installation/Configuration 7 24th April 2006 10:06
problems sending receiving mail on Postfix mavgh1 HOWTO-Related Questions 17 10th March 2006 12:43
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20


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


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