[GH-ISSUE #1297] Remote SQL authentication #1045

Closed
opened 2026-02-27 11:14:56 +03:00 by kerem · 4 comments
Owner

Originally created by @arduino43 on GitHub (Nov 14, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1297

Impacted versions

  • Modoboa: Latest
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Run installer with 'installer.cfg' the following options set:

engine = mysql
host = 1.1.1.1

Current behavior

When using a remote SQL server Modoboa fails. Some tables are not created for each database - spamassassin, amavis and modoboa. It appears that at some point during the installation script modoboa sets the SQL account to use 'modoboa@localhost', causing the remote SQL server to reject authentication attempts.

Does Modoboa support remote SQL server authentication?

Originally created by @arduino43 on GitHub (Nov 14, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1297 # Impacted versions * Modoboa: Latest * installer used: Yes * Webserver: Nginx # Steps to reproduce Run installer with 'installer.cfg' the following options set: engine = mysql host = 1.1.1.1 # Current behavior When using a remote SQL server Modoboa fails. Some tables are not created for each database - spamassassin, amavis and modoboa. It appears that at some point during the installation script modoboa sets the SQL account to use 'modoboa@localhost', causing the remote SQL server to reject authentication attempts. Does Modoboa support remote SQL server authentication?
kerem 2026-02-27 11:14:56 +03:00
Author
Owner

@tonioo commented on GitHub (Mar 9, 2018):

@arduino43 The database users are creating using this method: https://github.com/modoboa/modoboa-installer/blob/master/modoboa_installer/database.py#L174. I'm not a mariadb/mysql expert but the installer does create a rule for @% which is supposed to allow connection from anywhere, right?

<!-- gh-comment-id:371799782 --> @tonioo commented on GitHub (Mar 9, 2018): @arduino43 The database users are creating using this method: https://github.com/modoboa/modoboa-installer/blob/master/modoboa_installer/database.py#L174. I'm not a mariadb/mysql expert but the installer does create a rule for @% which is supposed to allow connection from anywhere, right?
Author
Owner

@kryskool commented on GitHub (Mar 24, 2018):

ping @arduino43

<!-- gh-comment-id:375911013 --> @kryskool commented on GitHub (Mar 24, 2018): ping @arduino43
Author
Owner

@arduino43 commented on GitHub (Mar 31, 2018):

but is Modoboa using that account? I haven't checked in quite some time, but I vaguely remember that it did create the account, it just didn't use it after installation.

<!-- gh-comment-id:377652613 --> @arduino43 commented on GitHub (Mar 31, 2018): but is Modoboa using that account? I haven't checked in quite some time, but I vaguely remember that it did create the account, it just didn't use it after installation.
Author
Owner

@tonioo commented on GitHub (Apr 6, 2018):

Yes it is. And tables were missing in every database? That's very strange because I don't see why some tables would created... If it's an authentication issue, nothing should be created.

<!-- gh-comment-id:379231903 --> @tonioo commented on GitHub (Apr 6, 2018): Yes it is. And tables were missing in every database? That's very strange because I don't see why some tables would created... If it's an authentication issue, nothing should be created.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1045
No description provided.