fresh debian install problem with pop

6 posts / 0 new
Last post
#1 Wed, 05/07/2008 - 13:24
leighcoda

fresh debian install problem with pop

Hi,

I'm looking to replace my current hosting server with virtualmin, So I have built a new etch debian server with the webmin and virtualmin and run the install.sh, the machine is on a local dchp network.

I have created a virtual server with a single user. To start with I have wanted to test the email server. I used outlook and configured pop / smtp. I have successfully sent email through smtp using auth, but I have not managed to get pop to login.

When I telnet localhost pop3 there is an OK from dovecot on username but no response after supplying the password. No errors are generated in the mail or auth logs until the connection times out.

Does this sound like a common mistake that I've made? which user authorisation method should dovecot be using?

Regards and thanks in advance

Leigh

Wed, 05/07/2008 - 13:50
Joe
Joe's picture

Outlook is vicious when it comes to troubleshooting email problems. Once a login has failed even once for a particular account, Outlook will *never* attempt to login again. I have no idea why the Outlook folks though this was a good (or even marginally acceptable) idea...but it's the way Outlook behaves, so you've gotta deal with it.

I would recommend testing with a more sane mail client until everything is working correctly, and *then* ask Outlook (politely) to try connecting. But you'll probably have to reboot your system to convince Outlook to actually try again. I'm sure there must be some way to convince it to try again, but I've never been able to figure it out (though I am, admittedly, an idiot when it comes to Windows boxes).

In short, if you don't see errors in the log, then the client isn't actually trying to login. And we'll need to see errors to know what is going wrong.

--

Check out the forum guidelines!

Thu, 05/08/2008 - 00:20 (Reply to #2)
leighcoda

Hi,

I have tried logging into dovecot on pop3 over telnet and here is what i did and the logs generated. As you can see that dovecot doesnt respond to the password and times out.

Kind regards

Leigh

virtualhost:~# telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user test
+OK
pass 123456
Connection closed by foreign host.

virtualhost:~# tail -f /var/log/mail.* /var/log/messages /var/log/auth.log -n0
==> /var/log/mail.err <==

==> /var/log/mail.info <==

==> /var/log/mail.log <==

==> /var/log/mail.warn <==

==> /var/log/messages <==

==> /var/log/auth.log <==

==> /var/log/mail.info <==
May 8 11:14:00 virtualhost dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=POP3^Isecured^Ilip=127.0.0.1^Irip=127.0.0.1^Iresp=AHRlc3QAbGxld2tjYWxi

==> /var/log/mail.log <==
May 8 11:14:00 virtualhost dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=POP3^Isecured^Ilip=127.0.0.1^Irip=127.0.0.1^Iresp=AHRlc3QAbGxld2tjYWxi

==> /var/log/mail.info <==
May 8 11:15:00 virtualhost dovecot: pop3-login: Disconnected: Inactivity: method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

==> /var/log/mail.log <==
May 8 11:15:00 virtualhost dovecot: pop3-login: Disconnected: Inactivity: method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

==> /var/log/auth.log <==
May 8 11:15:01 virtualhost CRON[3237]: (pam_unix) session opened for user root by (uid=0)
May 8 11:15:04 virtualhost su[3260]: Successful su for postgres by root
May 8 11:15:04 virtualhost su[3260]: + ??? root:postgres
May 8 11:15:04 virtualhost su[3260]: (pam_unix) session opened for user postgres by (uid=0)
May 8 11:15:04 virtualhost su[3260]: (pam_unix) session closed for user postgres
May 8 11:15:04 virtualhost CRON[3237]: (pam_unix) session closed for user root

Thu, 05/08/2008 - 01:30 (Reply to #3)
Joe
Joe's picture

So how did you install Dovecot? (And what OS/version are you running?)

The defaults found in the packages provided by most Linux distros is sane, and Just Works. But, maybe if it's trying to do something dumb like use ntlm or cram-md5 or something, that might cause trouble...but I would think the log would indicate it. I really don't know what to tell you, as I've never seen this behavior from Dovecot. It's one of the aspects of the product that we never think about because it always works and we don't have to do much configuration during installation (we set the mail location to ~/Maildir, and we make sure all of the relevant protocols are turned on...that's pretty much the entirety of our configuration process on most Linux systems).

--

Check out the forum guidelines!

Thu, 05/08/2008 - 01:58 (Reply to #4)
leighcoda

Hi,

When I installed I only went with the base system on a net install. The only packages that I installed manually where:

apt-get install ssh
apt-get install libnet-ssleay-perl
dpkg -i webmin_1.410_all.deb
dpkg -i webmin-virtual-server_3.56.gpl_all.deb
./install.sh

Thanks

Leigh

Linux virtualhost 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux

apt-cache showpkg dovecot-common
Package: dovecot-common
Versions:
1.0.rc15-2etch4(/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_binary-i386_Packages)(/var/lib/dpkg/status)
1.0.rc15-2etch3(/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_main_binary-i386_Packages)

Reverse Depends:
virtualmin-base,dovecot-common
dovecot-pop3d,dovecot-common 1.0.beta3-1
dovecot-imapd,dovecot-common 1.0.beta3-1
dovecot-pop3d,dovecot-common 1.0.beta3-1
dovecot-imapd,dovecot-common 1.0.beta3-1
Dependencies:
1.0.rc15-2etch4 - libc6 (2 2.3.6-6) libcomerr2 (2 1.33-3) libkrb53 (2 1.4.2) libldap2 (2 2.1.17-1) libmysqlclient15off (2 5.0.27-1) libpam0g (2 0.76) libpq4 (2 8.1.4) libsqlite3-0 (2 3.3.8) libssl0.9.8 (2 0.9.8c-1) zlib1g (2 1:1.2.1) libpam-runtime (2 0.76-13.1) openssl (0 (null)) adduser (0 (null)) dovecot (0 (null))
1.0.rc15-2etch3 - libc6 (2 2.3.6-6) libcomerr2 (2 1.33-3) libkrb53 (2 1.4.2) libldap2 (2 2.1.17-1) libmysqlclient15off (2 5.0.27-1) libpam0g (2 0.76) libpq4 (2 8.1.4) libsqlite3-0 (2 3.3.8) libssl0.9.8 (2 0.9.8c-1) zlib1g (2 1:1.2.1) libpam-runtime (2 0.76-13.1) openssl (0 (null)) adduser (0 (null)) dovecot (0 (null))
Provides:
1.0.rc15-2etch4 -
1.0.rc15-2etch3 -
Reverse Provides:

virtualhost:~# apt-cache showpkg dovecot-imapd
Package: dovecot-imapd
Versions:
1.0.rc15-2etch4(/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_binary-i386_Packages)(/var/lib/dpkg/status)
1.0.rc15-2etch3(/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_main_binary-i386_Packages)

Reverse Depends:
virtualmin-base,dovecot-imapd
Dependencies:
1.0.rc15-2etch4 - libc6 (2 2.3.6-6) libssl0.9.8 (2 0.9.8c-1) dovecot-common (2 1.0.beta3-1) imap-server (0 (null))
1.0.rc15-2etch3 - libc6 (2 2.3.6-6) libssl0.9.8 (2 0.9.8c-1) dovecot-common (2 1.0.beta3-1) imap-server (0 (null))
Provides:
1.0.rc15-2etch4 - imap-server
1.0.rc15-2etch3 - imap-server

virtualhost:~# apt-cache showpkg dovecot-pop3d
Package: dovecot-pop3d
Versions:
1.0.rc15-2etch4(/var/lib/apt/lists/security.debian.org_dists_etch_updates_main_binary-i386_Packages)(/var/lib/dpkg/status)
1.0.rc15-2etch3(/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_main_binary-i386_Packages)

Reverse Depends:
virtualmin-base,dovecot-pop3d
Dependencies:
1.0.rc15-2etch4 - libc6 (2 2.3.6-6) libssl0.9.8 (2 0.9.8c-1) dovecot-common (2 1.0.beta3-1) pop3-server (0 (null))
1.0.rc15-2etch3 - libc6 (2 2.3.6-6) libssl0.9.8 (2 0.9.8c-1) dovecot-common (2 1.0.beta3-1) pop3-server (0 (null))
Provides:
1.0.rc15-2etch4 - pop3-server
1.0.rc15-2etch3 - pop3-server
Reverse Provides:

Thu, 05/08/2008 - 02:43 (Reply to #5)
leighcoda

Hi,

This turned out to be straight forward I switched the password authentication to "Unix shadow file" rather the "default PAM server (dovecot)" that is was on.

Regards

Leigh

Topic locked