sophimail / webadmin

SophiMail Webadmin and Dashboard
https://youtu.be/9RJinsrVEiM
GNU General Public License v3.0
52 stars 21 forks source link

Database table 'domains' doesn't exist #4

Open zetbee opened 6 years ago

zetbee commented 6 years ago

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

gdimakop commented 6 years ago

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