Monday, March 24, 2008

sid-milter and SMTP AUTH

I use sid-milter. It works well enough for what it does, but there is a stumbling block. I have my laptop set up for SMTP AUTH so that if I'm not at home, I can still send e-mail as long as I can reach my home mail server. My home domain has an SPF record that includes a "-all" clause in it so that if someone tries to joe-job me, at least those who look at SPF records won't get misled. The problem is that sid-milter doesn't seem to know to check to see if a message was sent with SMTP authentication. I get the Authentication-Result: header with all failures in it. That tends to look bad, even if a spam filter somewhere doesn't trigger on it and junk my e-mail.

Well, since I am out of town and it's happening to me, I decided to fix it. I got into the source of the sid-milter and added a check nearby the "ignore domain" list code. It checks to see if the message has the {auth_authen} macro set, and if it does, it does the same thing as if the "ignore domain" list check matched - it just accepts the message without doing anything.

Here's the patch:


--- sid-filter.c.orig 2006-07-20 15:28:09.000000000 -0700
+++ sid-filter.c 2008-03-24 15:55:00.000000000 -0700
@@ -1892,6 +1892,13 @@
return (testmode ? SMFIS_ACCEPT : SMFIS_REJECT);
}

+ char *auth_authen;
+ auth_authen = smfi_getsymval(ctx, "{auth_authen}");
+ if (auth_authen != NULL) {
+ /* User used SMTP auth. No problems */
+ return SMFIS_ACCEPT;
+ }
+
/* if the responsible domain is one we trust, just accept */
if (domains != NULL)
{


Oh, note that you must add define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}') to your sendmail.mc file.

Sunday, March 23, 2008

Still here

No, I'm not going to be one of those folks who abandons their blog. I just don't have anything interesting to post about of late. I've decided everybody is tired of me whining about bad beats and cold decks, and there really isn't anything interesting on the mac front.

I did get a chance to play the Thursday morning tournament at Bay 101 last week and came in 9th. I didn't have to rebuy, but I did buy the add-on, so that $80 turned into $170. w00t.

As soon as anything interesting happens, I'll post about it.

Monday, March 3, 2008

Hooray for Time Machine!


We were beset by thieves at the office this weekend. I had my company MacBook Pro on a Kensington lock, but the thieves rummaged through my drawers until he found the key. D'oh! They did, however, leave behind the Time Machine drive. Well, the IT staff replaced the laptop this morning, and with fingers and toes crossed, I booted up the Leopard install DVD and went into the Time Machine restore menu item. The entire process was completely painless. About two hours later, the machine rebooted just as if nothing had ever happened. I did lose the Windows XP virtual machine, but that was because I told time machine to ignore it. It's a 20 GB opaque file that changes every time I run Windows, and I figured that would take up all my time machine space. I don't regret the decision, though, because all I used Windows for at work was to run Outlook and TOAD, both of which simply need to be reinstalled on top of a fresh Windows installation.