Specifically this line:
GRANT SELECT, INSERT, UPDATE, DELETE ON mail.* TO 'mail_admin'@'localhost' IDENTIFIED BY 'mail_admin_password';
I'm wondering why this user account needs any write privileges to the mail database? As far as I know, it is only using select statements invoked by postfix..
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
You're right, but if you want to write your own webmail interface where you can create, update and delete users, then this is useful. Also, SquirrelMail needs the UPDATE privilege because otherwise it wouldn't be possible to change passwords.
If may follow up with another question:
Can I adapt the previously linked how-to with postfixadmin? If so what would be involved? Just rewrite the SQL look-ups to the postfixadmin created database and repopulate the postfixadmin tables from the other tables?
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
I've never tried Postfixadmin with this setup. You might have to change a few MySQL tables and also the SQL queries in the Postfix and Courier configuration.
Recent comments
12 hours 12 min ago
21 hours 39 min ago
22 hours 29 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 18 hours ago
1 day 23 hours ago
2 days 1 hour ago