webadmin icon indicating copy to clipboard operation
webadmin copied to clipboard

Database table 'domains' doesn't exist

Open zetbee opened this issue 7 years ago • 1 comments

Hi,

I'm trying to select a domain for management in WebAdmin. I have created a location - but when I'm trying to pick up a domain I'm getting:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'a0001.domain' doesn't exist

I've created a0001 DB and configured it - but when I'm looking at it - it's actually missing 'domain' table. Can I ask what should I do to get it in the DB? What's the structure for this particular table?

Any help would be appreciated.

-- Best regards Zbigniew

zetbee avatar Nov 22 '17 16:11 zetbee

Hi, there are two databases: 'a0001' which is an administrative DB for managing email server admins, and dovecot/postfix DB for email server's virtual users and domains called 'mailserver' (for example). WebAdmin connects to 'mailserver' DB via connection string configured in config/app.php (found in WebAdmin). Ensure that app.php connects to 'mailserver' DB via the correct datasource in app.php. Note that the datasource name in app.php should be the same with the one you defined in the corresponding field under Manage -> Locations in WedAdmin environment.

Also check for details: http://www.sophimail.com/configure-freebsd-email-server-using-postfix-dovecot-mysql-spamassassin/

KR, George

gdimakop avatar Nov 24 '17 16:11 gdimakop