I made the appropriate changes to postfix to get mysql 5.7 working as the database instead fo Maria DB. I can run tests and all seems to work on the server. However, I cannot log into my account from my email client. I continue to get 'invalid login' errors and I have checked the email address and password multiple times.
I noticed that postfix uses the 'encrypt' option for the password on the users table and also that on Mysql 5.7, there is an option to add a key for this feature. This wasn't the case on 5.6 and below. Does anyone know specifically if this is the issue and if so, is there a fix for postfix to put the encryption key somewhere? Or is postfix just NOT compatible with Mysql 5.7? I cannot run mariaDB on this server.
Thanks in advance.
EDIT: There are two sql queries in many of the default configs that do not work in Mysql 5.7
in mysql-virtual_domains.cf:
SELECT domain AS virtual FROM domains WHERE domain='%s'
should be changed to
SELECT domain AS `virtual` FROM domains WHERE domain='%s'
(back-ticks added to reserved keyword)
in mysql-virtual_mailboxes.cf
SELECT CONCAT(SUBSTRING_INDEX(`email`,<'@'>,-1),'/',SUBSTRING_INDEX(`email`,<'@'>,1),'/') FROM users WHERE email='%s'
should be changed to
SELECT CONCAT(SUBSTRING_INDEX(`email`,'@',-1),'/',SUBSTRING_INDEX(`email`,'@',1),'/') FROM users WHERE email='%s'
(remove <>)