LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-10-2014, 06:24 PM   #1
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Cannot get dovecot working


OK. I'm feeling like a bit of an idiot since I cannot get dovecot working. I am trying to use my shadow and passwd files for the password and user dbs but I get errors. First, here is my dovecot config. I am using the package from SlackBuilds.

Code:
# dovecot -n
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.17 x86_64 Slackware 14.1 
auth_debug = yes
auth_verbose = yes
disable_plaintext_auth = no
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = blocking=no
  driver = shadow
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  args = blocking=no
  driver = passwd
}
Next, a telnet session.

Code:
$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.
a login user password
a NO [AUTHENTICATIONFAILED] Authentication failed.
I used my actual username and password but they are redacted here obviously.

Finally, the maillog for the attempt.

Code:
Sep 10 19:19:50 pi dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Sep 10 19:19:50 pi dovecot: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
Sep 10 19:19:50 pi dovecot: auth: Debug: auth client connected (pid=2233)
Sep 10 19:20:12 pi dovecot: auth: Debug: client in: AUTH^I1^IPLAIN^Iservice=imap^Isecured^Isession=9XA8S74CYAB/AAAB^Ilip=127.0.0.1^Irip=127.0.0.1^Ilport=143^Irport=56672^Iresp=<hidden>
Sep 10 19:20:12 pi dovecot: auth: Debug: shadow(user,127.0.0.1,<9XA8S74CYAB/AAAB>): lookup
Sep 10 19:20:12 pi dovecot: auth: shadow(user,127.0.0.1,<9XA8S74CYAB/AAAB>): unknown user
Sep 10 19:20:14 pi dovecot: auth: Debug: client passdb out: FAIL^I1^Iuser=user
I am probably missing something trivial, but I can't see it nor has google found an answer yet.
 
Old 09-11-2014, 01:14 PM   #2
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 152

Rep: Reputation: 64
My Dovecot(with sieve lang filter) work with this:
Code:
# 2.2.10: /etc/dovecot/dovecot.conf                                                                                                                          
# OS: Linux 3.16.2 x86_64 Slackware 14.1                                                                                                                     
auth_cache_size = 10 M                                                                                                                                       
auth_username_chars =                                                                                                                                        
auth_verbose = yes                                                                                                                                           
base_dir = /var/run/dovecot/                                                                                                                                 
default_vsz_limit = 512 M                                                                                                                                    
disable_plaintext_auth = no                                                                                                                                  
hostname = exampledomain.com.ua
listen = 192.168.xx.x                                                                                                                                        
log_path = /var/log/dovecot.log                                                                                                                              
login_trusted_networks = 192.168.xx.x/24                                                                                                                     
mail_location = maildir:~/Maildir                                                                                                                            
managesieve_notify_capability = mailto                                                                                                                       
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy inc
namespace inbox {                                                                                                                                            
  inbox = yes                                                                                                                                                
  location =                                                                                                                                                 
  mailbox Drafts {                                                                                                                                           
    special_use = \Drafts                                                                                                                                    
  }                                                                                                                                                          
  mailbox Junk {                                                                                                                                             
    special_use = \Junk                                                                                                                                      
  }                                                                                                                                                          
  mailbox Sent {                                                                                                                                             
    special_use = \Sent                                                                                                                                      
  }                                                                                                                                                          
  mailbox "Sent Messages" {                                                                                                                                  
    special_use = \Sent                                                                                                                                      
  }                                                                                                                                                          
  mailbox Trash {                                                                                                                                            
    special_use = \Trash                                                                                                                                     
  }                                                                                                                                                          
  prefix =                                                                                                                                                   
}                                                                                                                                                            
passdb {                                                                                                                                                     
  driver = shadow                                                                                                                                            
}
plugin {                                                                                                                                                     
  sieve = ~/.dovecot.sieve                                                                                                                                   
  sieve_dir = ~/sieve                                                                                                                                        
}                                                                                                                                                            
postmaster_address = postmaster@domainexample.com.ua                                                                                                              
protocols = imap sieve                                                                                                                                       
service imap-login {                                                                                                                                         
  inet_listener imap {                                                                                                                                       
    port = 143                                                                                                                                               
  }                                                                                                                                                          
}                                                                                                                                                            
service managesieve-login {                                                                                                                                  
  inet_listener sieve {                                                                                                                                      
    port = 4190                                                                                                                                              
  }                                                                                                                                                          
}                                                                                                                                                            
service managesieve {                                                                                                                                        
  process_limit = 1024                                                                                                                                       
}                                                                                                                                                            
ssl = no                                                                                                                                                     
userdb {                                                                                                                                                     
  driver = passwd                                                                                                                                            
}                                                                                                                                                            
verbose_proctitle = yes                                                                                                                                      
protocol lda {                                                                                                                                               
  mail_plugins = " sieve"                                                                                                                                    
}                                                                                                                                                            
protocol imap {                                                                                                                                              
  mail_plugins =                                                                                                                                             
}                                                                                                                                                            
protocol sieve {                                                                                                                                             
  mail_max_userip_connections = 10                                                                                                                           
  managesieve_implementation_string = Dovecot Pigeonhole                                                                                                     
  managesieve_max_line_length = 65536                                                                                                                        
}

Last edited by StreamThreader; 09-11-2014 at 01:17 PM.
 
Old 09-19-2014, 04:28 PM   #3
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Original Poster
Rep: Reputation: 36
Sorry for the long delay in responding. The main difference was that I had used 'args = blocking=no' in both the passdb and userdb definitions (which was suggested in the documentation, but I guess I didn't appreciate what it was doing). I removed those arguments and now it works.

Thanks for posting your settings.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dovecot + sendmail not fully working thefreak Linux - Server 1 08-06-2012 08:37 AM
sendmail not working with dovecot Rafael25 Linux - Software 3 08-01-2012 03:58 PM
Dovecot quota not working brgsousa Linux - Software 3 12-23-2009 10:22 AM
Dovecot working through lan, not for domain Almighty Ju Linux - Server 1 11-30-2008 12:06 AM
Getting Dovecot working Q25 Linux - Software 0 09-23-2004 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration