MSU Listserv


MSUNAG Archives

MSUNAG Archives


MSUNAG@LIST.MSU.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV at MSU

LISTSERV at MSU

MSUNAG Home

MSUNAG Home

MSUNAG  October 2009

MSUNAG October 2009

Subject:

Sender Policy Framework (SPF) and msu mail

From:

Stefan Ozminski <[log in to unmask]>

Reply-To:

Stefan Ozminski <[log in to unmask]>

Date:

Fri, 30 Oct 2009 16:33:06 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (104 lines)

I have a question for anyone that has used SPF in their DNS and email 
configuration on campus. (Stephen Bogdanski raised the issue May 2007)

Sender Policy Framework, formerly Sender Permitted From, is indirectly 
supported by Exchange Server 2003 Service Pack 2.  Exchange 2003 
supports the Sender ID Framework specified by Microsoft which has as one 
of its steps a lookup of the SPF entry in DNS for the domain of the 
sending server.  (note that Microsoft created conflicts and controversy 
by linking Sender ID to SPF).

At KBS we are using Imail from Ipswitch which supports SPF directly, but 
I know many departments on campus are using Exchange servers. 

We have many users that configure their email clients to retrieve mail 
from mail.msu.edu and send mail out through mail.msu.edu, but they set 
the From: as <user>@kbs.msu.edu.  So, if we implement SPF for our 
domain, we need to define an SPF record that permits mail.msu.edu hosts 
has the sending host.  A large percentage of the spam that we receive is 
from our own addresses, which unfortunately have been posted on an 
externally accessible web page for many years.  So, we can greatly 
improve identification of spam by implementing SPF for our own domain.

SPF has been enabled on our email server for several years, and it has 
not been well used, and it has not been a problem because we simply mark 
the headers.  It could be well used if we implement it for our own 
domain (spam tagging only at the server) and then create filters in 
email clients that check for @kbs.msu.edu in the From header and 
X-IMAIL-SPAM-SPF in the header section.

I found detailed infomation about SPF and tools for testing it at 
http://www.openspf.org including information about Sender Rewriting 
Scheme (SRS, which was mentioned by Ed Kryda in May 2007).  The issue 
with SRS is that the FROM: address is compared to the last smtp host 
through which the email msg was sent out.  In the case of a user sending 
the msg through mail.msu.edu with a From address of <user>@kbs.msu.edu, 
the From address has already been rewritten.

I have tested (briefly) the following SPF entry for DNS which is 
recorded as a TXT entry for kbs.msu.edu in our Windows Server 2003 DNS 
server which is not able to create an SPF record:

v=spf1 mx ip4:35.9.75.19/24 -all

The "mx" mechanism declares that the ip addresses associated with MX 
records for kbs.msu.edu are legitimate hosts for sending kbs.msu.edu 
mail.  And the ip4 mechanism (note the absence of the letter v) declares 
ipv4 addresses that are also legitimate hosts.  "-all" declares that all 
other hosts are not legitimate (?all returns a status of NEUTRAL like 
what an external host would be assigned if the domain had no SPF record).

This SPF record supports the case where a KBS user sends a msg through 
mail.msu.edu to a user at kbs.msu.edu or mail.msu.edu, and to a user 
that forwards their mail in one hop to MSU departmental server.  If the 
mail is forwarded to a departmental server, and forwarded again (i.e. a 
second hop) to another account inside or outside MSU, then the SPF will 
not match without SRS rewriting the From: address.  If the msg is 
forwarded from msu to gmail, and forwarded again, it will be the same 
problem without SRS.

Therefore, two caveats to implementing SPF for our domain are that we 
need to limit the set of hosts through which a user can send mail with 
@kbs.msu.edu in the From header, and that recipients of our mail can 
cause our mail to be marked with an SPF failure if they forward it in 
two hops or more through non-kbs-non-mail.msu.edu servers.

Has anyone else done some testing?

Has anyone found a better way to declare the mail.msu.edu servers?  
Would a:mail.msu.edu/24 work without a performance hit? (if there is 
only one A record to look up and apply the /24 mask to, it seems like it 
will be fast to me)  Has anyone convinced the MSU mail team to create a 
TXT v=spf1 record for the host _spf.msu.edu (referred to as a subdomain 
on the openspf.org site) which can be referenced as follows:

v=spf1 mx include:_spf.msu.edu -all

I used one of the Kitterman tools linked on the openspf.org site to 
check and did not find any SPF or _spf entries for msu.edu.

Note that some servers do not permit mail sent through them with a From 
address that is not part of their domain.  For example, I tried to test 
my SPF configuration by sending a msg through smtp.att.yahoo.com with a 
 From address of <user>@kbs.msu.edu, and the SMTP server rejected my 
message and I received a popup in Thunderbird telling me of the 
rejection with a specific reference to the From address.  I respect this 
restriction, and if I really wanted to influence someone to reply to a 
different address I would use the Reply-to header, which many mail 
clients respect, but some do not allow you to specify the Reply-to in 
your outgoing mail.

-Stefan

KBS Computer Services Helpdesk:
[log in to unmask]
269-671-2100 (from campus 199-2100)

Stefan Ozminski
Computer Services
W.K. Kellogg Biological Station
Michigan State University
3700 E. Gull Lake Dr.
Hickory Corners, MI  49060
Phone: 269-671-4427 (from campus 199-4427)
[log in to unmask]

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

December 2023
June 2023
May 2022
April 2022
March 2022
February 2022
December 2021
January 2019
August 2018
June 2018
May 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001

ATOM RSS1 RSS2



LIST.MSU.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager