On 31 October 2013 14:46, Mark Shearar <mark(a)shearar.com> wrote:
Hi Guys,
Tearing my hair out here trying to solve this one. I know it's supposed to be a permissions issue but bear with me first please.
variable.php: $mailroot = "/home/exim4u/mail/";
Permissions are set to exim (UID / GID 93) for the above directory: drwxr-xr-x 3 exim exim 4096 Oct 28 13:32 . drwxr-xr-x 6 root root 4096 Oct 28 13:32 .. drwxr-xr-x 3 exim exim 4096 Oct 31 12:25 mail
I create a domain eg domain.tld. System UID and GID are set to 93. Domain mail directory appears as /home/exim4u/mail/ which I believe is correct as it should then create /home/exim4u/mail/domain.tld for the mailboxes.
However, it doesn't create the folder and this is what I see in exim/main.log: 2013-10-31 13:35:55 1VbqXb-0004fN-Is == /domain.tld/postmaster/Maildir <postmaster(a)domain.tld> R=virtual_domains T=virtual_delivery defer (13): Permission denied: cannot create /domain.tld/postmaster/Maildir I've been struggling to figure out why it's not creating /home/exim4u/mail/domain.tld with no success, even manually creating the domain.tld directory under /home/exim4u/mail. I then decided to create /domain.tld off the root since that appears on the surface to be what it's actually trying to do! Guess what, the mail got delivered and the postmaster directory created as /domain.tld/postmaster/Maildir.
Why is it trying to create the directory off the root and not under the correct mailroot directory?
The reason looks rather obvious to me. When you created this domain using the web UI, did you by any chance change the parameter for "Domain Mail Directory"? It should have remained as "/home/exim4u/mail/" and Exim would append domain.tld when delivering the mail. I suspect you did change "Domain Mail Directory" to /, hence the reason Exim is trying to deliver to /domain.tld Please login as siteadmin and ensure that the value of Domain Mail Directory points to /home/exim4u/mail/. If it does, then login to mysql shell and show us the output of: select domain, maildir from domains where domain = 'domain.tld'; -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."