OpenSUSE 11.0 QmailToaster Install
From Qmailtoaster
Contents |
Install the openSUSE 11.0
Yes, of course we firstly have to install the openSUSE 11 before we can install QMAIL-Toaster :)
Since you clicked this link, I assume that you know how to install openSUSE 11.0. In case that you forgot, just insert the DVD, boot, select "Installation", and follow the instruction. To save your computer resource, you can select the "text mode/minimal server" installation only.
In my computer, text mode installation is only took about 10 minutes.
Thank you to openSUSE Developer.
Network Setting
As ussual, go to YaST --> Network Devices, select your network card, and set your STATIC IP Address.
YOU (Yast Online Update) Configuration
Once again,go to YaST, select Online Update Configuration, and click "Next" until it is finished. As simple as that.
Running YOU
Login as root, and type "you" then press [enter].
This step is needed to make us sure that our openSUSE is up to date, and all security hole is patched.
Install the dependencies
With OpenSuSE 11 zypper was pushed more to the forefront. You can install dependencies required for qmailtoaster via the following command:
zypper install apache2 apache2-worker apache2-mod_php5 apache2-example-pages autoconf automake bind build compat-readline4 libcurl-devel libgnomedb-devel wireshark expect findutils-locate flex gcc gcc-c++ gcc-info gdbm-devel krb5-devel krpmbuilder libidn-devel libmcrypt mrtg libmysqlclient-devel mysql openssh-askpass patch php5-devel php5-ldap php5-mysql php5-pear rpm-devel rpm-python SDL_perl perl-Archive-Tar perl-Archive-Zip perl-CGI-Application perl-DBD-mysql perl-DateManip perl-Digest-HMAC perl-HTML-Tree perl-IO-Socket-SSL perl-IO-Zlib perl-MIME-Types perl-Net-DNS perl-Time-modules perl-XML-DOM perl-gettext quota zlib zlib-devel perl-YAML make gmp-32bit
Download qmail-toaster
Use your browser (you can use w3m if you want), and go to http://www.qmailtoaster.org/, and download all needed software.
To make our live easier, we can download the download script: http://www.qmailtoaster.com/info/current-download-script.sh Once downloaded, just run the script to download all needed files.
Since we are using openSUSE, it is good to also download the corespondent files in http://www.qmailtoaster.org/suse/sus101/
EZ-QmailToaster-SuSE-10.1.txt
mysql-setup.sh
qmailmrtg-upgrade-fix.sh
sus101-deps.sh
sus101-install-script.sh
sus101-perl.sh
Prepare MySQL
Let us prepare the mysql by running the mysql-setup.sh. Before doing that, it is nice to change the default password by editing the mysql-setup.sh script itself.
Prepare perl
Next step is to prepare perl. Just execute the sus101-perl.sh script. It will take some time.
Uninstall postfix
We will install QMAIL, so it is now the to uninstall the existing MTA. In openSUSE, the default MTA is Postfix. Just uninstall it by typing this command: rpm -e postfix --nodeps.
Install QMAIL-Toaster
Finally, we will instal the QMAIL-Toaster.
Execute the script sus101-install-script.sh
Watch your screen.
In my computer, SIMSCAN is failed to installed with the following error:
make[2]: Entering directory `/usr/src/packages/BUILD/simscan-1.3.1' gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -Wall -c `test -f 'simscan.c' || echo './'`simscan.c simscan.c: In function ‘main’: simscan.c:802: warning: missing sentinel in function call simscan.c:307: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result simscan.c:411: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result simscan.c:598: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result simscan.c:681: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result simscan.c:739: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result simscan.c: In function ‘check_spam’: simscan.c:1376: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result simscan.c: In function ‘check_remote_host’: simscan.c:2414: warning: pointer targets in passing argument 1 of ‘strcasecmp’ differ in signedness simscan.c: In function ‘per_domain_lookup’: simscan.c:1780: warning: ‘val’ may be used uninitialized in this function gcc -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -Wall -o simscan simscan.o cdb/cdb.a cdb/buffer.a cdb/unix.a cdb/byte.a cdb/alloc.a gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -Wall -c `test -f 'simscanmk.c' || echo './'`simscanmk.c In function ‘open’, inlined from ‘make_cdb’ at simscanmk.c:379: /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments In function ‘open’, inlined from ‘make_version_cdb’ at simscanmk.c:133: /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments make[2]: *** [simscanmk.o] Error 1 make[2]: Leaving directory `/usr/src/packages/BUILD/simscan-1.3.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/simscan-1.3.1' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.4976 (%build)
If anybody out there can help me, please help me to solve it, so this wiki will be more usefull.
Ok. Even SIMSCAN is failed to installed, lets just start the QMAIL.
Firstly, create the database:
/etc/init.d/qmail cdb
Then, run the QMAIL itself:
/etc/init.d/qmail start
Oops, there is some temporary failure, because this is the first time we start it.
Just stop it
/etc/init.d/qmail stop
And run it again.
/etc/init.d/qmail start
Nice. The QMAIL-Toaster is running now.
Is it working well?
Oops, there is still one last error.
The Domain Key is error.
We can simply disable it by typing these commands:
cd /var/qmail/bin
mv qmail-queue qmail-queue-asli
ln -s qmail-queue.orig qmail-queue
than restart QMAIL once more time:
Yess... at least, it is working.
By following above 10 steps, the QMAIl-Toaster installation is finished. Have a nice day.
Using QMAIL-Toaster
QMAIL-Toaster is now installed and running.
The time is come to create all our domains and users.
Just go to http://your.ip.add.ress/admin-toaster, and everything you need is there.
The default user is "admin" and the default password is "toaster". Once you can get in, please change the password.
We can also create the domain using command line:
/home/vpopmail/bin/vadddomain mydomain.com
And enter the postmaster password while asked.
To create user using command line:
/home/vpopmail/bin/vadduser user@domain
And enter the user password while asked.
The postmaster of the domain can login to qmailadmin to create more user, alias, mailing list, etc by login to http://ip.ser.ver/qmailadmin/
In my installation, there is still two things failed to installed:
* Simscan
* Domain Key
If anybody out there can help, please let me know how to solve it, so this wiki will be more usefull.
The Bahasa Indonesia version of this page is available in http://adi.internux.co.id/node/21