mail users does not creates entries on /etc/paswd?

Discussion in 'General' started by Gabo, Feb 9, 2015.

  1. Gabo

    Gabo New Member

    Hi!
    I'm migrating from ispconfig2 to isconfig3 and when I create a new mail account on version 3 I don't see any new entry in the /etc/passwd file. Is that correct? It doesn't even creates the directories (in /var/vmail/...), all the jobs seems to get stuck in the job queue.

    Thank you!

    Gabo
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Virtual mail users in postfix dont have any records in /etc/passwd, so thats absolutley correct. But you should see the directories in /var/vmail. Please post the output of:

    ls -la /var
     
  3. Gabo

    Gabo New Member

    ~# ls /var/ -la
    total 56
    drwxr-xr-x 14 root root 4096 Jan 27 00:30 .
    drwxr-xr-x 23 root root 4096 Dec 31 12:36 ..
    drwxr-x--- 2 root root 4096 Jan 27 00:30 backup
    drwxr-xr-x 2 root root 4096 Feb 9 06:25 backups
    drwxr-xr-x 10 root root 4096 Jan 23 16:57 cache
    drwxr-xr-x 36 root root 4096 Jan 26 13:38 lib
    drwxrwsr-x 2 root staff 4096 Nov 30 09:37 local
    lrwxrwxrwx 1 root root 9 Dec 31 12:26 lock -> /run/lock
    drwxr-xr-x 11 root root 4096 Feb 9 06:25 log
    drwxrwsr-x 2 root mail 4096 Feb 6 06:45 mail
    drwxr-xr-x 2 root root 4096 Dec 31 12:26 opt
    lrwxrwxrwx 1 root root 4 Dec 31 12:26 run -> /run
    drwxr-xr-x 5 root root 4096 Jan 26 13:26 spool
    drwxrwxrwt 2 root root 4096 Jan 26 13:21 tmp
    drwxr-xr-x 3 vmail vmail 4096 Jan 26 14:28 vmail
    drwxr-xr-x 3 root root 4096 Jan 23 16:50 www

    i'm running ispconfig on debian 8 with xen, i've got one vm for db, dns and mail, that's the output from the mail vm.
    When I create the accounts, it doesn't create the directories under /var/vmail/ . I see nothing in the logs related to this.
     
  4. Gabo

    Gabo New Member

    I think the problem was that mail vm didn't have permission to access main server db. Same was happenning with dns vm. Now I gave access to them according to the specified on /usr/local/ispconfig/lib/config.inc.php. I can from the vm's to main server, but i don't now which tables on the main db shoul be access by either mail vm or dns vm. Where can I check this?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess the problem is that you did not add the entries for all servers of this cluster in /etc/hosts file on all other servers as described in the multiserver guides. If these records are missing at install time, then mysql will later fail to connect from the slave. The permissions are very fine grained and not just table based, so do not alter the iispcsrv users from ispconfig on the master server, instead add the missing hosts records so that mysql is able to resolve the hostnames of the slaves correctly.
     
  6. Gabo

    Gabo New Member

    Hi till, thank you for your answer.
    I reinstalled ispconfig on dns and mail slaves and now it seems to work.
     

Share This Page