Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

"Hmm," trochee thought. "What's the longest character name in Unicode?"
(In a Perl one-liner, no less.)



Now that I'm no longer on campus I had to reconfigure my offline mail setup to not use the school's SMTP server. I forwarded a port over SSH and tried to reconfigure masqmail, only to have it just chug away at my disk when I tried to have it send its queue. I verified the connections: the forward connected localhost:30025 to mailserver:25, and I had set mail_host=localhost:30025... After a bit of poking around, I sat back and thought about how it could get into a loop, and then it dawned on me: masqmail was pushing its queue into localhost:25—that is, itself! Apparently their lame config parser doesn't require quotes around the parameters, yet was silently dropping the part after the colon and using the implicit port 25 on the bare hostname. Sticking quotes around localhost:30025 made everything work as expected.

There's a lesson in this somewhere, but I'm not sure what it is. I hate computers.
Subscribe

  • your vcs sucks

    I've been hacking on some Haskell stuff lately that's all managed in darcs and it's reminded me of an observation I made over two years ago now (see…

  • ghc llvm

    I read this thesis on an LLVM backend for GHC, primarily because I was curious to learn more about GHC internals. The thesis serves well as an…

  • found my bug!

    Not too interesting, but this has been bugging me for a week. Been working on a toy program that proxies a TCP connection. It was working fine for…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 2 comments