HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Config uration of dovecot in ispconfig2 (http://www.howtoforge.com/forums/showthread.php?t=43673)

shafeeks 25th February 2010 11:34

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

shafeeks 26th February 2010 07:13

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!!! :confused:

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


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

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