DKIM for Postfix

After a fairly long and frustrating day, I finally have DKIM working with Postfix on Etch. I was assuming it would be fairly straighforward, but was treated to such lovely errors as these in my mail.log:

smtpd: warning: milter [...] can't read SMFIC_OPTNEG reply packet header: Connection timed out
smtpd: warning: milter [...] read error in initial handshake
cleanup: warning: milter [...] can't read SMFIC_EOH reply packet header: Success
smtpd: warning: milter [...] can't read SMFIC_MAIL reply packet header: Success
smtpd: warning: milter [...] can't read SMFIC_OPTNEG reply packet header: Connection timed out
smtpd: warning: milter [...] read error in initial handshake

To make a long story short, dkim-filter defaults to doing DNS lookups via TCP. It never even bothers trying UDP. I suppose that makes a certain amount of sense, seeing as it expects a relatively large response (the public key). However, my anti-spam domU didn't have a firewall rule permitting 53/tcp out, so dkim-filter kept timing out after initial startup and then died.

After making sure the firewall was letting lookups via tcp through, dkim on cafuego.net works dandy :-)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options