Permission denied

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Permission denied

Terry
Hi I am missing some real obvious here but I just can't see what when I
create a domain it does not pick up the mailroot as it should.
Even if I amend the maildir  in the db then send a test to
[hidden email] it still tries to deliver to
/test2.com/postmaster/Maildir


 ls -al /usr/home/exim4u/mail/
total 8
drw-r--r--  2 exim4u  exim4u  512 Feb  6 00:18 .
drw-r--r--  3 exim4u  exim4u  512 Feb  6 00:18

id exim4u
uid=1002(exim4u) gid=1002(exim4u) groups=1002(exim4u)


mysql_setup/mysql.sql
        uid              smallint(5)   unsigned  NOT NULL  default '1002',
        gid              smallint(5)   unsigned  NOT NULL  default '1002',


variables.php
  $uid = shell_exec('id -u exim4u');
  $gid = shell_exec('id -g exim4u');
$mailroot = "/home/exim4u/mail/";


mysql> SELECT `maildir`, `uid`, `gid` FROM `domains` WHERE `domain` LIKE
'test2.com' ;
+------------+------+------+
| maildir    | uid  | gid  |
+------------+------+------+
| /test2.com | 1002 | 1002 |
+------------+------+------+
1 row in set (0.00 sec)


2014-02-06 17:24:35 1WBSgl-000MjW-3V == /test2.com/postmaster/Maildir
<[hidden email]> R=virtual_domains T=virtual_delivery defer (13):
Permission denied: cannot create /test2.com/postmaster/Maildir

Any pointers welcome
Thanks

--
------------------------------------
Terry


_______________________________________________
users mailing list
[hidden email]
https://exim4u.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Permission denied

Rimas Kudelis
Hi,

2014.02.06 12:15, Terry (1stKMH) rašė:

> Hi I am missing some real obvious here but I just can't see what when I
> create a domain it does not pick up the mailroot as it should.
> Even if I amend the maildir  in the db then send a test to
> [hidden email] it still tries to deliver to
> /test2.com/postmaster/Maildir
>
>
>   ls -al /usr/home/exim4u/mail/
> total 8
> drw-r--r--  2 exim4u  exim4u  512 Feb  6 00:18 .
> drw-r--r--  3 exim4u  exim4u  512 Feb  6 00:18
>
> id exim4u
> uid=1002(exim4u) gid=1002(exim4u) groups=1002(exim4u)
>
>
> mysql_setup/mysql.sql
>          uid              smallint(5)   unsigned  NOT NULL  default '1002',
>          gid              smallint(5)   unsigned  NOT NULL  default '1002',
>
>
> variables.php
>    $uid = shell_exec('id -u exim4u');
>    $gid = shell_exec('id -g exim4u');
> $mailroot = "/home/exim4u/mail/";
>
>
> mysql> SELECT `maildir`, `uid`, `gid` FROM `domains` WHERE `domain` LIKE
> 'test2.com' ;
> +------------+------+------+
> | maildir    | uid  | gid  |
> +------------+------+------+
> | /test2.com | 1002 | 1002 |
> +------------+------+------+
> 1 row in set (0.00 sec)
>

The "real obvious" is that you forgot to update the records in `users`
table.

Regards,
Rimas

_______________________________________________
users mailing list
[hidden email]
https://exim4u.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Permission denied

Terry
In reply to this post by Terry

> Hi I am missing some real obvious here but I just can't see what when I
> create a domain it does not pick up the mailroot as it should.
> Even if I amend the maildir  in the db then send a test to
> postmaster at test2.com it still tries to deliver to
> /test2.com/postmaster/Maildir
>
>
>   ls -al /usr/home/exim4u/mail/
> total 8
> drw-r--r--  2 exim4u  exim4u  512 Feb  6 00:18 .
> drw-r--r--  3 exim4u  exim4u  512 Feb  6 00:18
>
> id exim4u
> uid=1002(exim4u) gid=1002(exim4u) groups=1002(exim4u)
>
>
> mysql_setup/mysql.sql
>          uid              smallint(5)   unsigned  NOT NULL  default
'1002',
>          gid              smallint(5)   unsigned  NOT NULL  default
'1002',

>
>
> variables.php
>    $uid = shell_exec('id -u exim4u');
>    $gid = shell_exec('id -g exim4u');
> $mailroot = "/home/exim4u/mail/";
>
>
> mysql> SELECT `maildir`, `uid`, `gid` FROM `domains` WHERE `domain` LIKE
> 'test2.com' ;
> +------------+------+------+
> | maildir    | uid  | gid  |
> +------------+------+------+
> | /test2.com | 1002 | 1002 |
> +------------+------+------+
> 1 row in set (0.00 sec)
>

>The "real obvious" is that you forgot to update the records in `users`
>table.

>Regards,
>Rimas

Turned out to be simple permissions error on the base of the home directory
All sorted now thanks for the help and you were right about the users
table which got me looking in the right direction
Thanks
Terry



_______________________________________________
users mailing list
[hidden email]
https://exim4u.org/mailman/listinfo/users