Could you please provide some insight about the problem I am having.
My client has a server running virtualmin 3.68 which was intalled by another company, but they are no longer supporting it. He asked us to fix the problem with it. When we click on the link “Edit mail and ftp users” we get a message which displays text “Error” and nothing else. I do not have much experience with webmin, could you please tell me where I should start looking for problems?
After upgrading webmin and virtualmin to the newest versions i get the following message when trying to edit mail or ftp users:
SQL query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’ from where 1 = 1’ at line 1
Your insight really did help a lot. The server indeed was using mysql for account storage and after looking at configuration files i found the problem. Three statements were missing in /etc/postfix/mysql-virtual-alias-maps.cf:
Adding those fixed the problem, however when I try to add mail auto reply to some specific e-mail account I get an error: Failed to save mailbox : SQL delete failed : The target table view_all_aliases of the DELETE is not updatable
However it enables auto reply for that specific email account and I indeed get automatic responses when I mail something to it.
Still - error seems eluding. Any thoughts appreciated.
I’m having, apparently, the exact same issue as ramoonas.
For what I can see, your setup is consistent with the ISPmail tutorial from workaround ( http://workaround.org/ispmail/squeeze/ ) given that you have a file /etc/postfix/mysql-virtual-alias-maps.cf
I have a similar setup, but when I add to the file what seems to have solved the issue for you, I get:
For those of you that have followed the great ISPMail tutorial by Christoph Haas from workaround.org, and want to use virtualmin only for web site management, while maintaining the postfix/dovecot e-mail server’s scheme, just add to /etc/postfix/mysql-virtual-alias-maps.cf the following: