I've spent most of the morning looking through the archives. Great information, however, I'm still unable to get my issues figured out. I believe I am missing something quite simple. From what I have read, I want to use maildir, mainly because it will allow the use of subfolders for my clients. My clients are running Mail.app (mostly) on 10.3 clients. I'm planning on using imap and my clients must be able to create sub folders to organize their email. I'm running into a couple problems. First, when I send an email to myself I see in the procmail log that it writes that message to: Folder: /Network/Servers/milhouse/Users/jpbuse/Maildir/new/msg.ZAgKB However, when I send a message to another user on the same server it writes the message to: Folder: /var/mail/someuser I don't understand why the home directory changed. I don't believe I have anything custom in my account vs anyone else. My second issue/question.. how do I get Mail.app and SquirrelMail to see the email now that is not no longer in ~/mail ? Home directories are in this format on the server: /home/users/j/jp/jpbuse Users are authenticated via LDAP and their home directory actually is: /Network/Servers/milhouse/Users/jpbuse I have a symlink that takes care of this and from what I can tell, works just fine. Changed the following line in /etc/dovecot.conf: default_mail_env = maildir:%h /etc/procmailrc looks like: # .procmailrc PATH=/usr/bin:/bin:/usr/local/bin MAILDIR=$HOME/Maildir DEFAULT=$MAILDIR/new PMDIR=/tmp/procmail LOGFILE=/var/log/procmail # Use SpamAssassin INCLUDERC=/etc/mail/spamassassin/spamassassin-spamc.rc dovecot-0.99 procmail-3.22 sendmail-8.13
>However, when I send a message to another user on the same server it >writes the message to: > Folder: /var/mail/someuserYou need to change procmail defaults (these are from my notes of a fresh fedora core 1 install): --> Configure procmail # Change the location where sendmail/procmail delivers mail. We want to change this to the # home folder for users and we want to tell procmail to deliver mail in the maildir format # instead of the mbox format for better performance. /*** /etc/login.defs ***/ #QMAIL_DIR Maildir #MAIL_DIR /var/spool/mail MAIL_FILE Maildir/ /*** END EDIT FILE ***/ /*** /etc/procmailrc (new file) ***/ DEFAULT=$HOME/Maildir/ LOGFILE=/dev/null /*** END EDIT FILE ***/ /*** /etc/profile ***/ export MAIL=~/Maildir/ /*** END EDIT FILE ***/ Also, make sure that the Maildir directory and new, cur, tmp directories exist under all of the users home dirs. Jeff Graves, MCSA Customer Support Engineer Image Source, Inc. 10 Mill Street Bellingham, MA 02019 508.966.5200 - Phone 508.966.5170 - Fax jeff at image-src.com - Email www.image-src.com
On 31.5.2005, at 22:51, Jason P Buscema wrote:> I'm running into a couple problems. First, when I send an email to > myself I see in the procmail log that it writes that message to: > Folder: /Network/Servers/milhouse/Users/jpbuse/Maildir/new/msg.ZAgKBmsg.* filenames are in MH format, not maildir. Don't append the "new/" directory in your procmailrc. With MH-style filenames you're going to get errors from Dovecot and it could also confuse clients.> My second issue/question.. how do I get Mail.app and SquirrelMail to > see the email now that is not no longer in ~/mail ?They access it via IMAP, so they only see what you've configured Dovecot to let them see (default_mail_env). So it should work automatically. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050606/f9f9a91d/attachment-0001.bin>