Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th February 2010, 11:34
shafeeks shafeeks is offline
Junior Member
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default Configuration of dovecot in ispconfig2

Hi,

I am installing ISPConfig 2 on a new server with dovecot (pop3, pop3s, imap and imaps) instead of using courier-pop and courrier-imap.

I cannot login either through pop3 or imap, it gives me the following error:
dovecot: auth(default): new auth connection: pid=8033
dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=POP3#011secured#011l ip=127.0.0.1#011rip=127.0.0.1#011resp=<hidden>
dovecot: auth(default): pam(c1_user,127.0.0.1): lookup service=dovecot
dovecot: auth(default): pam(c1_user,127.0.0.1): pam_authenticate() failed: Authentication failure
dovecot: auth(default): client out: FAIL#0111#011user=c1_user
dovecot: pop3-login: Aborted login (1 authentication attempts): user=<c1_user>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=IMAP#011lip=xx.xx.xx .xx#011rip=xx.xx.xx.xx
dovecot: auth(default): client out: CONT#0111#011
dovecot: auth(default): client in: CONT<hidden>
dovecot: auth(default): pam(c1_user,xx.xx.xx.xx): lookup service=dovecot
dovecot: auth(default): pam(c1_user,xx.xx.xx.xx): pam_authenticate() failed: Authentication failure
dovecot: auth(default): client out: FAIL#0111#011user=c1_user
dovecot: auth(default): client in: AUTH#0112#011PLAIN#011service=IMAP#011lip=XX.XX.XX ;XX#011rip=xx.xx.xx.xx#011resp=<hidden>
dovecot: auth(default): pam(c1_user,xx.xx.xx.xx): lookup service=dovecot
dovecot: auth(default): pam(c1_user,xx.xx.xx.xx): pam_authenticate() failed: Authentication failure
dovecot: auth(default): client out: FAIL#0112#011user=c1_user


dovecot -n gives me:
# 1.0.15: /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
verbose: yes
debug: yes
passdb:
driver: pam
userdb:
driver: passwd


Friends your helps will be appreciated
Thanks

shafeek

Last edited by shafeeks; 26th February 2010 at 06:21.
Reply With Quote
Sponsored Links
  #2  
Old 26th February 2010, 07:13
shafeeks shafeeks is offline
Junior Member
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Problem solved.

The data has been imported from another ISPConfig server to the new ISPConfig server database. Then I found that ISPConfig has recreated the accounts and entries in the following files automatically:
- /etc/passwd, /etc/shadow and /etc/group
- /etc/postfix/virtusertable
- /etc/postfix/local-host-names

I would to confirm whether this is true!!!

But the problem is that /etc/shadow does not contain the passwd.

The solution is to copy exactly the /etc/passwd, /etc/group and /etc/shadow from the old server to the new one. This solves the problem. No config problem with dovecot only a few adjustments is needed as follows:

/etc/dovecot/dovecot.conf
protocols = imap imaps pop3 pop3s
listen = *
mail_location = maildir:~/Maildir
protocol pop3{
pop3_uidl_format = %08Xu%08Xv
}

You may tune the config as you wish

invoke-rc.d dovecot restart

then do a netstat -tanlp to view whether pop3 pop3s imap and imaps port and program are running

Thanks

shafeek
Reply With Quote
The Following User Says Thank You to shafeeks For This Useful Post:
falko (26th February 2010)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09


All times are GMT +2. The time now is 09:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.