Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
This section describes my upgrade of sendmail
from version 8.8.8 to version 8.9.2. The main reason for the upgrade was to obtain
the anti-relay mechanism which is in place by default and to the new and improved
anti-spam rules which are available.
Here's what I did to install the new sendmail:
fetch -p ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.9.2.tar.gz
tar -xvf sendmail.8.9.2.tar
sendmail normally runs all the time. Here's what I have in /etc/rc.conf
which starts sendmail after every boot:
[root@ns:/var/log] # grep sendmail /etc/rc.conf
sendmail_enable="YES" # Run the sendmail daemon (or NO).
sendmail_flags="-bd -q30m" # -bd is pretty mandatory.
The first thing I did was go through the README file in the main directory. In
there I found some settings which should be made:
/usr/sbin/sendmail -v -bi
Warning: .cf file is out of date: sendmail 8.9.2 supports version 8,
.cf file is version 7
/etc/aliases: 24 aliases, longest 10 bytes, 248 bytes total
Ahuh, time to upgrade the sendmail file. If you're ever looked at mail
headers, you'll see something like (8.9.2/8.8.8). The first numbers represent the
version of sendmail. The second numbers are the version of /etc/sendmail.cf.
Please note that you must start sendmail with the full path name (i.e. /usr/sbin/sendmail),
otherwise killall will not work and you'll get a message like this in your mail
[21:26] <Phaded> Feb 10 19:26:02 ns sendmail: could not restart:
need full path
When sendmail starts up, it reads /etc/sendmail.cf. You can
either create a new sendmail.cf or have one generated for you. I chose to generate
one from a .mc file I was given. Instead I could have used cf/cf/generic-bsd4.4.cf
from within the port directory (/usr/ports/mail/sendmail).
To create the
file, I issued the following commands from the above mentioned directory:
Please note that hendrix.mc was last
upgraded on 31 January 1999 to correct errors and ommissions in the original file. I
apologise for the error. I also wish to thank Greg Shapiro of sendmail.org for
bringing this to my attention and providing assistance in amending the file.
This time I used the following command to start sendmail:
# sendmail -bd -q15m
451 /etc/sendmail.cf: line 66: fileclass: cannot open /etc/sendmail.cw: No such file or
Then I did a touch /etc/sendmail.cw to create the file and restarted sendmail.