¸¶¹ý»ç¿Í ¹ß¼ÛÀÎ Á¤Ã¥ ±¸¼º (SPF) ¿µ¿ª DNS TXT ±â·ÏÀ» ¼³Ä¡Çϰí âÁ¶ÇÏ´Â ¹æ¹ý

SPF (¹ß¼ÛÀÎ Á¤Ã¥ ±¸¼º)´Â aÀ̴٠ǥÁØ Àú°ÍÀº µ¹·Áº¸³» °æ·Î ½ºÆÔ ¸Þ½ÃÁö¿¡¼­ Àú »ó¿ëµÈ ¿ìÆí¹° ºÀÅõ SMTP ¿ìÆí¹°¿¡ ÀÖ´Â À§Á¶Ç߰ųª ¼Ó¤¤ ¹ß¼ÛÀÎ À̸ÞÀÏ ÁÖ¼Ò¸¦¿¡¼­ ¸ØÃß°í »èÁ¦Çϱâ À§ÇÏ¿© âÁ¶µÇ¾ú´Ù. SPF´Â ´Ü¼ø ÀüÀÚ¿ìÆí Àü¼Û ÇÁ·ÎÅäÄÝ (SMTP)¿¡ ¿¬ÀåÀ¸·Î ÀÛµ¿Çϰí, ¸±·¹ÀÌ MTA (¿ìÆí¹° ¼ö¼Û ´ë¸®ÀÎ)°¡ ±× ±ÇÇÑ¿Ü¿Í unapproved ¸ÞÀÏ ¼­¹ö¿¡°Ô¼­ º¸³»Áø ÀüÀÚ ¿ìÆí ½ºÆÔÀ» È®ÀÎÇÏ°í °ÅÀýÇÏ´Â °ÍÀ» Çã¿ëÇÑ´Ù.

SPF´Â ±×·± ¹æ¹ý¿¡ ÀÖ´Â ¿µ¿ªÀÇ ÀüÀÚ ¿ìÆí ³³Ç° °¡µ¿ ÀÏÀ» °¡´ÉÇÏ°Ô Çß´Ù: ÀÎÅÍ³Ý µµ¸ÞÀÎ À̸§ÀÇ ¼ÒÀ¯ÀÚ´Â ¿µ¿ª Áö¿ª DNS À̸§ ¼­¹ö¿¡ ÀÖ´Â TXT ±â·ÏÀÇ Æ¯º°ÇÑ Ã¼À縦 »ç¿ëÇÏ¿© SPF ±â·ÏÀ» Á¤ÀÇÇÑ´Ù. SPF´Â Àú ¿µ¿ªÀ» À§ÇÑ ÀüÀÚ ¿ìÆíÀ» Àü´ÞÇϱâ À§ÇÏ¿© ¾î´À ±â°è°¡ Çã°¡ÇÏ´ÂÁö ÁöÁ¤ÇÑ´Ù. ÀüÀÚ ¿ìÆíÀÌ ¸ÞÀÏ ¼­¹ö¿¡ ÀÇÇØ ÁÖ¾îÁú °æ¿ì, MTA´Â DNS ÇØ°áÃ¥¿¡¼­ SPF ÀüÀÚ ¿ìÆíÀÌ Á¤´çÇÑ ¼­¹ö·ÎºÎÅÍ ±âÀεȤ¤´Ù´Â °ÍÀ» °áÁ¤Çϱâ À§ÇÏ¿© ±â·ÏÀ» Áú¹®ÇÒ °ÍÀÌ´Ù. SPF ÅëÇà °á°ú°¡ µ¹·Áº¸³»Áö´Â °æ¿ì¿¡, ÀüÀÚ ¿ìÆíÀº ¹è´ÞÇØ ¹Þ¾Æµé¿©Áö°í ¾ò´Â´Ù. ±×¹Û¿¡ SPF ½ÇÆÐ °á°ú°¡ µ¹·Áº¸³»Áö´Â °æ¿ì¿¡, ÀüÀÚ ¿ìÆíÀº °ÅÀýµÇ°í Æ¢±ä´Ù. ¾ÆÁ÷µµ °ÅÀÇ È®½ÇÇÏ°Ô ÇöÀç SPF ½Ç½Ã·Î ½ºÆÔÀ¸·Î, °É·¯Áö´Â ÀüÀÚ ¿ìÆíÀ», ¹Þ¾ÆµéÀÌ´Â °ÍÀº ´ëÁßÀûÀÌÁö ¾Ê ±×·¯³ª ÃÖ´ë MTA¿¡ ÀÇÇÏ¿© ÇöÀç Áï½Ã SPF ½ÇÆÐ ÀüÀÚ ¿ìÆíÀ» Æ¢Áö ¾ÊÀ¸¸ç, SOFTFAIL·Î ´ë½Å Ç¥¸¦ ºÙÀ̰í, Ʋ¸° SPF ±â·Ï âÁ¶ÀÇ ³ôÀº °¡´É¼ºÀ¸·Î °¡Áö°íÀÖ¤¤´Ù.

SPF ±â·ÏÀÌ ÀÌÁö ¾Ê´õ¶óµµ a´Â ÇØ¾ß ÇÑ´Ù, ±×·¯³ª SPF ºÒ¹ýÀ¸·Î¿¡¼­ ½ºÆÔ °áÇÔÀ» ¸ØÃß±â À§ÇÏ¿© ±â·ÏÀ» ¼³Ä¡ÇÏ´Â ÁÁÀº ¿¬½À ¼ÓÀ̰í Àش´٠´ç½Å ¿µ¿ªÀÇ À̸ÞÀÏ ÁÖ¼Ò¸¦ÀÌ´Ù. SPF°¡, MX, A, CNAME ¹× PTR ±â·Ï °°ÀÌ, DNS ¿µ¿ª ³ª¹« ¼öÁØÀÇ ÀϺκÐÀ̱⠶§¹®¿¡, ¿µ¿ª ¼ÒÀ¯ÀÚ´Â ÀÌ ±â·ÏÀ» âÁ¶ÇÏ´Â oder¿¡ ÀÖ´Â ¿µ¿ª DNS Áö¿ª ±ÇÀ§ÀÖ´Â ¼­¹ö¿¡ ¿ÏÀüÅëÁ¦°¡ ÀÖ¾î¾ß ÇÒ °ÍÀÌ´Ù. °¡Àå Áß¿äÇϰÔ, AOL¿Í °°Àº IPSs ¹× BellSouth´Â Áö±Ý ±×µéÀÇ whitelist ÇÁ·Î±×·¥¿¡ ÀÖ´Â Æ÷ÇÔÀ» À§ÇØ À¯È¿ÇÑ SPF ±â·ÏÀ» ¿ä±¸ÇÑ´Ù. ¹ß¼ÛÀÎ ID ±â·ÏÀº ºÒº¯ MSN/Hotmail ³³Ç°À» À§ÇØ ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®¿¡ ÀÇÇØ °ð ¿ä±¸µÉ °ÍÀÌ´Ù.

SPF ±â·ÏÀ» À§ÇÑ Áß¿äÇÑ ¹®Á¦Á¡Àº ¾²´Â ¹æ¹ý ÀÌ°í ¿µ¿ªÀ» À§ÇØ À¯È¿Çϰí Á¤È®ÇÑ ¿µ¿ªÀ» À§ÇÑ ÀüÀÚ ¿ìÆíÀ» º¸³»´Â ¸ðµç SMTP ¼­¹ö·Î SPF ±â·ÏÀ», Á¦´ë·Î âÁ¶ÇÏ´Â °ÍÀº Á¤ÀǵǾî¾ß ÇÑ´Ù. ÀüÇüÀûÀ¸·Î, SPF ±â·ÏÀ» À§ÇÑ DNS Åë¾î·ÐÀº µû¸£±â °°ÀÌ º»´Ù:

example.com. TXT "v=spf1¿¡¼­ mx - ÀüºÎ"

ÀÌÇØÇÏ´Â °ÍÀº ¸Å¿ì ´Ü´ÜÇÏ´Ù. ¿îÀÌ ÁÁ°Ô À¥¸¶½ºÅÍ¿Í ¿µ¿ª ÇàÁ¤°üÀÌ ½±°Ô À¯È¿ÇÑ SPF DNS ÀÔÀåÀ» ¼³Ä¡ÇÒ °ÍÀ» µ½´Â °ø±¸°¡ ÀÖ´Ù. OpenSPF offers Record Setup Wizard and Microsoft has Sender ID Framework SPF Record Wizard. Although both a wizard, it may still pretty hard to comprehend especially for people exposed to SPF for the first time or novice. Here are some brief explanation of what each questions in the wizards are meant.

First, you must enter the domain name (e.g. example.com) that you want to set up the SPF record. The wizard will then try to retrieve if there is any existing SPF record. If existing record is found, the wizard allows you to modify it, or you can continue to set up the SPF by answering several questions.

For this guide, we will follow Microsoft Sender ID Framework SPF Record Wizard, and cross reference to OpenSPF¡¯s wizard, and OpenSPF¡¯s wizard options can be easily identified by using the symbol A, MX, PTR and etc which are clearly marked.

If the domain does not send any email, check Domain Not Used for Sending E-Mail. All other fields are instantly disabled and grayed out, as it¡¯s no longer useful (and not valid) to define other mechanism. To achieve this options in OpenSPF wizard, mark all radio button as ¡°No¡±, except the last one (~all) as ¡°Yes¡±.

If the domain mail server is also the one defined in MX record, check Domain¡¯s inbound servers may send mail in Inbound Mail Servers Send Outbound Mail section. In the same section, the detected MX server host name is displayed. If you have multiple mail servers defined in MX records, and want to specifically allow only some of them to relay mail for the domain, then uncheck the previous option, and tick all the valid outbound e-mail server for this domain. The above two options is represented by mx (green) and mx: (light green) in OpenSPF. Beside, if the domain route emails through the MX server of another domain, such as the ISP, specify the domain names in the box provided too (also as mx: in OpenSPF).

For Outbound Mail Server Addresses, if all the domain web servers (as configured in DNS A record) is also the mail server, then tick the All addresses listed in A records may send mail option. The IP addresses of the detected A record is displayed. Again, if you just want to specify few IP addresses as authorized mail server, select them. You can also enter any additional IP addresses (or ranges of addresses) you wish to add to your SPF record (one address or address range per line), and any additional domain names whose A records refer to valid outbound e-mail servers for the domain. This represent a (green), ip4: and a: (light green) on the OpenSPF wizard.

You can also specify that if a mail server IP address is resolved to your domain name after reverse DNS lookup, it can send the email by ticking All PTR records resolve to outbound email servers. Enter any domain names whose PTR records resolve to valid outbound e-mail servers in the text box provided. In OpenSPF, only PTR is provided, and not PTR: which allows you to enter more domain names. And it suggests that this option is expensive, unreliable and not recommended.

If you have mail sent on behalf of the domain is at times actually delivered to its recipients by the computers of another domain, then fill in the text box in Outsourced Domains section the additional domain names whose SPF records refer to valid outbound e-mail servers. This translate to include: in OpenSPF.

The final section has this question ¡°Does example.com send e-mail from any IP addresses that are not identified in the above sections?¡± or ¡°Do the above lines describe all the hosts that send mail from surfnova.com?¡±. This question will translate to one of the following qualifiers for ALL mechanism, which describe how the mail server not matched with SPF record is handled:

  • + for a PASS result, this can be omitted.
  • - for FAIL, the mail should be rejected.
  • ? for a NEUTRAL result interpreted like NONE (no policy).
  • ~ for SOFTFAIL, a debugging aid between NEUTRAL and FAIL.

OpenSPF wizard allows only selection of Yes (~) or No (-).

In any case, the Scope section should select Both setting to support all email identities validation, including Purported Responsible Address (PRA) derived from RFC 2822 message headers and MAIL FROM (or reverse-path) address derived from the RFC 2821 protocol¡¯s MAIL command.

Continue next the wizard will generate the SPF record. You will notice that all SPF record start with v=spf1. ¡°v=¡± defines the version of SPF used, and is mandatory to identify it¡¯s the SPF record. Currently only the only version supported is spf1.

Once get the SPF record, copy and paste the text to the DNS entry as a TXT record. Depending on your DNS system, you may have to exclude the quotation mark (¡±) when entering the text in DNS system, although the wizard will put the entire text within the quotes.

For those who interested, you can read the definition of A, IP4, MX, PTR and other mechanisms here:

ALL: Matches always, used for a default result like -all for all IPs not matched by prior mechanisms.
A: If the domain name has an A (or AAAA for IPv6 ) record corresponding to the sender¡¯s address, it will match. (That is, the mail comes directly from the domain name.)
IP4: Use IPv4 addresses for verification, match if the sender is in a given IPv4 range.
IP6: use IPv6 addresses for verification, match if the sender is in a given IPv6 range.
MX: If the domain name has an MX record resolving to the sender¡¯s address, it will match. (That is, the mail comes from one of the domain¡¯s mail servers)
PTR: If the Forward Confirmed reverse DNS domain of the sending IP ending in the domain name.
EXISTS: If the given domain resolves, match (no matter the address it resolves to). Rarely used, along with the SPF macro language it offers more complex matches like DNSBL-queries.
INCLUDE: If the included (a misnomer) policy passes the test this mechanism matches. This is typically used to include policies of more than one ISP.

Actually all of the above mechanisms can mix and match with 4 qualifiers mentioned earlier. But due to the limit of wizard, not all options are available. And for complicated use, there are modifiers such as REDIRECT. And normally, when one condition is matched, the email will get a PASS. So if your mail system is simple, simply define the MX or IP address will work as mentioned.

For example, mydigitallife.info has the following SPF record, ¡°v=spf1 ip4:75.127.69.98 mx a:host.mydigitallife.info mx:mydigitallife.info ~all¡±. A lot of duplication, but at least the email will send correctly.

To check if your SPF record is correct, there are various http://www.kitterman.com/spf/validate.html¡°>SPF checker, tester or validator available, including My Digital Life¡¯s SPF Validation - Sender Profile Framework Testing and Checking Tool.

IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.

Share and contribute or get technical support and help at My Digital Life Forums.



2 Responses to ¡°How to Set Up and Create Sender Policy Framework (SPF) Domain DNS TXT Record with Wizard¡±

  1. How to Check, Test and Validate SPF Record in DNS is Correct and Valid » My Digital Life
    August 8th, 2007 14:45
    1

    [...] you need to set up SPF record for your domain, check out this SPF guide. Get help or contribute tips or tricks at My Digital Life [...]

  2. Sam
    May 9th, 2008 04:49
    2

    Thanks for the great articles.

    I have been having suspected spf email issues and stumbled upon this just now.

    Fantastic - I have now identified what my hosting providers have been screwing up for the last 4 months.

    Keep up the good work!

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

cpanel spf - SPF DNS - setting up spf - spf wizard - how to setup spf - spf cpanel - SPF guide - create spf - DNS SPF "how to" - spf record wizard - setting my server up with SPF - All PTR records resolve to outbound email servers - set spf - how to create spf - cPanel SPF records - how to set up SPF - Setting up an SPF record - spf mydigitallife - create spf record microsoft dns - how to set spf - Sender Policy Framework tools Blocker - bellsouth spf - send e-mail from any IP addresses that are not identified in the above sections - create spf entry - how to create txt record - SPF setup wizard - SPF setting - spf setup in microsoft - 'DNS SPF "how to"' - 'DNS SPF "how to"' - setup spf - how to setup spf record - Sender Profile Framework - Your SPF record must be published in DNS records of type TXT under - how to set spf for your domain - sender is forget (SPF-fail) - sender is forget (SPF Fail) - sender policy framework test - simple and clean spf record for AOL - how to add spf to DNS - setup emails address sender - outbound spf - spf domains - how to create spf entry dns - setting up SPF entry in DNS - spf record bellsouth - bellsouth dns spf - dns "v=spf1 a mx ~all" - SPF in cpanel - sender domain dns -