Date: Tue, 12 Nov 2002 07:33:31 -0800 From: Joe Kelsey <joek@mail.flyingcroc.net> To: mark@imptech.net, freebsd-ports@FreeBSD.org Subject: Qmail setup Message-ID: <3DD11F4B.2030401@mail.flyingcroc.net>
next in thread | raw e-mail | index | archive | help
Qmail is not a trivial installation. The Qmail port does not set up the control files, that is up to you to do. You have to verify that /var/qmail/control/ contains the correct files with the correct contents. I recommend that if you are installing qmail, just bite the bullet and install ucspi-tcp and daemontools also. You should also throw out inetd. I have several different ways of running qmail. The simplest is on my workstation at work, a bare-bones installation simply to forward mail to the main work server. I long ago changed /etc/rc.conf to contain at least the following two lines: sendmail_enable="NONE" inetd_enable="NO" I recommend that you never run inetd again. It is almost as buggy as sendmail. Also, /etc/make.conf contains: NO_SENDMAIL=true Start by going to the port and typing cd /usr/ports/mail/qmail make enable-qmail /usr/local/etc/rc.d/qmail.sh from the port installation. /var/qmail/control/: (for spam control I am using "xyzzy" as the hostname....) locals contains whatever names you want to be treated as local. My file contains two entries, "localhost.xyzzy.com" and "zircon.staff.xyzzy.net". (Of course, on separate lines without the quotes.) me contains the local host name, in my case "zircon.staff.xyzzy.net". plusdomain constains whatever you want added to outgoing main without a domain name. In my case it is "xyzzy.net". rctphosts contains the name to match incoming mail against. I do not expect to receive any mail at my workstation (all mail is delivered elsewhere), so it doesn't really matter what is in here. It contains "localhost.flyingcroc.com" to make sure that redirected root mail stays here. smtprouts contains the host to forward all outgoing mail through. In my case it is "mail.xyzzy.net". /var/qmail/aliases/ must contain aliases for at least root, postmaster and mailer-daemon. Do this by creating identical files called .qmail-root, .qmail-postmaster, and .qmail-mailer-daemon in this directory containing the name you wish to have the mail forwarded to, in my case joek@mail.xyzzy.net. The setup for a true server is somewhat more complex. The best thing to do is to visit Dan's web pages at http::/cr.yp.to/ and read everything there. (It won't really take that much time.) If you want to see the configuration for my home machine, I can write that later. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD11F4B.2030401>