Stephen Jacob (mavjop) wrote,
Stephen Jacob

  • Location:
  • Mood:

Battling the sendmail beast!

So, I have a domain (ok, so that's not the real name :) and I wanted to do forwarding such that I point an MX record for at a box, and make sendmail on that box forward ->, ->, and * ->

Through a process of searching the web, fiddling with config files, restarting sendmail many times, and sending a passel of test e-mails, I finally got it. Since I will never remember all the crazy junk I had to do, I had better relate it here (oh, and this is on Fedora Core 4)...
  1. Add lines to /etc/mail/virtusertable, e.g.:
  2. Make sendmail actually listen on more than loopback, by editing /etc/mail/ to remove the loopback address restriction:
            dnl #ORIGINAL# DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl
            DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
  3. Open a hole in the firewall for SMTP!

      (Fedora: system-config-firewall, and check "SMTP", then save)

  4. Add the file /etc/mail/local-host-names with a line (or add the line):
  5. Restart sendmail:
            > sudo service sendmail restart
You don't have to do any manual step to generate the .db versions of any of the files mentioned above, as they will be regenerated when you restart sendmail.

So, well, hopefully I haven't done anything stupid and turned my machine into an open relay or any such denseness!
Tags: geeky, useful

  • Mavericks Gripes: Solutions, anyone?

    I have found two great annoyances with Mavericks (latest OS X release) in the past 2 days: (1) There is NO. WAY. to get a menu bar item displaying…

  • Blue Bottle Coffee - AGLAGLAGL

    After feasting on delicious Smitten ice cream and stopping in to Miette on a recommendation of several chefs (no small recommendation, but we have…

  • Smitten Ice Cream, San Francisco - Delicious!

    Today, we drove to San Francisco, met up with some folks from Grubly and tried Smitten ice cream from their brand new store (? stand? kiosk?) in…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded