Linode Forum
https://forum.linode.com/

Postmap Error: Access Denied for mailuser
https://forum.linode.com/viewtopic.php?f=11&t=11845
Page 1 of 1

Author:  vtinq [ Wed May 20, 2015 11:40 am ]
Post subject:  Postmap Error: Access Denied for mailuser

I'm setting up a mailserver, following Linode's "Email with Postfix" instructions. When I get to the point of of testing whether my email alias is present in mysql-virtual-mailbox-maps.cf, I get this rather contradictory message:

Code:
postmap: warning: connect to mysql server 127.0.0.1: Access denied for user 'mailuser'@'localhost' (using password: YES)
postmap: fatal: table mysql:/etc/postfix/mysql-virtual-alias-maps.cf: query error: Success


Does this indicate success or failure? The access denied message points to 'mailuser'@'localhost'. Should 'mailuser' be replaced by something else (such as the actual username)?

Thanks for any help.

Author:  sanvila [ Sun May 24, 2015 4:13 pm ]
Post subject:  Re: Postmap Error: Access Denied for mailuser

Any user name should be ok (including "mailuser") as long as the pair user/password created to access the mysql database and the pair user/password you tell postfix and dovecot to use in the config files are the same.

Author:  goldjean [ Thu May 28, 2015 12:47 pm ]
Post subject:  Re: Postmap Error: Access Denied for mailuser

Hello,

Check your password for mailuser again in the the file /etc/postfix/mysql-virtual-alias-maps.cf

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/