[Dovecot] sieve
Hi, I'd like to keep all emails coming from alom-alert@anydomain and not forward those but rest of the emails will be kept and forwarded as well. I put following in the .dovecot.sieve if header :contains "Sender" "alom-alert@" { keep; if not header :contains "Sender" "alom-alert@" { redirect "my@emailid on server"; redirect "x...@gmail.com"; redirect "a...@tbc.edu"; stop; } } Is this correct? Thanks, UG
Re: [Dovecot] sieve
On Tue, May 22, 2012 at 3:37 PM, Daniel Parthey wrote: > Upendra Gandhi wrote: >> I'd like to keep all emails coming from alom-alert@anydomain and not >> forward those but rest of the emails will be kept and forwarded as >> well. >> >> I put following in the .dovecot.sieve >> >> if header :contains "Sender" "alom-alert@" { >> keep; >> if not header :contains "Sender" "alom-alert@" { >> redirect "my@emailid on server"; >> redirect "x...@gmail.com"; >> redirect "a...@tbc.edu"; >> stop; >> } >> } > > You can find a list of available extensions in Dovecot wiki > http://wiki2.dovecot.org/Pigeonhole/Sieve > and include such extensions like this: > require ["fileinto","regex","vacation"]; > > The nesting of the curly brackets seems to be wrong: > The inner branch which should trigger the redirects > will never be reached, since it resides inside of the > bracket of condition 'if header :contains "Sender" "alom-alert@"'. > > I'm thinking of something like this (without having checked syntax): > > if header :contains "Sender" "alom-alert@" { > keep; > } > redirect "my@emailid on server"; > redirect "x...@gmail.com"; > redirect "a...@tbc.edu"; > stop; Thanks Daniel. It worked flawlessly. I didn't need to add require statement, script worked even without it.
[Dovecot] version difference understanding
Hello, I am in process of setting up an IMAP server (with postfix SMTP), I installed RHEL 5.5 on my server and found that version of dovecot is 1.x.x while when I checked online RHEL 6 is version is 2.x.x. Can someone please tell me if these two versions are still in development or 1.x.x is very old and must be replaced by 2.x.x version? Also are there any special features in 2.x.x or 1.x.x that makes it better than other? I see similar things for postfix package but I understand this is not the place to ask postfix Qns, Appreciate your help! ~A
Re: [Dovecot] version difference understanding
Stan, hi! On Sat, Mar 5, 2011 at 4:17 AM, Stan Hoeppner wrote: > upen put forth on 3/4/2011 9:52 PM: >> Hello, >> >> I am in process of setting up an IMAP server (with postfix SMTP), I >> installed RHEL 5.5 on my server and found that version of dovecot is >> 1.x.x while when I checked online RHEL 6 is version is 2.x.x. >> >> Can someone please tell me if these two versions are still in >> development or 1.x.x is very old and must be replaced by 2.x.x >> version? >> >> Also are there any special features in 2.x.x or 1.x.x that makes it >> better than other? > > You are installing from scratch, thus you should use 2.x. Yes there are > new features, and performance is generally better. You just might want > to visit: http://wiki2.dovecot.org/ Early 2.0.x versions had lots of > bugs so you'll want to get as close to 2.0.10 as possible. > >> I see similar things for postfix package but I understand this is not >> the place to ask postfix Qns, > > For RHEL 5.5 use Simon Mudd's Postfix binary RPM: > http://ftp.wl0.org/official/2.7/RPMS-rhel5-x86_64/postfix-2.7.2-1.rhel5.x86_64.rpm > > If you have RHEL6 available to you, use it, and save yourself a bunch of > grief trying to get current packages. It ships with Postfix 2.6.6 which > is modern enough to fit most, if not all, of your needs. > > -- > Stan > Thanks so much for such an important and useful piece of information! Really appreciate your help! I think we will be able to use RHEL 6 on our server as nothing has been configured on RHEL 5.5 yet! Thanks for that RPM link for postfix as well, will be handy if something stops us from reinstalling rhel 6 on the new server. God bless! ~A -- upen, emerge -uD life (Upgrade Life with dependencies)
[Dovecot] maildir location
Hello, I am trying to use dovecot (v. 2.0.11) and postfix (v. 2.7.3) together. The email server is an ldap client and user's home directories on NFS server are mounted using autofs. As I understand, Maildir performance is better than mbox type, so I'd like to use Maildir instead of mbox. However, when I checked conf.d/10-mail.conf file, there is mail_location = maildir:~/.maildir already configured in it which means user's email will reside in their home directories on the NFS server rather than being on Email server's local storage where plenty of space is available. I anticipate due to NFS there will again be a performance hit . Question : Can I change mail_location for maildir to be somewhere other than ~/.maildir. ( like /var/mail/%u/Maildir, where /var/mail is local storage). There are about 200 ldap users who will be using this email server through squirrel-mail or access them through email clients. By the way, I am confused about one setting in postfix : home_mailbox = .maildir/ in main.cf . Does this really play any role? If so, which parameter should be changed and to what and with what permissions to the new directory. Hope I was able to explain, if not please let me know for more details.. Thanks, U
Re: [Dovecot] maildir location
> If Postfix delivers the mails, rather than Dovecot LDA, then yes you'll > need to configure Postfix also to deliver correctly. Maybe it would be > easier to just switch to Dovecot LDA: http://wiki2.dovecot.org/LDA Thanks Timo for quick confirmation and the link for setting up dovecot as LDA. I made below changes to postfix's main.cf mailbox_command = /usr/libexec/dovecot/dovecot-lda ( verified that's correct location for file) postfix reload The changed mail_location as mail_location = maildir:/localdir/mail/%u dovecot restart /var/log/messages shows, below error, dovecot: pop3(username): Error: user username: Initialization failed: Initializing mail storage from mail_location setting failed: stat(/localdir/mail/username) failed: Permission denied (euid=1002(username) egid=10(wheel) missing +x perm: /localdir/mail, euid is not dir owner) Any idea what is going wrong?
Re: [Dovecot] maildir location
On Thu, Mar 17, 2011 at 12:01 PM, upen wrote: >> If Postfix delivers the mails, rather than Dovecot LDA, then yes you'll >> need to configure Postfix also to deliver correctly. Maybe it would be >> easier to just switch to Dovecot LDA: http://wiki2.dovecot.org/LDA > > Thanks Timo for quick confirmation and the link for setting up dovecot as LDA. > > I made below changes to postfix's main.cf > > mailbox_command = /usr/libexec/dovecot/dovecot-lda ( verified that's > correct location for file) > > postfix reload > > The changed mail_location as mail_location = maildir:/localdir/mail/%u > > dovecot restart > > /var/log/messages shows, below error, > > dovecot: pop3(username): Error: user username: Initialization failed: > Initializing mail storage from mail_location setting failed: > stat(/localdir/mail/username) failed: Permission denied > (euid=1002(username) egid=10(wheel) missing +x perm: /localdir/mail, > euid is not dir owner) > > Any idea what is going wrong? Changed permissions on root directories, don't know if this is secure or not but it worked. I see cur, tmp, new and other files created under local storage now. Set permissions as below, #ls -ald /localdir drwxrwxrwx 31 root root 12288 Mar 17 10:48 /localdir/ # ls -ald /localdir/mail drwxrwxrwx 3 dovecot dovecot 4096 Mar 17 10:49 /localdir/mail mkdir /localdir/mail/username chown username:group /localdir/mail/username chmod 700 /localdir/mail/username Do you think it is okay to keep these perms ?
Re: [Dovecot] maildir location
> > If you expect to have any folders with lots of messages, I would use > mdbox rather than Maildir. NFS tends to have performance problems with > lots of small files, and Maildir uses one file per message, where mdbox > has a sort of compromise between lots of files and the huge files that > mbox creates. Thanks Patrick. OK. back to zero again. Now this is new piece of information for me which tell me that mdbox is better than Maildir format for emails on NFS. Question: Which is best format to go with in general, maildir or mdbox? . We really don't want users to use their NFS HOME directories for storing and accessing their emails. Even if they create any imap folder that should also get created on email server's local storage either in Maildir format or the new format mdbox which I've just heard about.
Re: [Dovecot] maildir location
On Thu, Mar 17, 2011 at 4:59 PM, Jim Knuth wrote: > am 17.03.11 22:33 schrieb upen : > >>> >>> If you expect to have any folders with lots of messages, I would use >>> mdbox rather than Maildir. NFS tends to have performance problems with >>> lots of small files, and Maildir uses one file per message, where mdbox >>> has a sort of compromise between lots of files and the huge files that >>> mbox creates. >> >> Thanks Patrick. >> >> OK. back to zero again. Now this is new piece of information for me >> which tell me that mdbox is better than Maildir format for emails on >> NFS. > > really? Only for NFS? No I don't know I want to know which is best performance mail format for local storage of emails now that I read that mdbox performs better in NFS environment. Thanks.
[Dovecot] quota warning email to user
Hi, I am trying to use Quota in dovecot-2.0.11. I find as a sender(same user a receiver) I receive an email that receiver's Quota is exceeded , and receiver's mailbox is full . This is good, however the receiver whose MB is full isn't getting any quota-warning. Configuration is as below, dovecot -n # 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35-gentoo-r8 x86_64 Gentoo Base System release 1.12.14 ext4 auth_mechanisms = plain login listen = * mail_location = maildir:/nfs1/mail/%u mail_plugins = " quota" passdb { args = * driver = pam } plugin/quota = maildir:User quota plugin/quota_rule = *:storage=5M plugin/quota_rule2 = Trash:storage=+1M plugin/quota_rule3 = Junk:storage=+1M plugin/quota_warning = storage=95%% quota-warning 95 %u plugin/quota_warning2 = storage=80%% quota-warning 80 %u service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = dovecot } ssl_cert = : save failed to INBOX: Quota exceeded (mailbox for user is full) Mar 24 15:41:28 email_serverdovecot: lda(local_username): msgid=<20110324154128.0df8855a@local_username_ots.domainname>: rejected: Quota exceeded (mailbox for user is full) Mar 24 15:41:28 email_serverpostfix/pickup[25550]: D25C121BB4: uid=1002 from=<> ls -al /var/run/dovecot/ total 20 drwxr-xr-x 4 rootroot 4096 Mar 24 15:35 . drwxr-xr-x 33 rootroot 4096 Mar 24 14:54 .. srw--- 1 rootroot0 Mar 24 15:35 anvil srw--- 1 rootroot0 Mar 24 15:35 anvil-auth-penalty srw--- 1 rootroot0 Mar 24 15:35 auth-client srw--- 1 dovecot root0 Mar 24 15:35 auth-login srw--- 1 rootroot0 Mar 24 15:35 auth-master srw--- 1 rootroot0 Mar 24 15:35 auth-userdb srw--- 1 dovecot root0 Mar 24 15:35 auth-worker srw--- 1 rootroot0 Mar 24 15:35 config srw--- 1 rootroot0 Mar 24 15:35 dict srw--- 1 rootroot0 Mar 24 15:35 director-admin srw--- 1 rootroot0 Mar 24 15:35 director-userdb srw-rw-rw- 1 rootroot0 Mar 24 15:35 dns-client srw--- 1 rootroot0 Mar 24 15:35 doveadm-server lrwxrwxrwx 1 rootroot 25 Mar 24 15:35 dovecot.conf -> /etc/dovecot/dovecot.conf drwxr-xr-x 2 rootroot 4096 Mar 16 13:24 empty srw-rw-rw- 1 rootroot0 Mar 24 15:35 lmtp drwxr-x--- 2 rootdovenull 4096 Mar 24 15:35 login -rw--- 1 rootroot6 Mar 24 15:35 master.pid srw--- 1 rootroot0 Mar 24 15:35 quota-warning ls -al /usr/local/bin/quota-warning.sh -rwxrwxrwx 1 root root 225 Mar 24 13:16 /usr/local/bin/quota-warning.sh cat /usr/local/bin/quota-warning.sh #!/bin/sh PERCENT=$1 USER=$2 cat << EOF | /usr/libexec/dovecot/dovecot-lda -d $USER -o "plugin/quota=maildir:User quota:noenforcing" From: postmas...@domain.com Subject: quota warning Your mailbox is now $PERCENT% full. EOF ### Any help is appreciated. Thanks.
Re: [Dovecot] quota warning email to user
> Hi, > > I am trying to use Quota in dovecot-2.0.11. I find as a sender(same > user a receiver) I receive an email that receiver's Quota is exceeded > , and receiver's mailbox is full . This is good, however the receiver > whose MB is full isn't getting any quota-warning. Configuration is as > below, > > > dovecot -n > # 2.0.11: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.35-gentoo-r8 x86_64 Gentoo Base System release 1.12.14 ext4 > auth_mechanisms = plain login > listen = * > mail_location = maildir:/nfs1/mail/%u > mail_plugins = " quota" > passdb { > args = * > driver = pam > } > plugin/quota = maildir:User quota > plugin/quota_rule = *:storage=5M > plugin/quota_rule2 = Trash:storage=+1M > plugin/quota_rule3 = Junk:storage=+1M > plugin/quota_warning = storage=95%% quota-warning 95 %u > plugin/quota_warning2 = storage=80%% quota-warning 80 %u > service quota-warning { > executable = script /usr/local/bin/quota-warning.sh > user = dovecot > } > ssl_cert = ssl_cipher_list = ALL:!LOW:!SSLv2 > ssl_key = userdb { > driver = passwd > } > protocol imap { > mail_plugins = " quota imap_quota" > > > Mar 24 15:41:28 email_serverdovecot: imap(local_username): Error: > quota: net_connect_unix(/var/run/dovecot/quota-warning) failed: > Permission denied (euid=1002(local_username) egid=10(wheel) missing +r > perm: /var/run/dovecot/quota-warning, euid is not dir owner) > Mar 24 15:41:28 email_serverdovecot: lda(local_username): > msgid=<20110324154128.0df8855a@local_username_ots.domainname>: save > failed to INBOX: Quota exceeded (mailbox for user is full) > Mar 24 15:41:28 email_serverdovecot: lda(local_username): > msgid=<20110324154128.0df8855a@local_username_ots.domainname>: > rejected: Quota exceeded (mailbox for user is full) > Mar 24 15:41:28 email_serverpostfix/pickup[25550]: D25C121BB4: uid=1002 > from=<> > > > ls -al /var/run/dovecot/ > total 20 > drwxr-xr-x 4 root root 4096 Mar 24 15:35 . > drwxr-xr-x 33 root root 4096 Mar 24 14:54 .. > srw--- 1 root root 0 Mar 24 15:35 anvil > srw--- 1 root root 0 Mar 24 15:35 anvil-auth-penalty > srw--- 1 root root 0 Mar 24 15:35 auth-client > srw--- 1 dovecot root 0 Mar 24 15:35 auth-login > srw--- 1 root root 0 Mar 24 15:35 auth-master > srw--- 1 root root 0 Mar 24 15:35 auth-userdb > srw--- 1 dovecot root 0 Mar 24 15:35 auth-worker > srw--- 1 root root 0 Mar 24 15:35 config > srw--- 1 root root 0 Mar 24 15:35 dict > srw--- 1 root root 0 Mar 24 15:35 director-admin > srw--- 1 root root 0 Mar 24 15:35 director-userdb > srw-rw-rw- 1 root root 0 Mar 24 15:35 dns-client > srw--- 1 root root 0 Mar 24 15:35 doveadm-server > lrwxrwxrwx 1 root root 25 Mar 24 15:35 dovecot.conf -> > /etc/dovecot/dovecot.conf > drwxr-xr-x 2 root root 4096 Mar 16 13:24 empty > srw-rw-rw- 1 root root 0 Mar 24 15:35 lmtp > drwxr-x--- 2 root dovenull 4096 Mar 24 15:35 login > -rw--- 1 root root 6 Mar 24 15:35 master.pid > srw--- 1 root root 0 Mar 24 15:35 quota-warning > > ls -al /usr/local/bin/quota-warning.sh > -rwxrwxrwx 1 root root 225 Mar 24 13:16 /usr/local/bin/quota-warning.sh > > cat /usr/local/bin/quota-warning.sh > #!/bin/sh > PERCENT=$1 > USER=$2 > cat << EOF | /usr/libexec/dovecot/dovecot-lda -d $USER -o > "plugin/quota=maildir:User quota:noenforcing" > From: postmas...@domain.com > Subject: quota warning > > Your mailbox is now $PERCENT% full. > EOF > > > ### > > Any help is appreciated. > > Thanks. > Owner of an over quota account just got an email when some emails were deleted from it (no date on that email though, don't understand why) Don't know what resolved the issue, I did following changes recently, chmod 700 /usr/local/bin/quota-warning.sh Edit , 90-quota.conf as below, service quota-warning { executable = script /usr/local/bin/quota-warning.sh # use some unprivileged user for executing the quota warnings user = root unix_listener quota-warning { mode = 0666 user = root group = root } } /etc/init.d/dovecot restart ls -al /var/run/dovecot/quota-warning srw-rw-rw- 1 root root 0 Mar 24 20:23 quota-warning Thanks,
[Dovecot] alpine + Maildir
Hello, I am trying to configure pine.conf for all users and running into an issue. In this setup, Mailbox format is Maildir and Maildir location is /Mail/Username/{new,cur,..etc} First thing required in alpine was patch for maildir and this has already been done. After that I have tried setting up folder-collection Mail #md ../../Mail/username and also tried using #mc (not sure which one is correct #md or #mc). Nothing worked. If maildir support in alpine does not work like it does for mbox then I'll have to configure IMAP setings in pine.conf for alpine users. I must say that alpine is installed on mail server :). Although IMAP setting may work fine, it will prompt user for password initially when checking email and while sending first email. I'd like to avoid this by using #md or #mc. If anyone has any useful inputs please let me know. Thank you! UG.
Re: [Dovecot] alpine + Maildir
> on my alpine in pine.conf we have settings: > inbox-path=#md//var/spool/mail/$USER > > and alpine is: > oceanic:~# rpm -qa alpine > alpine-2.02-1.fc14.x86_64 > > and it works. Thanks for helping out. Just want to confirm. Is /var/spool/mail/$USER maildir format or mbox I have read that mailbox location generally used for mbox format. If it is maildir format, then one more question, are you able to see all folders in the maildir or just INBOX using that setting? Thanks, UG 2011/5/6 Bartłomiej Solarz-Niesłuchowski : > W dniu 2011-05-05 23:43, upen pisze: >> >> Hello, >> >> I am trying to configure pine.conf for all users and running into an >> issue. In this setup, Mailbox format is Maildir and Maildir location >> is /Mail/Username/{new,cur,..etc} >> >> First thing required in alpine was patch for maildir and this has >> already been done. After that I have tried setting up >> folder-collection Mail #md ../../Mail/username and also tried using >> #mc (not sure which one is correct #md or #mc). Nothing worked. >> >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. >> >> If anyone has any useful inputs please let me know. > > on my alpine in pine.conf we have settings: > inbox-path=#md//var/spool/mail/$USER > > and alpine is: > oceanic:~# rpm -qa alpine > alpine-2.02-1.fc14.x86_64 > > and it works. >> >> Thank you! >> UG. > > > -- > Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ > e-mail: bartlomiej.solarz-niesluchow...@wit.edu.pl > tel. 223486547, fax 223486501 > JID: sol...@jabber.wit.edu.pl > 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 > Motto - Jak sobie pościelisz tak sie wyśpisz > > > -- upen, emerge -uD life (Upgrade Life with dependencies)
Re: [Dovecot] alpine + Maildir
> You can configure Alpine to execute Dovecot's imap binary and talk to it. > That makes it work nicely with Dovecot and won't prompt >the user for a > password. If you're using v1.x you can run "dovecot --exec-mail imap" and > with v2.0 you just need to run "imap". I don't >know specifically what this > setting in Alpine is called. I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64. Now this is new to me that you can call a dovecot-imap binary from alpine but how and where does this setting go is a question for me now. I will try going through pine.conf. Thanks for your advice. ~UG On Fri, May 6, 2011 at 2:11 AM, Timo Sirainen wrote: > On 5.5.2011, at 23.43, upen wrote: > >> If maildir support in alpine does not work like it does for mbox then >> I'll have to configure IMAP setings in pine.conf for alpine users. I >> must say that alpine is installed on mail server :). Although IMAP >> setting may work fine, it will prompt user for password initially when >> checking email and while sending first email. I'd like to avoid this >> by using #md or #mc. > > You can configure Alpine to execute Dovecot's imap binary and talk to it. > That makes it work nicely with Dovecot and won't prompt the user for a > password. If you're using v1.x you can run "dovecot --exec-mail imap" and > with v2.0 you just need to run "imap". I don't know specifically what this > setting in Alpine is called. > > -- upen, emerge -uD life (Upgrade Life with dependencies)
Re: [Dovecot] alpine + Maildir
>> >> Is /var/spool/mail/$USER maildir format or mbox I have read that >> mailbox location generally used for mbox format. > > maildir >> >> If it is maildir format, then one more question, are you able to see >> all folders in the maildir or just INBOX using that setting? > > folder-collections=Mail #md/Maildir/.mail.[] Thank you very much for the quick confirmation. If I use #md in my configuration then alpine would show below error message [Can't open folder #md../../Maildir/mail/username/: no such folder] So I changed settings as below,(Note: maildir location in dovecot is /Maildir/mail/username and mail gets dropped there so there is no ~Maildir in users home directory) inbox-path=../../Maildir/mail/username/ maildir-location=../Maildir/mail/username folder-collections=Mail /Maildir/mail/username/.[] Now pine does not complain and I can read inbox and see folders, however one issue : [/] as a folder after every other actual folder , as below INBOX ABCD[/] Drafts[/] Queue[/] Saved[/] Sent[/] Trash[/] hello[/] I wonder if there is a way to configure such that [/] folder will not appear as this way user will have to hit tab twice to see next folder. If I hit enter key on [/] then there is nothing inside but a note saying it is a maildirfolder. If I select ABCD then it works as expected. Any idea? Thanks, UG
Re: [Dovecot] alpine + Maildir
On Fri, May 6, 2011 at 10:04 AM, Charles Marcus wrote: > On 2011-05-06 9:35 AM, upen wrote: >> I am running dovecot 2.0-0.10.beta6.20100630.el6.x86_64 > > A very early beta of 2.0... first thing on our list of action items is > (or should be) to update to the latest stable RELEASE version. > Well, this is what RHEL 6 's stable repo currently offers and I want to stick with repo assuming this version is stable on RHEL 6 atleast. yum info dovecot Loaded plugins: downloadonly, rhnplugin Installed Packages Name : dovecot Arch : x86_64 Epoch : 1 Version: 2.0 Release: 0.10.beta6.20100630.el6 Any idea on pine ? I guess there not many alpine users on this list..:)
Re: [Dovecot] alpine + Maildir
On Fri, May 6, 2011 at 12:42 PM, Charles Marcus wrote: > On 2011-05-06 11:10 AM, upen wrote: >> Well, this is what RHEL 6 's stable repo currently offers > > Well, if you're not willing to upgrade to at least a reasonably stable > RELEASE version, don't be surprised if you get little to no help. > > I'll never understand this attitude... All I understand is that the issue I am having is not due to the version of dovecotthat is installed. If I know that this is not working due to beta version then I am willing to upgrade. Thanks for your opinion.
Re: [Dovecot] alpine + Maildir
On Mon, May 9, 2011 at 10:01 AM, upen wrote: >> >> This is what I am doing right now. >> >> http://www.asheesh.org/note/sysop/passwordless-alpine.html says a little >> more. I strongly recommend this. >> >> In fact, I think I should someday talk to the re-alpine team and figure out >> how to make this easier to configure. It's already reasonably easy, but it >> can require some fiddling. > Hi Asheesh, Excellent, that is a very very useful information. I am going to try and use this method if #md doesn't work at all. Thanks very much for helping me out. Thanks, UG
Re: [Dovecot] alpine + Maildir
On Mon, May 9, 2011 at 10:16 AM, upen wrote: >>> >> What you are probably looking for is in the alpine configuration (setup -> >> configure) the 'Hide Empty Directories' option which you have to turn on. >> >> It corresponds to the 'quell-empty-directory' in pinerc >> >> Hope it helps. >> Hi Wolfgang, You are right, that option should have taken care of [/] directory after each folder , however for some reason it doesn't and I don't understand why. One update however with #md implementation is that I just tried one more thing in my alpine configuration and [/] has vanished after that so probably I don't have to configure for password-less alpine on the email server. Here is the specific configuration from my /etc/pine.conf or .pinerc 1. maildir-location=../../Mail/${LOGNAME} #folder-collections=Mail {localhost/novalidate-cert/ssl/user=${LOGNAME}}[] < Commented. 2. folder-collections=Mail #md/../../Mail/${LOGNAME}/.[] With this configuration, all folders appear fine. Folders : INBOX sent-mail saved-messages ABC PINE_FOLDERQueue Sent Trash sent-mail-apr-2011 In addition, I am going to change sent messages and saved messages setting as below so that when users are migrated from ~/mail to /Mail/user/ (maildir) format then their newly sent emails and saved messages also continue to go into /Mail/user/.sent-mail and /Mail/user/.saved-messages folder respectively. default-fcc=sent-mail default-saved-msg-folder=saved-messages Thank you everyone for their inputs. Appreciate it. UG