Install Vpopmail
Vpopmail is one of the major components of this installation. Vpopmail allows us to do virtual domain mail hosting. It's got a lot of built in tools and features that make it a dream to work with. Even if you don't want to host mail for multiple domains, I would still recommend installing Vpopmail. It just makes the whole mail game easier. Plus, this installation centers around it, so if you don't install it you're going to have a headache.
Create the needed Database.
The used MySQL_root_password should be the password chosen on pre-step 3. It's should not be the same as the password for vpopmailuser (VPOPMAIL_PASSWORD).
It's not a typo, the MySQL_root_password should really be just aside the -p
CREATE DATABASE vpopmail;
GRANT select,insert,update,delete,create,drop ON vpopmail.* TO vpopmailuser@localhost IDENTIFIED BY 'VPOPMAIL_PASSWORD';
FLUSH PRIVILEGES;
quit;
Test your the account you have just created
You should have such response
Your MySQL connection id is 1073
Server version: 5.1.49-3 (Debian)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>exit;
Prepare the installation
chown -R vpopmail:vchkpw /home/vpopmail
chmod 770 /home/vpopmail
cd /home/vpopmail/etc
Do not forget to put your OWN chosen MySQL password for vpopmailuser (refered as VPOPMAIL_PASSWORD in this guide)
chown vpopmail:vchkpw ~vpopmail/etc/vpopmail.mysql
chmod 640 ~vpopmail/etc/vpopmail.mysql
Install Vpopmail
tar zxvf vpopmail-5.4.33.tar.gz
cd /downloads/vpopmail-5.4.33
./configure \
make && make install-strip
This file modification is needed to avoid a segmentation fault in some case
Server:
Disable = True;
__EOF__
Users comments
I'm interested to know how to apply the --disable-clear-password.
I waited with the installation of qmail because of this cullprit.
Any advice will be greatly appreciated.
@David : yes and it worked. I still have to test it on another install but 'm quite sure you were right ! Thanks for the tip (I'll update the site soon)
Hey Thibs,
Have you checked out if my disabling of cleartext passwords works properly in your setup yet?
cheers
@Jon : My known solution is to use qmail server with authentification through port 465. It works for roaming and non-roaming users!
Hello David,
Thank you for your contribution. I'll test it as soon as possible (unfortunately probably not this week) and adapt the guide if your solution is confirmed !
How do you enable roaming users to send mail now?
This isn't a dumb question, it is a major problem since many people use smart devices and login remotely. Our company has a policy of sendng all mail through our server.
configure-courier >> Which is what has been failing on me for the last 12 hours.
Well, now that solves that.
But honestly, there must be a way around this.
What exactly is the issue there? Why wouldnt it be able to work without it?
I see guides for gentoo [albeit using postfix] that solve this issue by using cyrus-sasl [a package], describing it as "We're going to slave SASL off Courier-authlib instead of having it talk directly to the database. This allows us to use encrypted passwords and seems to work better as well. "
Let me know your thoughs about this.
Hello David,
The effect of this option is to enable a "pw_clear_passwd" field in database structure.
This can indeed been considered as an insecure way of doing .... but I unfortunately absolutely need it in configure-courier.php
Thank you anyway for pointing this !
In reference to the ./configure options for vpopmail:
--enable-clear-passwd
I personally think it's irresponsible nowadays to leave cleartext passwords lying around systems.
Qmail has a name for its security. Saving cleartext passwords is not necessareley unsecure, but is enormous potential fir a HUGE security leak under many aspects.
This should be changed to:
--disable-clear-passwd
roaming users does not work with your courier configuration:
as courier-authlib doesn't use vchkpw anymore, the ip adress is never written to tcp.smtp file
(just in one case: when using smtp auth - but then roaming is totally senseless ;-)

@Goofy : I'm currently really busy and I don't have time to update the site ... but I confirm that David's tips is working. Just check his another comment on configure-courier.php