I'm trying to get Mailhandler to pickup mail from a local folder but I'm having quite a bit of difficulty.

I have drupal installed under a user's account (usr1) and I've added the web server to the same group as usr1. Mail that is sent to this account is stored in /home/usr/mail/cur.

I'd like Mailhandler to pull mail from the local folder /home/usr/mail/cur. However I keep getting "Mailhandler could not access local folder" when I try to retrieve mail.

Mailhandler picks up mail fine if I specify the domain, user name, password etc. But it's important that I get mailhandler to read from local folders, as mail sent to this account (usr1) will get filtered to a specific sub folder and not go straight to the mailbox inbox.

Any assistance is greatly appreciated.

Comments

cor3huis’s picture

Status: Active » Closed (fixed)

This might solve your issue:

http://drupal.org/node/638246
https://drupal.org/node/110174

Put the mbox into the root of www and then specify it without any slashes etc:

/var/www/test.mbox

Folder in mailhandler set up:

test.mbox

If not

see http://drupal.org/node/8732

it will sadly get rather complex for you... your issue is a server config where IMAP is compiled without being allowed local locations starting with a slash (/) or have a dot (.) in the path