Can't connect with mail client POSTFIX/DOVECOT

Hi guys, I followed this tutorial http://library.linode.com/email/postfix … .10-karmic">http://library.linode.com/email/postfix/postfix-dovecot-mysql-ubuntu-9.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 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= 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=, 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 ?

2 Replies

@slcunha:

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.

@mjrich:

@slcunha:

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 !

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct