Solved

Outgoing mail and SPF/PTR

Posted on 2011-09-27
5
808 Views
Last Modified: 2012-05-22
Greetings,

I've been having a recent issue of MAILSPIKE and blacklisting site listing my domain as unsafe, preventing emails from being received by MAILSPIKE users.  Unfortunately, MAILSPIKE is supremely pathetic at providing any information (threat reasoning or contact).  Thus, I'm investigating my network to identify what could be going on.  I have relaying disabled and have examined my logs exhaustively.  I'm looking to implement an SPF record within my DNS, but I suspect limited return on that.  However, I've read nothing to suggest that it could hurt.  However, I have come across an issue that made me need to whip up this inquiry.  Currently, Mailspike is flagging IP address x.x.x.a (my router's WAN IP), while my mail server has x.x.x.b associated with it and the MX record (obviously), which is then NATed to it's private IP.  So, upon setting up a SPF, while I could do similar to the following <domain.com TXT "v=spf1 mx -all">, would that even matter in this case, as the flagged IP is x.x.x.a, not x.x.x.b?  Also, while troubleshooting, it was also suggested that my PTR is incorrect.  However, per http://www.uceprotect.net/en/rblcheck.php, it comes back as correct.  Needless to say, Mailspike and Uceprotect are irritating me, but as a responsible net admin, I do want to resolve the matter.  Would appreciate any pertinent input.  Thanks.  Jer
0
Comment
Question by:Jer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 21

Expert Comment

by:Papertrip
ID: 36713228
If you could provide the hostname and/or IP of your sending servers, I can tell you exactly how it all should be done, and the best way to do it.

SPF record needs to be your sending server(s) IP(s), and on that note, blacklists only affect the sending IP(s) as well.

I'm currently working on another SPF issue at http://www.experts-exchange.com/Networking/Protocols/DNS/Q_27344632.html
0
 
LVL 3

Author Comment

by:Jer
ID: 36717538
Papertrip, thanks for the response.  Looked at your other ticket, which seems to be the same issue.  I'm just wondering if I'm supposed to be doing a different config (such as static 1-to-1) for my outgoing mail.  As the IP for WAN port on my central firewall is the route (and address) for all outgoing traffic (SMTP, FTP, HTTP, etc), do I simply create a request (SPF record) for that address x.x.x.a?

Also, when I did discuss creating the record with my ISP who hosts my DNS records, I got a blank stare.  They didn't know what I was talking about.  Does the SPF record get applied elsewhere?

Thanks,

Jer  
0
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36718867
If I'm understanding your question and reply correctly, you actually are in a good position right now to do this the "right way".

Set your firewall up so that all outgoing traffic from your mail server goes over x.x.x.b
Create PTR for x.x.x.b that matches the A record of your mail server
Create SPF record with x.x.x.b

Done!

It might help you to wrap your head around all of this stuff if you separate incoming and outgoing mail.  Your MX record has nothing to do with sending mail, only receiving.  Sometimes people get confused when they think that MX and SPF have to match up and things like that.
0
 
LVL 3

Author Closing Comment

by:Jer
ID: 36980671
Thanks for the help.  Sorry for the delay in responding.  Been hectic here.
0
 

Expert Comment

by:sbenhamou
ID: 37996670
Hi

I've done the exact same procedure when changing my ISP, and I'm still in the mailspike blacklist. Since we can't contact them, and since I'm blacklisted each time I change the outgoing IP address, does anyone have an idea how to fix my issue ?
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the biggest threats facing all high-value targets are APT's.  These threats include sophisticated tactics that "often starts with mapping human organization and collecting intelligence on employees, who are nowadays a weaker link than network…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

688 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