This one was a hard one to track down. Eventually, you'll need to get into it, so it may as well be now. One note of caution: The file here will filter like crazy.

This is what I used:
  1. The -stable kernel sources (obtained through cvsup)
  2. Sendmail 8.8.8 (it comes with the -stable kernel sources, also offers good Hylafax support)
  3. Hylafax-4.01 (on the 2.2.5 CD, this program allows you to fax out)
  4. Makefile,, newcfg (put in /usr/src/usr.sbin/sendmail/cf/cf)
  5. (put in /usr/src/usr.sbin/sendmail/cf/domain)


Sendmail 8.8.8 is now available. I started out trying to get it to work by modifying my /etc/ file. After many many tries, one suggestion was to configure the file by using the "m4" method. I'd recommend that method also. It makes changes much easier. It puts the "rule sets" where they need to be. Tabs are done correctly (very important). If you use spaces, some options will not work correctly. Items 4 & 5 should help there. Please make sure to backup your /etc/ file in case your situation is very different from my system. I basically took the .cf file that was the more complex one so that it would have "everything."

-stable kernel sources using cvsup stable-supfile

This is in your /usr/share/examples/cvsup directory. Install cvsup, then find the stable-supfile. If you like, here's the stable-supfile and updatesrc script that I use. Run it from the /usr/src directory. This will bring down the sendmail sources, the M4 files, and as a bonus, the latest kernel sources.


Chapter 32 in The Complete FreeBSD by Greg Lehey does a pretty good job of showing you how to do it. If it's not available, the shortcut is to run "faxsetup". vgetty is for voice mail. egetty determines the type of the call. Something that isn't obvious is when it asks you for the serial port to configure (cuaa0 is com1, cuaa1 is com2, etc). Don't forget to install the fonts it asks for.

Faxstat tells you what the current status of your fax system is.

M4 and building the Email to Fax option

Newcfg is the script to compile the M4 and mc files into the file. I can't remember that complicated line, and it saves me time. Once the line MAILER(fax) is in the "" file, everything worked fine. To send a fax via email, type and email as follows: user@number.FAX

user = the person's name
number = the fax number as it needs to be dialed (ie, 9351748)
ie, ken@9351748.FAX will relay your email message to ken's fax which is at 9351748.


It's native in Sendmail 8.8.8. Another reason to get it. Hand coding that much code is a pain. Doing it the M4 way makes it easy to add this option. Most of the supporting files it needs goes into the /etc/mail directory (ips.txt and domains.txt). These two files get ftp'd when you run the makefile. It will also create the denyip.db and the spamsites.db databases. Check the /etc/mail/README file for more details.