CINXE.COM

LISTSERV at Work - Issue 3, 2006 (American Edition)

<html> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("http://web.archive.org/web"); __wm.wombat("https://www.lsoft.com/news/techtipLSV-issue3-2006-us.asp","20240331014108","http://web.archive.org/","web","/_static/", "1711849268"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <title>LISTSERV at Work - Issue 3, 2006 (American Edition)</title> <style type="text/css"> <!-- p.head { font-family: verdana, arial, helvetica, sans-serif; font-size:14px; font-weight:bold; color: #000000 } p.head A { font-family: verdana, arial, helvetica, sans-serif; font-size:14px; font-weight:bold; color: #000000; text-decoration: none } p.body { font-family: verdana, arial, helvetica, sans-serif; font-size:13px; color: #000000 } p.body A { font-family: verdana, arial, helvetica, sans-serif; font-size:13px; font-weight:bold; color: #cc6600; text-decoration: none } li.body { font-family: verdana, arial, helvetica, sans-serif; font-size:13px; color: #000000 } li.body A { font-family: verdana, arial, helvetica, sans-serif; font-size:13px; font-weight:bold; color: #cc6600; text-decoration: none } --> </style> </head> <body> <table width="620" cellpadding="0" cellspacing="0" border="0" style="border:1px solid #CC6600"> <tr> <td><a href="issue3-2006-us.asp"><img src="/web/20240331014108im_/https://www.lsoft.com/news/issue3-2006/header-us.jpg" alt="LISTSERV at Work" border="0"></a></td> </tr> <tr> <td><a href="n-about.asp"><img src="/web/20240331014108im_/https://www.lsoft.com/news/issue3-2006/about.gif" alt="About" border="0"></a><a href="n-subscribe.asp"><img src="/web/20240331014108im_/https://www.lsoft.com/news/issue3-2006/subscription.gif" alt="Subscription" border="0"></a><a href="n-archives.asp"><img src="/web/20240331014108im_/https://www.lsoft.com/news/issue3-2006/archives.gif" alt="Archives" border="0"></a><a href="n-contact.asp"><img src="/web/20240331014108im_/https://www.lsoft.com/news/issue3-2006/contact.gif" alt="Contact Us" border="0"></a></td> </tr> <tr> <td bgcolor="#ffffff"> <table width="100%" cellpadding="10" cellspacing="0" border="0"> <tr> <td valign="top"> <p class="head">Tech Tip (LISTSERV) &ndash; Issue 3 &ndash; 2006</p> <p class="body"><b>Q: How can I use SPF and DomainKeys to increase LISTSERV's deliverability?</b></p> <p class="body"><b>Answer by Liam Kelly<br/>Senior Consulting Analyst, L-Soft</b></p> <p class="body">As anti-spam and anti-phishing filters tighten, deliverability has increasingly become an issue for mailing list administrators. Fortunately, there are steps that administrators can take to authenticate and protect their organizational identities. Once the email is authenticated and the source verified, then recipients can better determine whether the source is trusted or not.</p> <p class="body">The two most common tools for authenticating email are SPF (Sender Policy Framework) and DomainKeys <a href="#1">[1]</a>. This Tech Tip will discuss the usage of LISTSERV with each. It is not meant to be an exhaustive document about SPF or DomainKeys but is meant as an introduction to how LISTSERV integrates with the two.</p> <p class="head">SPF (Sender Policy Framework)</p> <p class="body">The current version of SPF (version one) works by checking the domain name of the sender of a message against the list of servers authorized to send email on behalf of that domain (the SPF record). If the sending server is listed as authorized to send on behalf of that user, the SPF record matches, and the recipient can be reasonably confident that the Return-Path is valid and that the message origin is what it claims to be. Otherwise, the match fails and the receiving server may decide whether to reject the message or flag it as suspicious. Because LISTSERV discussion list messages generally get sent with a MAIL FROM of "owner-listname@...", there should be no need to configure LISTSERV to do anything differently in order to use SPF for outbound email. <a href="#2">[2]</a></p> <p class="body">SPF configuration for the sending domain is done entirely in the public DNS server. First, make an inventory of all servers that send outbound email for your domain, including all servers specified as SMTP_FORWARD hosts in your LISTSERV configuration. Once you have an exhaustive list, the next step is to create the SPF record in your public DNS server. The SPF record is a specially formatted TXT record that lists the servers authorized to send mail for your domain. The easiest way to create the record format is to use an SPF wizard (like the one found at <a href="http://web.archive.org/web/20240331014108/http://www.openspf.org/wizard.html" target="_blank">www.openspf.org/wizard.html</a>). Once you've got your TXT record format, install it in your public DNS server. A sample SPF record might look as follows:</p> <tt>lsoft.com. 604800 IN TXT "v=spf1 ip4:209.119.0.0/23 ip4:212.247.25.0/25 ip4:67.94.7.0/24 ip4:62.225.15.98 ptr:lsoft.com ptr:lsoft.se ?all"</tt> <p class="body">For additional information about SPF record creation, see <a href="http://web.archive.org/web/20240331014108/http://www.openspf.org/" target="_blank">www.openspf.org</a>.</p> <p class="head">DomainKeys</p> <p class="body">While SPF checks the envelope's MAIL FROM address, DomainKeys checks a digital signature of the message body itself (including important headers). LISTSERV 14.5 and later can be configured to digitally sign messages that it distributes. Like SPF, DomainKeys requires changes to your DNS; unlike SPF, it also requires some configuration of LISTSERV. To use DomainKeys with LISTSERV, you must create a digital key pair, configure your DNS to use the public key, and then configure LISTSERV to use the private key. Each step is detailed below:</p> <p class="body"><b>1. Create the public and private key pair</b></p> <p class="body">DomainKeys uses a standard cryptographic key pair, consisting of a private and a public key. The sender signs the message using the private key, and the recipient checks the signature against the public key to verify the identity of the sender. A detailed discussion of cryptographic keys is beyond the scope of this document, but the private key should be a 768-bit RSA key <a href="#3">[3]</a>. The public key should be derived from the private key in PEM format. (On Linux/UNIX, openssl is the standard tool for creating such keys. On Windows, there is no standard tool, but any application that can create a 768-bit RSA key pair may be used. L-Soft has used the Windows port of openssl successfully. It is available for download at <a href="http://web.archive.org/web/20240331014108/http://gnuwin32.sourceforge.net/packages/openssl.htm" target="_blank">gnuwin32.sourceforge.net/packages/openssl.htm</a> and the openssl syntax for creating the key pair is accessible online at <a href="http://web.archive.org/web/20240331014108/http://domainkeys.sourceforge.net/keygen.html" target="_blank">domainkeys.sourceforge.net/keygen.html</a>.)</p> <p class="body"><b>2. Install the public key in DNS</b></p> <p class="body">Once you have a key pair, the next step is to install the public key in your DNS server. (The details of the DNS configuration for individual DNS servers are beyond the scope of this document; please consult your DNS vendor to make sure that your DNS server supports the TXT records necessary for DomainKeys.) There are two relevant types of entries for DomainKeys: the policy record and the selector record. The policy record is a TXT record that tells receiving domains your DomainKeys signing policy <a href="#4">[4]</a>, and the selector record contains the public key against which to verify. The selector record entry should be a TXT entry containing the PEM key with line breaks removed. So the actual DNS entry might look something like:</p> <tt>sample._domainkey IN TXT "k=rsa; p=MHwwDQYJKoZI....ADawAwaAJhAKJ2lzDAQAB;"</tt> <p class="body">If the above were a DNS entry for example.org, then signing a message and specifying a selector of "sample" would tell the receiving server to look up the public key for sample._domainkey.example.org to compare it against the signed message.</p> <p class="body"><b>3. Supply the private key to LISTSERV</b></p> <p class="body">Install the private key in LISTSERV's main or home directory (the directory containing the *.list files). If you have only one private DomainKeys key (as will be the case for most sites), create a file called "default.dkim". The file should contain the domain and selector names, as well as the private key. The format is as follows:</p> <tt>d=example.com; s=sample<br/> -----BEGIN RSA PRIVATE KEY-----<br/> MIIBywIBAAJhAM5MtvnHlLhPzQjitdBctkJTRbJ/YkbGzcxHP701mHrlMdVeTI3M<br/> (...)<br/> QJEE65afJ4PS8yqM10hZ0p2euKrVZGgUDDdLzgPo2w==<br/> -----END RSA PRIVATE KEY-----</tt> <p class="body">In default.dkim, the "d" parameter is the domain hosting the policy record (in this case, "example.com"), and the "s" parameter is the selector name ("sample") that contains the public key.</p> <p class="body"><b>4. Configure LISTSERV to sign for domains</b></p> <p class="body">Next, we need to tell LISTSERV for what domains it should sign messages. Add a DKIM_SIGN setting to your LISTSERV site configuration file (SITE.CFG or go.user). For example, if we were willing to sign for example.org and all *.example.org subdomains:</p> <tt>VM: DKIM_SIGN = 'EXAMPLE.ORG *.EXAMPLE.ORG'<br/> VMS: DKIM_SIGN "EXAMPLE.ORG *.EXAMPLE.ORG"<br/> UNIX: DKIM_SIGN="EXAMPLE.ORG *.EXAMPLE.ORG"<br/> export DKIM_SIGN<br/> Windows: DKIM_SIGN=EXAMPLE.ORG *.EXAMPLE.ORG</tt> <p class="body">After editing the site configuration, restart LISTSERV. At restart, the LISTSERV log should contain an entry something like the following:</p> <tt>11 Oct 2006 12:20:12 Loading DomainKeys private keys...<br/> 11 Oct 2006 12:20:12 -&gt; Loaded DEFAULT (d=EXAMPLE.ORG; s=SAMPLE; RSA-768)<br/> 11 Oct 2006 12:20:12 DomainKeys support enabled</tt> <p class="body">Once you've enabled DomainKeys in LISTSERV, LISTSERV will sign all outbound mailing list messages for which it has a suitable private key, including administrative messages, welcome messages, etc. If you want LISTSERV to also sign list postings from senders outside your own domain, add "Sender=List" in the list configuration, so that the Sender header address of list postings will contain a domain for which LISTSERV is able to sign <a href="#5">[5]</a>. To disable DomainKeys signing for a particular list, set "Misc-Options= NO_DKIM_SIGNATURE" in the list configuration.</p> <p class="body">To have LISTSERV also sign non-list-specific administrative messages, set the DKIM_SIGN_ALL parameter in LISTSERV's site configuration:</p> <tt>VM: DKIM_SIGN_ALL = 1<br/> VMS: DKIM_SIGN_ALL "1"<br/> UNIX: DKIM_SIGN_ALL=1<br/> export DKIM_SIGN_ALL<br/> Windows: DKIM_SIGN_ALL=1</tt> <p class="head">Conclusion</p> <p class="body">SPF and DomainKeys are relatively new technologies that promise enormous benefit in the fight against fraudulent email. However, publishing SPF records is quickly becoming standard Internet practice, and many major Internet Service Providers already verify SPF records as part of their inbound email filtering. Publishing SPF records in your DNS can, therefore, benefit the deliverability of your LISTSERV mail immediately. DomainKeys usage is not as prevalent yet but is gaining ground. Signing LISTSERV messages with DomainKeys most likely offers only limited deliverability increases today, but those benefits should increase as DomainKeys becomes more widespread.</p> <p class="body">For additional information about SPF, DomainKeys and using the two with LISTSERV, see the <a href="#ref">References</a> section below.</p> <p class="head">Notes</p> <p class="body"><a name="1">[1]</a> For the purposes of this document, examples will focus on SPF and DKIM implementations. While SenderID/SIDF (developed by Microsoft) and DKIM (DomainKeys Identified Mail) exist as alternatives to SPF and DomainKeys (respectively), the function and syntax are nearly identical to the examples given and may be treated as such for LISTSERV's purposes.</p> <p class="body"><a name="2">[2]</a> Note that SPF version one checks the envelope (RFC 2821) MAIL FROM (and in some cases the HELO/EHLO domain), not the (RFC 822) message body From: line. Microsoft's SenderID (SIDF) implementation does not adhere to the same process; it looks first for a Sender: header and then a From: line in the message body before falling back to the SPF-style RFC 2821 implementation. This means that for optimal delivery to sites using Microsoft's SIDF implementation, it may be necessary to configure your discussion lists with "Sender=List" so that the From: line of the message does not trigger false positives in the SIDF anti-spoofing algorithm.</p> <p class="body"><a name="3">[3]</a> See <a href="http://web.archive.org/web/20240331014108/http://domainkeys.sourceforge.net/keygen.html" target="_blank">domainkeys.sourceforge.net/keygen.html</a> for more details about creating the key pair.</p> <p class="body"><a name="4">[4]</a> Creating the policy record is beyond the scope of this document, but see <a href="http://web.archive.org/web/20240331014108/http://dkim.org/specs/draft-allman-dkim-base-01.html" target="_blank">dkim.org/specs/draft-allman-dkim-base-01.html</a> for details.</p> <p class="body"><a name="5">[5]</a> Use this option with caution: in so doing you assume implicit responsibility for the messages that LISTSERV signs, including any spam that may come through a poorly configured or poorly moderated discussion list. Digitally signing and redistributing spam email through your discussion list is sure to cause trouble for your domain!</p> <a name="ref"></a> <p class="head">References</p> <p class="body"><a href="http://web.archive.org/web/20240331014108/http://www.lsoft.com/manuals/1.8e/LISTSERV-DKIM-config.html" target="_blank">www.lsoft.com/manuals/1.8e/LISTSERV-DKIM-config.html</a><br/> <a href="http://web.archive.org/web/20240331014108/http://www.openspf.org/" target="_blank">www.openspf.org/</a><br/> <a href="http://web.archive.org/web/20240331014108/http://antispam.yahoo.com/domainkeys" target="_blank">antispam.yahoo.com/domainkeys</a><br/> <a href="http://web.archive.org/web/20240331014108/http://domainkeys.sourceforge.net/" target="_blank">domainkeys.sourceforge.net</a><br/> <a href="http://web.archive.org/web/20240331014108/http://en.wikipedia.org/wiki/DomainKeys" target="_blank">en.wikipedia.org/wiki/DomainKeys</a><br/> <a href="http://web.archive.org/web/20240331014108/http://en.wikipedia.org/wiki/Sender_Policy_Framework" target="_blank">en.wikipedia.org/wiki/Sender_Policy_Framework</a><br/> <a href="http://web.archive.org/web/20240331014108/http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a><br/> <a href="http://web.archive.org/web/20240331014108/http://www.openssl.org/" target="_blank">www.openssl.org/</a><br/> <a href="http://web.archive.org/web/20240331014108/http://dkim.org/specs/draft-allman-dkim-base-01.html" target="_blank">dkim.org/specs/draft-allman-dkim-base-01.html</a></p></td> </tr> </table></td> </tr> <tr> <td><a href="/web/20240331014108/https://www.lsoft.com/"><img src="/web/20240331014108im_/https://www.lsoft.com/news/issue3-2006/footer-us.jpg" alt="Copyright 2006 L-Soft" border="0"></a></td> </tr> </table> <script async src="http://web.archive.org/web/20240331014108js_/https://www.googletagmanager.com/gtag/js?id=UA-3167554-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-3167554-2'); </script> </body> </html><!-- FILE ARCHIVED ON 01:41:08 Mar 31, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 22:52:16 Nov 25, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.729 exclusion.robots: 0.036 exclusion.robots.policy: 0.023 esindex: 0.013 cdx.remote: 12.484 LoadShardBlock: 124.903 (3) PetaboxLoader3.datanode: 145.695 (5) PetaboxLoader3.resolve: 252.982 (2) load_resource: 315.662 loaddict: 48.727 -->

Pages: 1 2 3 4 5 6 7 8 9 10