new mailboxes given uid or gid of 0

Discussion in 'Installation/Configuration' started by Grog, Sep 4, 2016.

  1. Grog

    Grog New Member

    I set up a new server for a client and the first few email mailboxes set up fine but then I dont know why any new mailboxes don't work.
    I checked the dbispconfig database and noticed the ones that worked initially have uid and gid of 5000 and maildir set to /var/mail/domain/user but now any new mailboxes are given uid and gid of 0 and no maildir directory

    Any idea's what's gone wrong?

    Thanks
     
    Last edited: Sep 4, 2016
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Grog

    Grog New Member

    ok created a new mailbox and still no maildir created and the logs are vague
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Processed datalog_id 266
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Found 1 unique addresses at all.
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Found 1 addresses at all.
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Found 1 addresses.
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Mailfilter config has been changed
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Calling function 'update' from plugin 'maildeliver_plugin' raised by event 'mail_user_insert'.
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Calling function 'user_insert' from plugin 'mail_plugin' raised by event 'mail_user_insert'.
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Found 1 changes, starting update process.
    2016-09-05 11:49 ns339459.ip-5-39-82.eu Debug Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     
  4. Grog

    Grog New Member

    and then when I delete that email i get the following errors, obviously as the maildir doesnt exist

    05.09.2016-11:57 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    05.09.2016-11:57 - DEBUG - Found 1 changes, starting update process.
    05.09.2016-11:57 - DEBUG - Calling function 'user_delete' from plugin 'mail_plugin' raised by event 'mail_user_delete'.
    05.09.2016-11:57 - ERROR - Possible security violation when deleting the maildir:
    05.09.2016-11:57 - DEBUG - Calling function 'delete' from plugin 'maildeliver_plugin' raised by event 'mail_user_delete'.
    05.09.2016-11:57 - DEBUG - Processed datalog_id 267
    05.09.2016-11:57 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the maildir settings under System > Server config, maybe the path field is empty there.
     
    Grog likes this.
  6. Grog

    Grog New Member

    Something so simple, why didn't i look there?:) yes everything in the mail tab was empty for some reason, set everything, added mail box and hey presto mail directory etc created.
    Thanks Till,
     

Share This Page