On Sat, Oct 21, 2023 at 02:42:57PM +0530, Sagar Acharya wrote:
> Logs show,
> 
> authentication passed
> Failed or refused to load /var/mail/foo
> 
> But there is no foo in /var/mail
> I was expecting it to load mails from /home/foo/Maildir

Looking at the code (popa3d-1.0.3 and popa3d-0.5.9-maildir-2.diff), I
see that the "Failed or refused to load" message with the mailbox path
can also appear when the actual load attempt was of a Maildir and not
mailbox.  However, I also see that with that patch's default settings
it'd be trying to load the Maildir from under /var/mail.

I think you need to change two settings in params.h:

1. Undefine MAIL_SPOOL_PATH, such as by replacing this line:

#define MAIL_SPOOL_PATH                 "/var/mail"

with:

#undef MAIL_SPOOL_PATH

2. Change the mailbox file/directory name by editing this line:

#define HOME_MAILBOX_NAME               "Mailbox"

to be:

#define HOME_MAILBOX_NAME               "Maildir"

Does this help?

Alexander

Reply via email to