Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix / Dovecot handshake failure for auth
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aschuBP
n00b
n00b


Joined: 28 Aug 2012
Posts: 2

PostPosted: Tue Aug 28, 2012 9:41 pm    Post subject: Postfix / Dovecot handshake failure for auth Reply with quote

I normally use Gentoo to build webservers, not for email, so I was already in a bit of unfamiliar territory when I started this. I followed a few guides to what should (I would hope) have been a simple setup. To fully explain where we are in this build I'll need to go over a few things first.

This server is supposed to be an email server to transfer our business email over to from our current web server so as to have it stored locally in the office. The accounts at our domain are currently active, so I need to setup and test the server as well as migrate all the mail to the new server, before actually changing the domain over. I have a feeling this might be part of where the trouble is (regarding host names, etc).

Postfix starts, Dovecot starts, Squirrelmail is installed, but can't log into any mail accounts, the a mail client (thunderbird) can't connect to the server or verify its settings. The error log gives me the following:

Quote:

Aug 28 16:09:01 beplused postfix/smtpd[31782]: error: open database /etc/mail/aliases.db: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31782]: cannot load Certificate Authority data: disabling TLS support
Aug 28 16:09:01 beplused postfix/smtpd[31786]: error: open database /etc/mail/aliases.db: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31786]: cannot load Certificate Authority data: disabling TLS support
Aug 28 16:09:01 beplused dovecot: auth: Fatal: Support not compiled in for passdb driver 'pam'
Aug 28 16:09:01 beplused dovecot: master: Error: service(auth): command startup failed, throttling
Aug 28 16:09:01 beplused postfix/smtpd[31788]: error: open database /etc/mail/aliases.db: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31788]: cannot load Certificate Authority data: disabling TLS support
Aug 28 16:09:01 beplused postfix/smtpd[31790]: error: open database /etc/mail/aliases.db: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31790]: cannot load Certificate Authority data: disabling TLS support
Aug 28 16:09:01 beplused postfix/smtpd[31786]: connect from Cisco05596[192.168.10.1]
Aug 28 16:09:01 beplused postfix/smtpd[31786]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead
Aug 28 16:09:01 beplused postfix/smtpd[31788]: connect from Cisco05596[192.168.10.1]
Aug 28 16:09:01 beplused postfix/smtpd[31788]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead
Aug 28 16:09:01 beplused postfix/smtpd[31782]: connect from Cisco05596[192.168.10.1]
Aug 28 16:09:01 beplused postfix/smtpd[31782]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead
Aug 28 16:09:01 beplused postfix/smtpd[31790]: connect from Cisco05596[192.168.10.1]
Aug 28 16:09:01 beplused postfix/smtpd[31790]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead
Aug 28 16:09:01 beplused postfix/smtpd[31786]: warning: SASL: Connect to private/auth failed: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31786]: fatal: no SASL authentication mechanisms
Aug 28 16:09:01 beplused postfix/smtpd[31788]: warning: SASL: Connect to private/auth failed: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31788]: fatal: no SASL authentication mechanisms
Aug 28 16:09:01 beplused postfix/smtpd[31782]: warning: SASL: Connect to private/auth failed: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31782]: fatal: no SASL authentication mechanisms
Aug 28 16:09:01 beplused postfix/smtpd[31790]: warning: SASL: Connect to private/auth failed: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31790]: fatal: no SASL authentication mechanisms
Aug 28 16:09:02 beplused postfix/master[31646]: warning: process /usr/libexec/postfix/smtpd pid 31786 exit status 1
Aug 28 16:09:02 beplused postfix/master[31646]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Aug 28 16:09:02 beplused postfix/master[31646]: warning: process /usr/libexec/postfix/smtpd pid 31788 exit status 1
Aug 28 16:09:02 beplused postfix/master[31646]: warning: process /usr/libexec/postfix/smtpd pid 31782 exit status 1
Aug 28 16:09:02 beplused postfix/master[31646]: warning: process /usr/libexec/postfix/smtpd pid 31790 exit status 1


What other information is needed to start addressing this problem? As the server currently sits it has MySQL, PHP, Apache, Postfix, Dovecot, Squirrelmail, Horde installed.

Thanks for your help ahead of time, and I apologize for the vagueness of the actual question.
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 829
Location: Switzerland

PostPosted: Wed Aug 29, 2012 12:17 pm    Post subject: Reply with quote

Hi,

Quote:
Aug 28 16:09:01 beplused postfix/smtpd[31782]: error: open database /etc/mail/aliases.db: No such file or directory

To get rid of these entries, just run "newaliases" as root once.
Quote:
Aug 28 16:09:01 beplused postfix/smtpd[31782]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead

Check that in main.cf the mynetworks variable is set to 127.0.0.0/8 (besides your other local networks)
Quote:
Aug 28 16:09:01 beplused dovecot: auth: Fatal: Support not compiled in for passdb driver 'pam'

It seems that you haven't had the USE-flag "pam" set, while you compiled dovecot...
Quote:
Aug 28 16:09:01 beplused postfix/smtpd[31790]: warning: SASL: Connect to private/auth failed: No such file or directory
Aug 28 16:09:01 beplused postfix/smtpd[31790]: fatal: no SASL authentication mechanisms

This looks like you haven't had the USE-flag "dovecot-sasl" set, while you compiled postfix.

The hostnames shouldn't really be a problem, just use /etc/hosts to test things out.
But it looks like you tested the smtp-auth first (sending mails), which is a bit more complicated as postfix is hooked on dovecot... I would probably first just setup and test imap and pop3, as it is the same thing, but just plain dovecot... If that works, postfix should also be able to use it or at least you know where to search :wink:

Hope that helps a bit... If not, the relevant parts of main.cf and dovecot.conf would be interesting, as well as a new log! :wink:
Cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
aschuBP
n00b
n00b


Joined: 28 Aug 2012
Posts: 2

PostPosted: Fri Sep 14, 2012 9:32 pm    Post subject: Reply with quote

I re emerged postfix and dovecot and that fixed a good amount of the problems I was seeing, however there is another problem more evident now. (I'm also testing using telnet instead of a mail client). Here is the error log:
Quote:

Sep 14 16:09:23 master: Warning: Killed with signal 15 (by pid=12643 uid=0 code=kill)
Sep 14 16:09:23 master: Info: Dovecot v2.0.19 starting up (core dumps disabled)
Sep 14 16:09:35 auth: Fatal: Support not compiled in for passdb driver 'pam'
Sep 14 16:09:35 master: Error: service(auth): command startup failed, throttling
Sep 14 16:10:10 imap-login: Error: Timeout waiting for handshake from auth server. my pid=12667, input bytes=0
Sep 14 16:10:15 imap-login: Info: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured


After looking up this error the solution was that the USE flag for pam is apparently not enabled, but when I went to enable it, it was already there. So now I'm at a loss of what to try next. For reference here are the applicable use flags:
Quote:

# Replace mysql with postgres for PostgreSQL
mail-mta/postfix dovecot-sasl mysql vda -pam
net-mail/dovecot mysql -pam
www-apps/postfixadmin mysql vhosts
#required by virtual/httpd-php-5.3, required by www-apps/postfixadmin-2.3.5, required by postfixadmin (argument)
>=dev-lang/php-5.3.15:5.3 mysqli imap apache2
mail-mta/postfix sasl
dev-libs/cyrus-sasl authdaemond urandom
net-mail/courier-imap fam
www-servers/apache doc mpm-prefork
dev-lang/php bcmath bzip2 calendar ctype curl exif filter ftp gd hash imap json mhash mysql mysqli pcntl pdo posix sharedmem simplexml snmp soap sockets spell sqlite tidy tokenizer wddx xmlreader xmlrpc xmlwriter xsl zip
net-ftp/proftpd -ipv6

(It was short enough that I decided to post the entire file in case something is conflicting). Any more suggestions?
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Sat Sep 15, 2012 6:42 am    Post subject: Reply with quote

aschuBP wrote:

[codee]
# Replace mysql with postgres for PostgreSQL
mail-mta/postfix dovecot-sasl mysql vda -pam
net-mail/dovecot mysql -pam
www-apps/postfixadmin mysql vhosts
#required by virtual/httpd-php-5.3, required by www-apps/postfixadmin-2.3.5, required by postfixadmin (argument)
>=dev-lang/php-5.3.15:5.3 mysqli imap apache2
mail-mta/postfix sasl
dev-libs/cyrus-sasl authdaemond urandom
net-mail/courier-imap fam
www-servers/apache doc mpm-prefork
dev-lang/php bcmath bzip2 calendar ctype curl exif filter ftp gd hash imap json mhash mysql mysqli pcntl pdo posix sharedmem simplexml snmp soap sockets spell sqlite tidy tokenizer wddx xmlreader xmlrpc xmlwriter xsl zip
net-ftp/proftpd -ipv6
[/code]
(It was short enough that I decided to post the entire file in case something is conflicting). Any more suggestions?


what is this? your package.use ?

because the above has USE="-pam" for both dovecot and postfix, meaning, pam == disabled
you also dont have pam enabled for cyrus-sasl
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum