gishaust
August 21st, 2008, 06:41 PM
I have been trying to get and email server going everything is going fine except one thing in dovecot.
I can sent mail to the new postfix server but when I Imap through telnet I have a problem logging in I get the below issue.
telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user sal@prt.com
+OK
pass 1234
-ERR Temporary authentication failure.
I know the password is correct because I used postfix.admin to set it up.
and my dovecot-delivery.log says this so I had at sometime use Imap to deliver it
deliver(sal@prt.com): 2008-08-21 12:07:38 Info: msgid=<20080821020700.46B8A32C239@mta>: saved mail to INBOX
I think this is the issue it taken from the mail log
sql(sal@prt.com,127.0.0.1): Password query failed: Table 'postfix.view_users' doesn't exist
In mysql database it looks like this
CREATE TABLE mailbox (
username varchar(255) NOT NULL default '',
password varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
maildir varchar(255) NOT NULL default '',
quota int(10) NOT NULL default '0',
domain varchar(255) NOT NULL default '',
created datetime NOT NULL default '0000-00-00 00:00:00',
modified datetime NOT NULL default '0000-00-00 00:00:00',
active tinyint(1) NOT NULL default '1',
PRIMARY KEY (username),
KEY username (username)
) COMMENT='Postfix Admin - Virtual Mailboxes';
In the /etc/dovecot/dovecot-sql.conf it says this
driver = mysql
connect = host=127.0.0.1 dbname=mailserver user=mailuser password=mailuser2007
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM view_users WHERE email='%u';
should this line be like this
password_query = SELECT mailbox as user, password FROM password WHERE email='%u';
gishaust
I can sent mail to the new postfix server but when I Imap through telnet I have a problem logging in I get the below issue.
telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user sal@prt.com
+OK
pass 1234
-ERR Temporary authentication failure.
I know the password is correct because I used postfix.admin to set it up.
and my dovecot-delivery.log says this so I had at sometime use Imap to deliver it
deliver(sal@prt.com): 2008-08-21 12:07:38 Info: msgid=<20080821020700.46B8A32C239@mta>: saved mail to INBOX
I think this is the issue it taken from the mail log
sql(sal@prt.com,127.0.0.1): Password query failed: Table 'postfix.view_users' doesn't exist
In mysql database it looks like this
CREATE TABLE mailbox (
username varchar(255) NOT NULL default '',
password varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
maildir varchar(255) NOT NULL default '',
quota int(10) NOT NULL default '0',
domain varchar(255) NOT NULL default '',
created datetime NOT NULL default '0000-00-00 00:00:00',
modified datetime NOT NULL default '0000-00-00 00:00:00',
active tinyint(1) NOT NULL default '1',
PRIMARY KEY (username),
KEY username (username)
) COMMENT='Postfix Admin - Virtual Mailboxes';
In the /etc/dovecot/dovecot-sql.conf it says this
driver = mysql
connect = host=127.0.0.1 dbname=mailserver user=mailuser password=mailuser2007
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM view_users WHERE email='%u';
should this line be like this
password_query = SELECT mailbox as user, password FROM password WHERE email='%u';
gishaust