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

Can't connect with mail client POSTFIX/DOVECOT
https://forum.linode.com/viewtopic.php?f=11&t=5416
Page 1 of 1

Author:  slcunha [ Wed Apr 07, 2010 7:55 am ]
Post subject:  Can't connect with mail client POSTFIX/DOVECOT

Hi guys, I followed this tutorial http://library.linode.com/email/postfix ... .10-karmic and everything works, the only thing that i have changed was the follow line:

postconf -e 'mydestination = server.yourdomain.com, localhost, localhost.localdomain'

to:

postconf -e 'mydestination = localhost, localhost.localdomain'

I can send email locally:

mailx cunha@sergiocunha.com

And I can read locally:

mutt -f .

But I can't connect from a email client. I tryed with ssl, tls and plain (POP and IMAP) but nothing.

Here is my log :

Apr 7 11:37:11 localhost dovecot: auth(default): new auth connection: pid=9431
Apr 7 11:37:25 localhost dovecot: imap-login: Aborted login (no auth attempts): rip=200.242.199.10, lip=207.192.74.104, TLS
Apr 7 11:37:43 localhost dovecot: auth(default): new auth connection: pid=9432
Apr 7 11:37:46 localhost dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=207.192.74.104#011rip=200.242.199.10#011lport=143#011rport=60978
Apr 7 11:37:46 localhost dovecot: auth(default): client out: CONT#0111#011
Apr 7 11:37:46 localhost dovecot: auth(default): client in: CONT<hidden>
Apr 7 11:37:46 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): query: SELECT email as user, password FROM users WHERE email='cunha';
Apr 7 11:37:46 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): unknown user
Apr 7 11:37:48 localhost dovecot: auth(default): client out: FAIL#0111#011user=cunha
Apr 7 11:37:48 localhost dovecot: auth(default): client in: AUTH#0112#011PLAIN#011service=imap#011secured#011lip=207.192.74.104#011rip=200.242.199.10#011lport=143#011rport=60978#011resp=<hidden>
Apr 7 11:37:48 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): query: SELECT email as user, password FROM users WHERE email='cunha';
Apr 7 11:37:48 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): unknown user
Apr 7 11:37:50 localhost dovecot: auth(default): client out: FAIL#0112#011user=cunha
Apr 7 11:38:10 localhost dovecot: imap-login: Disconnected (auth failed, 2 attempts): user=<cunha>, method=PLAIN, rip=200.242.199.10, lip=207.192.74.104, TLS

My netstat:

root@localhost:/var/log# netstat -tan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN


Any help ?

Author:  mjrich [ Wed Apr 07, 2010 9:51 pm ]
Post subject:  Re: Can't connect with mail client POSTFIX/DOVECOT

slcunha wrote:
Apr 7 11:37:46 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): query: SELECT email as user, password FROM users WHERE email='cunha';
Apr 7 11:37:46 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): unknown user

From the guide referenced in your post, it seems more likely that you should log into dovecot using an email address rather than a standard username.

Author:  slcunha [ Thu Apr 08, 2010 4:43 pm ]
Post subject:  Re: Can't connect with mail client POSTFIX/DOVECOT

mjrich wrote:
slcunha wrote:
Apr 7 11:37:46 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): query: SELECT email as user, password FROM users WHERE email='cunha';
Apr 7 11:37:46 localhost dovecot: auth-worker(default): sql(cunha,200.242.199.10): unknown user

From the guide referenced in your post, it seems more likely that you should log into dovecot using an email address rather than a standard username.


You're right !... SOLVED : ] Thanks !

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