[Dovecot] imap connection refused
hi,
mutt -f imap://max@test.local@127.0.0.1 Could not connect to 127.0.0.1 (Connection refused).
lsof -i dovecot 20200 root 5u IPv4 233361 TCP localhost:imap2 (LISTEN) imap-logi 20204 dovecot 0u IPv4 233361 TCP localhost:imap2 (LISTEN) imap-logi 20205 dovecot 0u IPv4 233361 TCP localhost:imap2 (LISTEN) imap-logi 20206 dovecot 0u IPv4 233361 TCP localhost:imap2 (LISTEN)
dovecot --version 1.0.15
dovecot -n # 1.0.15: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot/error.log info_log_path: /var/log/dovecot/info.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap listen: localhost ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_location: maildir:/var/spool/maildirs/%d/%n namespace: type: private separator: . prefix: INBOX. inbox: yes auth default: mechanisms: plain login passdb: driver: pam passdb: driver: sql args: /etc/dovecot/dovecot-mysql.conf userdb: driver: passwd userdb: driver: static args: uid=5000 gid=5000 home=/var/spool/maildir/%d/%n allow_all_users=yes socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: mailsystem group: mailsystem
cat /etc/dovecot/dovecot-mysql.conf driver = mysql connect = host=localhost dbname=mailbase user=mailbase password=XXXX default_pass_scheme = PLAIN password_query = SELECT password FROM mailusers WHERE account = '%u'
/var/log/dovecot/info.log dovecot: 2009-07-11 09:07:56 Info: Dovecot v1.0.15 starting up dovecot: 2009-07-11 09:07:56 Info: auth-worker(default): mysql: Connected to localhost (mailbase)
any ideas why imap is not working? thanks
Le 11 juil. 09 à 11:19, Daniel Wallner a écrit :
hi,
mutt -f imap://max@test.local@127.0.0.1 Could not connect to 127.0.0.1 (Connection refused).
Which port number is "imap" on your system?
lsof -i dovecot 20200 root 5u IPv4 233361 TCP
localhost:imap2 (LISTEN) imap-logi 20204 dovecot 0u IPv4 233361 TCP
localhost:imap2 (LISTEN) imap-logi 20205 dovecot 0u IPv4 233361 TCP
localhost:imap2 (LISTEN) imap-logi 20206 dovecot 0u IPv4 233361 TCP
localhost:imap2 (LISTEN)
Which port number is "imap2" on your system?
And how does it come that both dovecot and imap-login listen to imap2?
Your config for Dovecot doesn't seem to do that...
HTH, Axel
On Sat, Jul 11, 2009 at 12:05 PM, Axel Luttgens<AxelLuttgens@swing.be> wrote:
Which port number is "imap" on your system? Which port number is "imap2" on your system?
port number: 143
cat /etc/services | grep imap imap2 143/tcp imap # Interim Mail Access P 2 and 4 imap2 143/udp imap imap3 220/tcp # Interactive Mail Access imap3 220/udp # Protocol v3 imaps 993/tcp # IMAP over SSL imaps 993/udp
And how does it come that both dovecot and imap-login listen to imap2? Your config for Dovecot doesn't seem to do that...
I don't know
Le 11 juil. 09 à 12:53, Daniel Wallner a écrit :
On Sat, Jul 11, 2009 at 12:05 PM, Axel Luttgens<**********> wrote:
Which port number is "imap" on your system? Which port number is "imap2" on your system?
port number: 143
cat /etc/services | grep imap imap2 143/tcp imap # Interim Mail Access P 2 and 4 imap2 143/udp imap imap3 220/tcp # Interactive Mail Access imap3 220/udp # Protocol v3 imaps 993/tcp # IMAP over SSL imaps 993/udp
And how does it come that both dovecot and imap-login listen to
imap2? Your config for Dovecot doesn't seem to do that...I don't know
Well, shouldn't matter: "imap" just seems to be an alias for "imap2",
so that both should reach port 143.
Could you show the output of a
telnet 127.0.0.1 143
as well as any related entry in your logs (not only info.log or
error.log, but mail.log, system.log, ipfw.log... as well) if any?
Axel
participants (2)
-
Axel Luttgens
-
Daniel Wallner