Toate colecțiile
SPF - ce este și cum se adaugă la mesajele de pe edrone?
SPF - ce este și cum se adaugă la mesajele de pe edrone?
Marzena Szot-Pilarek avatar
Scris de Marzena Szot-Pilarek
Actualizat cu mai mult de o săptămână în urmă

Ce este SPF?

SPF (Sender Policy Framework) este o funcționalitate de securitate care este utilizată pentru a autentifica expeditorul unui mesaj de e-mail. SPF declară ce servere de poștă electronică au permisiunea de a executa mesaje din domeniul tău - în acest fel, serverul de poștă electronică al destinatarului "știe" că mesajul a fost trimis de un server autorizat.

Pe scurt, este o tehnologie de prevenire a spam-ului și a posibilității de a se substitui.

Fiecare mesaj de e-mail conține două adrese de expediere indicate în câmpul "from" și "return_path". Return_path este adresa la care mesajele trebuie trimise înapoi sau returnate în cazul în care nu pot fi livrate. Aceasta este inclusă în antetul ascuns al mesajului de e-mail. Nu este aceeași adresă cu "reply to" (adresa la care se poate scrie înapoi la un mesaj primit). SPF este setat pentru domeniul conținut în adresa "return_path".

Poți găsi mai multe informații aici:

De ce să configurezi SPF, de ce este atât de important?

If you care about deliverability in general and the authenticity, credibility of your domain/brand, as well as your security and that of your audience, then setting up an SPF entry is a must.

By setting up SPF you will ensure:

  • fraud protection - SPF determines which servers can send messages under a given domain, and this makes it more difficult for people to impersonate your domain and send emails on your behalf.

  • reducing spam - if an email does not meet the SPF record criteria, the recipient's mail server can block delivery.

  • improved deliverability - mail servers are more likely to deliver emails from senders who have the correct SPF record, as this is a sign that the sender is genuine.

  • support for other anti-spam technologies - SPF can be used in conjunction with other anti-spam technologies such as DKIM and DMARC to increase the security of emails.

  • protection of a domain's reputation- domains that do not protect their emails with SPF can become an attractive target for fraudsters and spammers, which can negatively affect their reputation.

How does SPF verification work?

When sending, the recipient's mail server "checks" the address contained in the "return_path". Then validates the SPF record, i.e. verifies that the message was sent from a server that is included in the SPF record of the domain (the domain of the address from the 'return_path').

If the domain is validated - the sending server is included in the SPF record of the domain - then the message is delivered.

If not - the sending server is not included in the SPF record - then, depending on the SPF record suffix (-all, ~all, etc.), the message may be rejected (not delivered), or delivered but flagged as suspicious, or end up in SPAM.

How to set up an SPF record for messages from edrone?

SPF is a DNS record that you configure in the sender's domain hosting (there should be a place to configure DNS records in the hosting). The SPF is in TXT format/type, or in some hosts simply SPF.

There can only be one SPF record for a given domain, so in order to enable mailings from edrone, do not create another SPF record, but configure the existing one.

To authenticate messages sent from edrone, add the entry: include:_spf.edrone.me at the end of the entry, but before "~all".

Example SPF record with a fragment authenticating edrone servers:

v=spf1 a mx include:spf.protection.outlook.com include:_spf.edrone.me ~all

What does the '~all' at the end of the record mean?

There are several ways to end an SPF record, and each determines how to deal with messages that have been sent under a particular domain, but their servers are not included in the SPF. The differences are explained below:

  • "all" means that messages that do not match the SPF record should be rejected. This is the strictest option and means that only servers listed in the SPF record are authorized to send emails on behalf of a domain.

  • "-all" also means that messages that do not match the SPF record should be rejected, as with "all", but "-all" is an older, less commonly used notation, "all" is more common.

  • "~all" means that messages that do not match the SPF record should be treated as suspicious, but will not be rejected. This is a softer option and allows emails to be delivered from servers that are not included in the SPF record but may be flagged as potentially suspicious.

  • "?all" - means that incorrect authentication does not affect the delivery of the message.

Modification of SPF on some hosts:

How do I verify that the SPF has been correctly configured for edrone?

Use an online tool, such as https://app.dmarcanalyzer.com/dns/spf, to verify the correctness of the SPF record.

In the Domain field, enter your sender domain (the one from your sender address, not your shop domain if they are different) and click Validate SPF.

If the SPF is configured correctly, you will see the message "We did not find problems with your SPF record" and additionally below "Include _spf.edrone.me":

If you do not see the part _spf.edrone.me after verification, it is most likely that the record has not been configured correctly, or the changes have not yet been saved.

Propagation of a record (spreading across the internet) can take up to 48h, so sometimes verification immediately after addition may not be successful, so it is worth waiting and checking the entry again after this time.

The most common causes of unsuccessful verification:

  • verification too fast (before full propagation)

  • adding the SPF to the shop domain and not to the sender's domain

  • adding another SPF entry instead of configuring the existing one

  • incorrect format/type (other than TXT)

  • attempting to add this record on a different platform than the hosting one

  • so-called typos/incorrectly copied record (it will appear in the entry, but will not be correct)

If your verification has not been successful, and you are not sure what each error means, please contact your hosting provider or us (if it applies to our records) to determine the cause.


Need more help?

If you have any further questions about SPF records, please do not hesitate to contact us at hello@edrone.me

Ați primit răspuns la întrebare?