View Full Version : Using Squirrelmail with ISPConfig 3

1st May 2009, 16:26
I wish there were some more instructions on how to use squirrelmail with ISPConfig 3.

After successfully following all the instructions for a Fedora 10 install with ISPConfig 3 and sqirrelmail using IMAP courrier, I'm a bit lost.

The issue: Can't log in to IMAP email accounts using squirrelmail

1. ISPConfig 3 works fine. It creates email domains, accounts, etc. I have verified that the email accounts are being created for /var/vmail/domain/usr
2. Squirrelmail login screen comes up fine.
3. Squirrelmail configtest.php produces no errors:

SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.
SquirrelMail version: 1.4.17-4.fc10
Config file version: 1.4.0
Config file last modified: 01 May 2009 06:19:13
Checking PHP configuration...
PHP version 5.2.6 OK.
error_reporting: 6143
variables_order OK: EGPCS.
PHP extensions OK. Dynamic loading is enabled.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: http://mydomain/webmail/src (location base autodetected)
Checking outgoing mail service....
sendmail OK
Checking IMAP service....
IMAP server ready (* OK Dovecot ready.)
Checking internationalization (i18n) settings...
gettext - Gettext functions are available. On some systems you must have appropriate system locales compiled.
mbstring - Mbstring functions are available.
recode - Recode functions are unavailable.
iconv - Iconv functions are available.
timezone - Webmail users can change their time zone settings.
Checking database functions...
not using database functionality.

Congratulations, your SquirrelMail setup looks fine to me!

Squirrelmail complains about the login stating:

"Unknown user or password incorrect."

I've tried both username and username@domain but I can't log in !


Thanks for any help or ideas!

1st May 2009, 17:11
similar problem here, but I am unsure what user to use for logging in, is it the client? I guess client is only for logging into ispcfg3 itsself. which would be the username used to log into squirrelmail or any other email account?

1st May 2009, 17:34
Seems like it should be the username or username@domainname that is created in ISPConfig for the new IMAP account ... :confused:

2nd May 2009, 10:53
In ISPConfig 3, the username is the email address, there is no separate username anymore.

2nd May 2009, 16:44
In ISPConfig 3, the username is the email address, there is no separate username anymore.

For some reason that does not work! Anyone have any ideas?

My configuration is that I rent a server at


The A and MX records are at ns1.mywebhostingcompany.net (etc). The MX records do point to the domains / IP addresses that I am configuring for ISPConfig and the courier IMAP server is working. It should work but I don't understand why it does not.

2nd May 2009, 22:58
Take a look in the mail log file and post the exact error message that you get there when the login fails.

3rd May 2009, 15:35
is there any way for an email user to change his password? I know in ispcfg2 there was an option. Besides tehre are quite a few squirrelmail plugins to change passwords, does anyone work with ispcfg3, I mean bearing in mind its virtual users now and no longer system users...

3rd May 2009, 15:57
I made a plugin for Roundcube webmail for ISPConfig 3. You can find it here http://www.roundcubeforum.net/downloads/plugins-patches/3/ispconfig-3-password-autoreply-changer-0-2-1-19/

4th May 2009, 17:11
Take a look in the mail log file and post the exact error message that you get there when the login fails.

Here it is:
May 4 07:00:01 ss0609 postfix/smtpd[31036]: connect from localhost.localdomain[]
May 4 07:00:01 ss0609 postfix/smtpd[31036]: lost connection after CONNECT from localhost.localdomain[]
May 4 07:00:01 ss0609 postfix/smtpd[31036]: disconnect from localhost.localdomain[]
May 4 07:00:01 ss0609 dovecot: pop3-login: Disconnected (no auth attempts): rip=, lip=, secured
May 4 07:00:01 ss0609 dovecot: imap-login: Disconnected (no auth attempts): rip=, lip=, secured

I have absolutely no idea what the problem is here! ??

4th May 2009, 23:20
I repeated all the procedures for "12 Configure Courier" on at the bottom of:

I have also done:
# /usr/share/squirrelmail/config/conf.pl
... specifying both courier and dovecot IMAP servers.

Now I am getting the following mail error:
May 4 07:41:45 ss0609 dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<dpicella@theemailaddress.com>, method=PLAIN, rip=, lip=, secured

I am going to take a guess and say that this is an courier vs dovecot config issue, but I don't know how to solve it.

Thanks for any help!

4th May 2009, 23:30
Dovecot is not supported by ispconfig 3. If you followed the tutorial, then dovecot is not installed on the server. You will have to reinstall the server so that the exact packages as described in the tutorial are installed.

4th May 2009, 23:50
Well... Not sure I want to do that because it looks like most people are moving away from courier to dovecot because it appears to be a bit more lightweight, faster, and perhaps even more reliable (although I don't know about that last one).

If I do get rid of it, there must be an easier way of doing so than starting from scratch. I already have ISPConfig 3 setup the way I want it with a number of websites working perfectly.

I don't rely on using this server for email, so I am thinking that I may just hold off until there is a solution for dovecot support in ISPConfig 3.


5th May 2009, 11:14
according to the perfect server howto for ispcfg3:

Afterwards you can access SquirrelMail under http://server1.example.com/webmail or

how would I have to proceed to make squirrelmail available at anyhosteddomain/webmail/ ? or alternatively at mail.anyhosteddomain.com ?

any hints?

5th May 2009, 14:47
The best way to do that is to put a symbolic link in the root directory for the website you want to be able to do this. For example.


# cd PathToHtmlRootOfYourDomain
# ln -s /usr/share/squirrelmail webmail

That should do it.

You might need to modify your apache configuration to allow access to files outside the website root

5th May 2009, 15:13
I decided to remove dovecot and switch to courier-imap after all. The following worked to solve this issue:

cd /etc/init.d
./dovecot stop
chkconfig --del dovecot
./courier-authlib start
./courier-imap start
chkconfig --levels 235 courier-imap on

Now squirrelmail works fine! Rebooting brings up all the services just fine. If anyone else has this problem, just cut and past the code above and you should be ready to go. At least it will work for Redhat systems others may have to figure out the command to use to add services to load at boot.

7th January 2011, 05:30
has anybody done this on centOS if yes can you please help i cant login to the mail accounts i have created in ISPConfig i am using dovecot and squirrel mail.

I f you suggest a change in any packages i will do it i just need to get my email working. Thank you