qmail: A fast secure mail server
An optional pop3 daemon is included. Create the following run file in /var/qmail/service/pop3d if you want to start this daemon.
#!/bin/sh
exec env - PATH="/usr/local/bin:/var/qmail/bin" \
tcpserver -v 0 110 qmail-popup pop3.freeos.com \
/bin/checkpassword qmail-pop3d Maildir 2>&1
Replace pop3.freeos.com here with the fully qualified domain name of your pop host.
Sure! This one also has a run script in /var/qmail/service/pop3d/log/run
#!/bin/sh
exec env - PATH="/usr/local/bin" \
setuidgid qmaill multilog t /var/log/qmail/pop3d
The setup of qmail is done and now it is time to get rid of your old mail
server, generally sendmail.
If you are running Red Hat then use the ntsysv tool to turn off sendmail
startup at boot. ( Works in Mandrake too ). In SuSE edit rc.config and
look for a line smtp=yes and change that to smtp=no.
Shutdown sendmail.
/etc/rc.d/init.d/sendmail stop
Make sendmail non-executable
chmod 0 /usr/lib/sendmail
chmod 0 /usr/sbin/sendmail
Move sendmail out of the way
mv /usr/lib/sendmail /usr/lib/sendmail.bak
mv /usr/sbin/sendmail /usr/sbin/sendmail.bak
Doing the above provides you with a backup. If qmail does not work for
some reason then you can just reverse the steps given above to get back to
your old configuration.
If you are feeling confident then you can simply delete sendmail. On rpm
based systems rpm -e sendmail should get rid of sendmail. rpm will
probably give dire warnings about other apps that are need a mail
daemon. Simply use rpm -e --nodeps sendmail to get rid of it.
qmail provides a sendmail wrapper for programs that still lean on sendmail
for support. This is a good idea so make sure you create the symlinks.
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
Time to check out qmail.
svscan /var/qmail/service
If you get a stream of error message, press control-C and you will be back
at the prompt. Retrace your steps and see where you went wrong.
If everything went well then you can start qmail for keeps with
svscan /var/qmail/service &
Add the following line to you boot scripts so qmail is started at boot.
exec env - PATH="/usr/local/bin:/usr/bin" \
svscan /var/qmail/service &
Do ps ax | grep qmail
You should see a supervise process running as well as tcpserver and
multilog. Given below is what I got.
- « first
- ‹ previous
- of 6
- next ›
- last »