Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to configure my server with dovecot/postfix however I am getting the following errors in my /var/log/maillog and dovecot is not authenticating, can somebody shed some light on to this please?
/var/log/maillog:
Code:
Apr 14 14:53:38 server last message repeated 3 times
Apr 14 14:54:20 server dovecot: imap-login: Disconnected: rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Apr 14 14:57:48 server dovecot: imap-login: Disconnected: Inactivity: user=<trscookie@domain.com>, method=PLAIN, rip=::ffff:88.xxx.xxx.48, lip=::ffff:88.xxx.xxx.48, secured
Apr 14 14:58:27 server dovecot: auth(default): cram-md5(trscookie@domain.com,::ffff:85.210.11.31): passdb credentials are not in hex
Apr 14 14:58:28 server dovecot: imap-login: Disconnected: user=<trscookie@domain.com>, method=CRAM-MD5, rip=::ffff:85.210.11.31, lip=::ffff:88.xxx.xxx.48, TLS
Apr 14 14:58:44 server dovecot: imap-login: Disconnected: user=<trscookie@domain.com>, method=PLAIN, rip=::ffff:89.192.0.11, lip=::ffff:88.xxx.xxx.48, TLS
Code:
[root@server logs]# telnet mydomain.com 143
Trying 88.xxx.xxx.48...
Connected to mydomain.com (88.xxx.xxx.48).
Escape character is '^]'.
* OK Dovecot ready.
a login trscookie@domain.com mypassword
a NO Authentication failed.
* BYE Disconnected for inactivity.
Connection closed by foreign host.
[root@server logs]#
If I remember correctly, and it has been a while, you need to use base64 encoding when transmitting the authentication information. I also recall that there is a simple perl script to perform this function. Many of the Postfix how-to documents should say where you can find it in their testing section.
And restarted dovecot, and received a slightly different error:
Code:
Apr 14 18:14:28 server dovecot: Killed with signal 15
Apr 14 18:14:28 server dovecot: Dovecot v1.0.7 starting up
Apr 14 18:14:28 server postfix/postfix-script: stopping the Postfix mail system
Apr 14 18:14:28 server postfix/master[12471]: terminating on signal 15
Apr 14 18:14:28 server postfix/postfix-script: starting the Postfix mail system
Apr 14 18:14:28 server postfix/master[12620]: daemon started -- version 2.3.3, configuration /etc/postfix
Apr 14 18:14:28 server spamd[12503]: spamd: server killed by SIGTERM, shutting down
Apr 14 18:14:29 server dovecot: auth-worker(default): mysql: Connected to localhost (postfix)
Apr 14 18:14:31 server spamd[12652]: logger: removing stderr method
Apr 14 18:14:32 server spamd[12654]: spamd: server started on port 783/tcp (running version 3.2.5)
Apr 14 18:14:32 server spamd[12654]: spamd: server pid: 12654
Apr 14 18:14:32 server spamd[12654]: spamd: server successfully spawned child process, pid 12656
Apr 14 18:14:32 server spamd[12654]: spamd: server successfully spawned child process, pid 12657
Apr 14 18:14:32 server spamd[12654]: prefork: child states: IS
Apr 14 18:14:32 server spamd[12654]: prefork: child states: II
Apr 14 18:15:17 server postfix/smtpd[12659]: connect from localhost.localdomain[127.0.0.1]
Apr 14 18:15:19 server postfix/smtpd[12659]: disconnect from localhost.localdomain[127.0.0.1]
Apr 14 18:15:32 server dovecot: imap-login: Disconnected: user=<trscookie@domain.com>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Apr 14 18:15:46 server dovecot: imap-login: Disconnected: user=<trscookie@domain.com>, method=PLAIN, rip=::ffff:89.xxx.xxx.20, lip=::ffff:88.xxx.xxx.48, TLS
Have a look here: http://www.postfix.org/SASL_README.html and look for the section header titled: Testing SASL authentication in the Postfix SMTP Server
It shows an example, using plaintext authentication and mentions that instead of using <string on characters> to use the base64 encoding. The writing is a little confusing, in that it makes it sound like this applies to TLS connections, but should have said for both.
From what I also recall, Postfix does not support md5 hashing, when using Dovecot (or Cyrus) SASL, but only plain text. For this reason, using encryption is important and thankfully easy to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.