How to deal with spam where "From" email is spoofed and does not match return-path

Posted on 2013-01-09
Medium Priority
Last Modified: 2013-01-15

I am using a Windows 2008 server and manage all our emails using MailEnable professional. We also use Magic Spam to trap most spam emails.

Unfortunately we are getting a lot of emails which are obvious spams and they have been spoofing our own emails in the "FROM" part. When I look at the message header I can see the return-path points to a completely different email address which clearly does not match the FROM part.

Is there any effective way to reject these emails using MailEnable by rejecting emails where the FROM email and return-path do not match?

Also are there legitimate cases where they will differ?

Thanks in advance
Question by:mike99c
  • 2

Assisted Solution

Slagwag earned 1000 total points
ID: 38758687
I would first check if you are whitelisting your own domain somewhere in MailEnable Spam filtering or Magic Spam. If not, look for a setting called IP Lock with Magic Spam. I am not familiar with this product but what IP lock does is let you specify what IP ranges can send e-mail through your server.

Example: with an IP lock on yourcompany.com set to your servers public IP of - all traffic your server receives from your own domain will be checked to see if that IP address in the message header that it is coming from matches the server IP (this can be a range as well). This will prevent these spoofed e-mails.

However, it does raise another potential issue. Some users may have Outlook setup from their home and use their ISP to send e-mail out because of port 25 being blocked or may use send on behalf settings from personal e-mails. This might not be allowed in your company but I just wanted to make you aware of it in case this happens.

Accepted Solution

designxperts earned 1000 total points
ID: 38758806
I would recommend setting up an SPF record for your domain and enable SPF checking on your mail server. SPF validates the IP address of the sender, this helps protect from email spoofing for all incoming email as well.



Author Comment

ID: 38769974
re: comment from designxperts

I have looked into the SPF record syntax and this may be ok for us. We use SMTP authentication for our emails hence the outgoing mail server is fixed for each domain.

Can I check the following with you?

If we have a domain called mydomain.com and the mail server is mail.mydomain.com, does this mean we can setup the SPF record as follows:

"v=spf1 mx mx:mail.mydomain.com -all"

Expert Comment

ID: 38781306
Sorry, didn't notice your question till now.

Basically that syntax is correct, you have many options when it comes to writing the SPF record, the following link covers them:


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
Among the most obnoxious of Exchange errors is error 1216 – Attached Database Mismatch error of the Jet Database Engine. When faced with this error, users may have to suffer from mailbox inaccessibility and in worst situations, permanent data loss.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
Suggested Courses

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question