Title: qmail notes Subject: more qmail notes ------------------------------------------------------- Install vpopmail: taken from the /vpopmail-3.4.12/INSTALL file. ------------------------------------------------------- 1. check for diskspace [root@mother vpopmail-3.4.12]# df -k Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda1 6071904 3463704 2299756 60% / ------------------------------------------------------- [root@mother vpopmail-3.4.12]# /sbin/fdisk -ls /dev/hda Disk /dev/hda: 255 heads, 63 sectors, 784 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 768 6168928+ 83 Linux /dev/hda2 769 784 128520 5 Extended /dev/hda5 769 784 128488+ 82 Linux swap --------------------------------------------------------- 2. add groups and users [root@mother vpopmail-3.4.12]# cat /etc/group |grep vchkpw [root@mother vpopmail-3.4.12]# /usr/sbin/groupadd vchkpw [root@mother vpopmail-3.4.12]# /usr/sbin/useradd -g vchkpw vpopmail --------------------------------------------------------- 3. Create a /etc/tcp.smtp file [root@mother vpopmail-3.4.12]# echo "127.0.0.:allow,RELAYCLIENT=\"\"" > /etc/tcp.smtp [root@mother vpopmail-3.4.12]# cat /etc/tcp.smtp 127.0.0.:allow,RELAYCLIENT="" [root@mother vpopmail-3.4.12]# echo "192.168.0.:allow,RELAYCLIENT=\"\"" >> /etc/tcp.smtp [root@mother vpopmail-3.4.12]# cat /etc/tcp.smtp 127.0.0.:allow,RELAYCLIENT="" / 192.168.0.:allow,RELAYCLIENT="" ---------------------------------------------------------- Step 4. Install: [root@mother vpopmail-3.4.12]# ./configure [root@mother vpopmail-3.4.12]# make [root@mother vpopmail-3.4.12]# make install-strip ---------------------------------------------------------- Step 6.Add a virtual domain [root@mother vpopmail-3.4.12]# cd /home/vpopmail/bin [root@mother bin]# ./vadddomain 420worldwide.com Please enter password for postmaster: enter password again: vadddomain will modify the following qmail files (default locations used) /var/qmail/control/locals /var/qmail/control/rcpthosts /var/qmail/control/morercpthosts (if rcpthosts > than 50 lines) /var/qmail/control/virtualdomains /var/qmail/users/assign /var/qmail/users/cdb It will also create a domains directory ~vpopmail/domains/test.com ~vpopmail/domains/test.com/postmaster/Maildir ... ~vpopmail/domains/test.com/vpasswd ~vpopmail/domains/test.com/vpasswd.cdb ----------------------------------------------------------- 7. Add a new pop user. [root@mother vpopmail-3.4.12]# cd /home/vpopmail/bin [root@mother bin]# ./vadduser john@420worldwide.com Please enter password for john@420worldwide.com: enter password again: ----------------------------------------------------------- 9. Delete a virtual domain # cd /home-dir-of-vpopmail/bin # ./vdeldomain test.com 10. Changing a pop users password (new in 3.4.3) # cd /home/vpopmail/bin # ./vpasswd user@domain.com or # ./vpasswd user@domain.com ----------------------------------------------------------- Install sqwebmail: Taken from INSTALL ----------------------------------------------------------- * --with-cacheowner=user - specifies who should own the cache directory. This is bin by default. However, if you choose to install vsqwebmail owned by the virtual userid, instead of root, you MUST use the cacheowner option to specify the virtual userid. * --enable-https - have SqWebMail generate https:// URLs for all accesses, instead of http://. * --enable-https=login - generate a single https:// URL for the login function only. The idea is to use SSL just to send the login and the password. In order for this option to work the URL for both http:// and https:// path to SqWebMail must be identical! * --enable-webpass=vpopmail - use the vpopmail.a library to change passwords (this will only work if the virtual userid used for the accounts also owns the vpopmail password database). * --enable-cgibindir=directory - where to install the sqwebmail executable program. This should be your /cgi-bin directory. The configure script will look for one in the usual places, this option can be used to tell configure where to look. * --with-maxmsgsize=n - maximum size of messages (including attachments. Defaults to 2097152 (two megabytes). Note that attachments are base64-encoded, which adds 25% overhead, so the maximum size of attachments is really about 1.5 megabytes. * --with-ispell=pathname - if configure finds ispell in the default path, or if you specify the full name to ispell using this option, users will be able to spell check their documents. authentication modules I specify = * authshadow - this module is like authpwd, except that it should be used on systems that use shadow password files, /etc/shadow. * authvchkpw - this is another virtual mail database lookup module, except that it uses the vpopmail vpasswd files. This module is provided for a quick way to use your existing vpopmail vpasswd files. Where possible, you should convert over to /etc/userdb. The included script vchkpw2userdb(8) might be of some help in doing VPOPMAIL AUTHENTICATION If you use vpopmail's support for MySQL authentication, you MUST use the --enable-logincache option, and do everything you need to do in order to use this option (install the cron job, etc...), otherwise you're going to bring your server to its knees. ------------------------------------------------------------ this worked -------------------------- ./configure --without-authpam --without-authuserdb --enable-webpass=no ./configure --without-authpam --without-authuserdb --enable-webpass=no --without-authpwd --without-authshadow ./configure --without-authpam --without-authuserdb --enable-https --enable-webpass=vpopmail --enable-default-domain=stilen.com this did not work -------------------------- ./configure --enable-https=login --enable-webpass=no --enable-cgibindir=/usr/local/apache/cgi-bin --with-maxmsgsize=20000000 --with-ispell=/usr/bin/ispell make configure-check # to verify the directories for the CGI and the image files Rerun configure and use --enable-cgibindir and --enable-imagedir if necessary. make #to compile SqWebMail make check make install-strip #use make install if make install-strip fails go to http://www.stilen.com/cgi-bin/sqwebmail ------------------------------------------------------------ You must now create the following cron job that runs at regular intervals: su -c "/usr/local/share/sqwebmail/cleancache.pl" bin ------------------------------------------------------------ install amailadmin ------------------------------------------------------------ ./configure make clean make make install-strip