freebsdrocks.net was started originally as nospam.mine.nu.
This documentation will attempt to take you through a step-by-step installation of vpopmail.
# pw groupadd vchkpw -g 89
# pw useradd vpopmail -u 89 -g vchkpw -m -d /usr/home/vpopmail -s /sbin/nologin
# pw groupadd qnofiles -g 81
# cd ~vpopmail
# tar zxvf ~root/qmail/skel4.tgz
# chown -R vpopmail:vchkpw skel/
# chmod -R 700 skel/
We now need to change where vpopmail is located in FreeBSD. The location where ports will try to install it is /usr/local/vpopmail so we're going to delete that folder and symlink it to ~vpopmail. Please change the section /home/vpopmail below if you have changed the default location of the vpopmail home directory. If you didn't or you're not sure it will be ok to proceed with the command below. Otherwise edit to taste :-)
# cd /usr/local
# ln -s /home/vpopmail /usr/local/vpopmail
# cd ~root/qmail
# tar zxvf vpopmail-5.4.33.tar.gz
# cd vpopmail-5.4.33
# ./configure --enable-onchange-script --enable-logging=p --disable-passwd --enable-clear-passwd --disable-many-domains --enable-auth-logging
# make && make install-strip
Now lets add a domain through the command line:
# cd ~vpopmail/bin
# ./vadddomain domain.com password
We need to now make a slight modification to the vchkpw file to make SMTP with SSL work correctly:
# cd ~vpopmail/bin
# chmod 6711 vchkpw
# chown vpopmail:vchkpw vchkpw
If you would like to specify a default username modify or create /var/qmail/control/defaultdomain and /home/vpopmail/etc/defaultdomain to specify your default domain. This will allow your users to just use their username to login rather than their entire email address.
