spf-discuss
[Top] [All Lists]

new tinydns macros

2003-11-28 16:40:38
On Fri, Nov 28, 2003 at 06:37:50PM -0500, Meng Weng Wong wrote:
| 
| Could people please try generating new-style records by hand?  If this
| is too difficult I will bring Mail::SPF::Publish up to date.
| 

These macros may be helpful to people who manage their tinydns files
using m4.

  define(SPF_TTL,      600)dnl

  changequote([[[, ]]])dnl
  define(spf_prefix_with_quote, [[['$1]]])dnl
  changequote(`, ')dnl

  define(SPF_MX, `ifelse($#, 0, `mx', `mx\072$1')')dnl
  define(SPF_A,  `ifelse($#, 0, `a',   `a\072$1')')dnl
  define(SPF_RECORD, `spf_prefix_with_quote($1:v=spf1 shift($@)):SPF_TTL()')
  define(SPF_SOFTFAIL, `~all')
  define(SPF_FAIL,     `-all')
  define(SPF_REDIRECT, `SPF_RECORD($1, redirect=$2)')dnl

This is how I use the macros.

  SPF_REDIRECT(onepost.net, pobox.com)
  SPF_REDIRECT(permanentmail.com, pobox.com)
  SPF_REDIRECT(lifetimeaddress.com, pobox.com)

  SPF_RECORD(pobox.com, SPF_MX SPF_MX(fallback-relay.pobox.com) 
SPF_A(emerald.pobox.com) SPF_SOFTFAIL)

-------
Sender Permitted From: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
Latest draft at http://spf.pobox.com/draft-mengwong-spf-02.6.txt
To unsubscribe, change your address, or temporarily deactivate your 
subscription, 
please go to 
http://v2.listbox.com/member/?listname(_at_)©#«Mo\¯HÝÜîU;±¤Ö¤Íµø?¡


<Prev in Thread] Current Thread [Next in Thread>
  • new tinydns macros, Meng Weng Wong <=