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…

  • Anyone[*] want some pots and pans? :)

    Anyone[*] want any pots and pans? We have a whole lot of pots and pans that are perfectly usable, except that they don't work with induction stoves…

  • Now with ankle-spraining video!

    I predicted that there might be video of this on YouTube. I couldn't find it back then, but apparently the multi-talented J.C. Hutchins found video…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded