What is Email Spoofing?
Email spoofing is when the email header's "From:" line is modified to something other than the actual original sender. A common sign that your email address is being spoofed is getting tons of spam return messages (like Failure Notification or Mailer Daemon) for emails you never sent.
One of the features of a standard SMTP server is the ability to modify the email header to be from any address. This is a convenience built in so the address is easy to read (like "firstname.lastname@example.org"). This feature is often exploited by spammers trying to mask where they are sending from.
How Do I Stop Someone From Spoofing My Domain?
Unfortunately, it will not be possible to stop someone from using your email address as the from address. The reason for this is that the from address on an email works similarly to a physically mailed letter or package. You can physically put any from address on a letter sent via the U.S. Postal Service. The post office does not even check if the return address is real. It is similar with email.
There are methods to help alleviate the issue, that will be discussed below.
What Happens When an Email is Spoofed?
When emails are set to be from an email address on your domain and bounce, they are sent to our servers, attempting to deliver themselves to that mailbox. Generally, you will never see these emails; however, if the email spoofer happens to configure the "From:" header to be a real email box, the bounce will come back to your mailbox and you will receive the email.
Luckily spam filters and ISPs know that and do not penalize people based on the from address. They instead use IP addresses and other indicators to decide who to ban. So unless the spam is coming from your email account, server or hosting account, you would not be penalized for someone spoofing your email address. Individual users can still filter or block your email address, but modern spam filters do not work that way.
These email spoofers are tracked down from the server that is used to authenticate from originally. That server gets reported to ISPs and Email Realtime Black Lists (RBLs), and the spoofing emails stop.
How to Resolve the Email Spoofing
To resolve email spoofing there are two methods, creating a catchall or an SPF record. The catchall (Default Address) can resolve the issue only on a short term basis and is not recommended to be used otherwise. Creating an SPF record would be best for a long term solution as the DNS would catch unverified users trying to send email for your domain and prevent it from being sent out.
If you have Default Address enabled, you can set every catchall to :fail: no such address here. This will stop you from getting the bounceback, but the real problem may not be solved.
If you do not have Default Address enabled, you will not need to worry about making this adjustment since our system is automatically set to return messages with the :fail: no such address here response.
You will need to create an SPF record to resolve the issue fully. An SPF record is an entry added to the DNS zone for a domain. This record verifies that a user has permission to send mail from a domain, preventing email from being spoofed for your domain.
How to Create an SPF Record in cPanel
Creating an SPF record will verify that a user has permission to send mail from a domain. This is used to prevent email spoofing for your domain. There are several methods for having this record created regardless of if you are using cPanel or WHM.
Automatic SPF Record Creation
This is the easiest method for creating an SPF record in cPanel. It will also show whether or not an SPF record is already in place or not.
- Log into cPanel.
- In the Mail section, click the Email Authentication icon.
- Scroll Down to the section titled SPF.
- Click Enable.
Your SPF record will then be generated and added to the domains listed in your cPanel.
Manual SPF Record Creation
This method is intended for users who want to ensure that the SPF record is tailored to their preferences.
- Log into cPanel.
- In the Domains section, click the DNS Zone Editor icon. (If you do not have this icon, you cannot create this record in cPanel. Please contact joudiSoft to request this icon.)
- Select the desired domain name from the drop-down menu.
- Under Add a Record, enter the following information:
- Name: type your domain name (without the www)
- TTL: 14400
- Type: TXT
- Address: create this special code or use an SPF wizard to generate the code
- Click Add Record.
How to Create an SPF Record in WHM
WHM users can create SPF records using the instructions listed below for current cPanels or domains. If an SPF record is needed for a new cPanel, WHM users can also choose to enable the SPF record while creating the cPanel by checking the Enable SPF option.
- Log into WHM.
- Under DNS Functions in the left-side panel, click Edit DNS Zone.
- Select the desired domain name from the Choose a Zone to Edit list and click Edit.
- Under Add New Entries Below this Line, enter the following information:
- In the first blank: type your domain name (without the www), then add an extra dot at the end (for example: joudiSoft.com. It is extremely important to include a trailing dot at the end of your domain or you may break your DNS.)
- Do NOT change the 14400 part.
- From the Select drop-down menu, choose TXT.
- In the Text Information box, create this special code or use an SPF wizard to generate the code.
- Click Save at the bottom of the page.
- 0 Users Found This Useful
cPanel's Email Trace icon is intended for troubleshooting email routing issues. With this...
This error is commonly seen with mailbox file permissions in cPanel. Root access is...
This message indicates that your email is not configured properly. Please make sure you are...
How to fix the error "invalid maildirsize": Login to your server via FTP or File...
What is DMARC? DMARC standardizes how email receivers perform email authentication using the...