Using SPF to avoid emails from being marked as spam

SPFSender Policy Framework is an open source equivalent to Caller ID. (Sender Policy Framework) is an anti-spam technique used by some modern email services to ensure the email they are receiving is really coming from your email server.

An entry is placed on your domains DNS (Domain Name Service) records. This record holds the IP addressAn identifier assigned to devices connected to a TCP/IP network. of the email servers which are authorized to send a legitimate email for your domain. When an email server receives an email, it looks up the IP listed on this record, and then compare that IP to the IP of the connecting server. If they are different, it knows the connection is not authorized and terminates the connection. If they match, it receives the email.

This topic describes the process to set up SPF for GFI HelpDesk.

Add a new TXT record to your email domains DNS record, the record you need to add depends on your mail servers IP address:

  • For example, If your email domain is, and your mail servers IP address was then the SPF record you would need to add to your domains DNS would be: IN TXT "v=spf1 mx ip4: ~all"
  • If your GFI HelpDesk server routes email directly, then you would need you to add both the IP of your mail server and your GFI HelpDesk server, for example: IN TXT "v=spf1 mx ip4: ip4: ~all"
  • If you are unsure of which record to add, please contact our support who can advise you on which record you have to add. Adding incorrect records results in emails your sending out, not arriving at the recipient's end.