Hi Mark, Sorry that you are having this problem! Typically, the GID/UID is set to the exim4u user in config/variables.php. Here is a snip from config/variables.php where the GID/UID values are set:
/* The UID's and GID's control the default UID and GID for new domains and if postmasters can define their own. THE UID AND GID MUST BE NUMERIC! $uid = "511"; $gid = "511"; If you use exim4u as the user and group for the default UID and GID then use: $uid = shell_exec('id -u exim4u'); $gid = shell_exec('id -g exim4u'); */ $uid = shell_exec('id -u exim4u'); $gid = shell_exec('id -g exim4u');
With this code posting the uid/gid values to the mysql database, Exim will switch to the appropriate UID/GID when it posts mail. Here are a couple of other suggestions to look at: 1) Examine the exim4u mysql database and verify the values of the "maildir", "uid" and "gid" fields in the domains table. Also, the "pop" field in the users table should specify each user's mail directory. If you are not a mysql whiz then you can easily view these tables by installing and using phpMyAdmin which provides an easy to use web interface for mysql. 2) You can manually set the mail directories for each user using the "Pipe To" fields in the Exim4U web interface. So, you may also try that to force delivery to a specific directory with the "Pipe To" fields. I hope that these tips help. Sorry that I did not reply to your earlier email but I had been away for the past week. Good luck, Gordon On 11/07/2013 12:37 AM, Mark Shearar wrote:
Any ideas anyone?!? I have googled and read the mailing list archives but unable to find anything relevant. Even some pointers as to why exim4u would be creating the directory under / instead of under /home/exim4u/mail/ (which is specified as mailroot)?
-----Original Message----- From: users-bounces(a)exim4u.org [mailto:users-bounces(a)exim4u.org] On Behalf Of Mark Shearar Sent: 31 October 2013 13:46 To: users(a)exim4u.org Subject: [Exim4U] Permission denied: cannot create /domain.tld/postmaster/Maildir
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?
_______________________________________________ users mailing list users(a)exim4u.org https://exim4u.org/mailman/listinfo/users
_______________________________________________ users mailing list users(a)exim4u.org https://exim4u.org/mailman/listinfo/users