On 2014-08-20 00:43, James Knott wrote:
With my previous set up, fetchmail brought the mail to the user and dovecot managed to pick it up there. I didn't have to do anything else with sendmail, procmail etc. When dovecot was working in the wrong directory, that was still happening. Now that I've got it out of the user's directory, dovecot no longer does that.
Don't you just *LOVE* the way people "improve" things?
You have to be aware of how things really work, what are the defaults, what do you change, and when the defaults change, adjust. You run fetchmail with this configuration, per your recent post: poll pop proto pop3 via pop.broadband.rogers.com user "*********" pass "#########" ssl nokeep I understand you run it as some user; you have not said which, so I'll assume it is "james". So fetchmail will just handle over the email it gets to "postfix", telling it that it is intended for user "james". Now, postfix may be configured one way or another, but you can check: Telcontar:~ # postconf | grep mailbox_command mailbox_command = /usr/bin/procmail mailbox_command_maps = Telcontar:~ # which means that, in my case, it is handled over to procmail. The default is empty. Normally, that means that the new email would end on: /var/spool/mail/james So that's the place that dovecot and others call "INBOX", and it is in mbox format (unix default). Now, your dovecot has this configuration, as you posted recently: location = maildir:~/Mail/INBOX:LAYOUT=fs which I understand means that it expects the INBOX to be the Maildir directory "/home/james/mail/INBOX" - but that is not where the system is placing email. I think you need something like: mail_location = INBOX=/var/mail/%u which only defines the inbox, not the archive. That would be something like this (my config): mail_location = mbox:~/Mail:INBOX=/var/mail/%u but of course, instead of mbox, you have to say maildir for the archive and mbox for INBOX. (my config means that INBOX is the mbox file "/var/mail/james", and the archive is the mbox directory "/home/james/Mail/") In order to verify, you have to look at the logs. At the start of the fetchmail config, add this line: set syslog on "/etc/dovecot/local.conf" (if it does not exist, create it) add this line: mail_debug = yes and restart dovecot. Now fetch some mail (please use "fetchmail -v"), and have a look at the file "/var/log/mail" and try to trace what is happening. Good hunting! :-) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)