Hello,

Im trying to turn on my own llinux debian mail server.
Im using Postfix with Dovecot and MySql

Right now i have an issue with accounts.
Im creating account in postfixadmin and i can login using squirrelmail.

"Unknown user or password incorrect."
When im trying to login i see this in logs:

Aug 20 15:21:46 SMALL000019 dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<test at test.pl>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Can you guys tell me what can i do ?
Additionaly i have some errors in mail.log:

Aug 20 15:23:29 SMALL000019 postfix/trivial-rewrite[29944]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Aug 20 15:23:29 SMALL000019 postfix/trivial-rewrite[29944]: fatal: mysql:/etc/postfix/mysql-aliases.cf(0,lock|fold_fix): table lookup problem
Aug 20 15:23:30 SMALL000019 postfix/smtpd[29933]: warning: problem talking to service rewrite: Success
Aug 20 15:23:30 SMALL000019 postfix/master[29872]: warning: process /usr/lib/postfix/trivial-rewrite pid 29944 exit status 1
Tell me what config should i paste here.