openSuSE 10.0 QmailToaster install info - Nov 30, 2005 Nick Hemmesch Note: I have been working to support openSuSE 10.0 for QmailToaster. I do consider this project to be in the development stage and not ready for a production server. For both openSuSE 10.0 and openSuSE 10.0 x86_64 I do a basic install. Be sure that your dns points to your mail server. ~~~ Your /etc/hosts file should look like this: 127.0.0.1 server.yourdomain.com localhost.localdomain localhost ~~~ If you start named as a caching or dns server, your /etc/resolv.conf should look like this: nameserver 127.0.0.1 If not, your resolv.conf should look like this: search yourdomain.com nameserver "IP address of your first nameserver" nameserver "IP address of your second nameserver" ~~~ Install QmailToaster: mkdir /usr/src/qt-install cd /usr/src/qt-install wget http://www.qmailtoaster.com/sus100/sus100-deps.sh wget http://www.qmailtoaster.com/sus100/sus100-install-script.sh wget http://www.qmailtoaster.com/sus100/mysql-setup.sh wget http://www.qmailtoaster.com/info/current-download-script.sh Note: if openSuSE 10.0 x86_64: wget http://www.qmailtoaster.com/sus10064/sus10064-deps.sh wget http://www.qmailtoaster.com/sus10064/sus10064-install-script.sh wget http://www.qmailtoaster.com/sus10064/mysql-setup.sh wget http://www.qmailtoaster.com/info/current-download-script.sh and replace sus100 with sus10064 in the following instructions. Use script to have yast get the necessary packages: sh sus100-deps.sh Remove postfix mailx yast2-mail yast2-mail-aliases: rpm -e --nodeps postfix mailx yast2-mail yast2-mail-aliases REBOOT cd /usr/src/qt-install Set hostname so QmailToaster can read it for the install: echo server.yourdomain.com (your FQDN) > /etc/hostname hostname -F /etc/hostname Get current QmailToaster packages: sh current-download-script.sh Install QmailToaster packages, follow the prompts: sh sus100-install-script.sh Set hostname back so SuSe can read it properly: Go to yast2 -> Network Services -> Hostnames -> Finish REBOOT Check to see that QmailToaster is running. Should look like this: [root@server ~]# qmailctl stat clamd: up (pid 2425) 65 seconds imap4: up (pid 2421) 65 seconds imap4-ssl: up (pid 2423) 65 seconds pop3: up (pid 2414) 65 seconds pop3-ssl: up (pid 2409) 65 seconds send: up (pid 2416) 65 seconds smtp: up (pid 2418) 65 seconds spamd: up (pid 2407) 65 seconds clamd/log: up (pid 2417) 65 seconds imap4/log: up (pid 2422) 65 seconds imap4-ssl/log: up (pid 2424) 65 seconds pop3/log: up (pid 2415) 65 seconds pop3-ssl/log: up (pid 2413) 65 seconds send/log: up (pid 2420) 65 seconds smtp/log: up (pid 2419) 65 seconds spamd/log: up (pid 2408) 65 seconds [root@server ~]# Set your firewall: open these TCP ports: 22 25 53 80 110 143 443 465 993 995 open these UDP ports: 53 123 Make sure mysqld is running: /etc/init.d/mysql status If not running: chkconfig mysql on /etc/init.d/mysql start Setup mysql for QmailToaster: Edit mysql-setup.sh and add your root password If you have already setup your mysql root password: comment the line: #mysqladmin -uroot password $MYSQLPW Run the script sh mysql-setup.sh Add a domain to vpomail: /home/vpopmail/bin/vadddomain yourdomain.com Add a couple users: /home/vpopmail/bin/vadduser you.yourdomain.com /home/vpopmail/bin/vadduser abuse.yourdomain.com Test to see that SMTP-AUTH and TLS are working, should look like this: run: telnet localhost 25 [root@server ~]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 server.yourdomain.com - Welcome to Qmail Toaster Ver. 1.2 smtp Server ESMTP After connect enter: ehlo localhost ehlo localhost 250-server.yourdomain.com - Welcome to Qmail Toaster Ver. 1.2 smtp Server 250-STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 20971520 250 AUTH LOGIN PLAIN CRAM-MD5 Type quit to exit THINGS YOU SHOULD KNOW First, the MTA portion of QmailToaster seems to work fine. Remove the include statements, toaster.conf and squirrelmail.conf, I added to your /etc/apache2/httpd.conf. Add the paths to these conf files to the include statement in /etc/sysconfig/apache2. Set register_globals = On in /etc/php.ini. Do /etc/init.d/apache restart Go to http://www.yourdomain.com/admin-toaster/ using User Name: admin and Password: toaster Reset the password to one of your liking and close your web browser. Set register_globals = Off in /etc/php.ini and restart apache2 again. I will change the spec files to Not insert the include statements in /etc/apache2/httpd.conf and, instead, add the file paths to the include statement in /etc/sysconfig/apache2 with a little perl script. I also need to correct some file permissions and change the chown command in /usr/share/toaster/isoqlog/bin/cron.sh from apache:apache to wwwrun:www. As with SELinux, QmailToaster does not work with AppArmor installed. This is a bit of a ramble. I hope it helps you. If you have any ideas for me, I would appreciate hearing them. Regards, Nick Hemmesch nick@ndhsoft.com