Is your Web Site IP and Mail Server IP normally the same - correct?
We, for example, have our website professionally hosted by a third party for speed and reliability. We then host our own emails on Abiltiy Mail Server and also have a third party backup MX forwarding service from
http://www.no.ip.com in case our Internet / router are down so that no mail is lost. Therfore our DNS records are like below.
- Code: Select all
code-crafters.com
A 216.92.63.73 (PTR=code-crafters.com)
MX #5 mail.code-crafters.com
MX #10 mail1.no-ip.com
MX #15 mail2.no-ip.com
TXT v=spf1 mx ptr ptr:demon.co.uk ptr:demon.net ptr:tiscali.co.uk ~all
mail.code-crafters.com
A 83.104.132.239 (PTR=codecrafters.demon.co.uk)
mail1.no-ip.com
A 204.16.252.100 (PTR=mail1.no-ip.com)
mail2.no-ip.com
A 69.65.5.111 (PTR=mail2.no-ip.com)
A 69.65.5.110 (PTR=mail2.no-ip.com)
Since this domain is on Godaddy, it has all of these defaults values there. The mail server is on my local home machine behind a firewall with all ports open and forwarded correct.
I would use the real IP for my machine from my ISP as these values and not the local IP address 192.168.1.1 (Which is used only to port forward)
Yes, you need to use your Internet IP on your router not any internal LAN IPs starting with 192.168.1.x.
Since I am on optonline, I can use mail.optonline.net to send all my mail out, which works. But can I use them as well to retrieve emails, or can that only be done with the service holding the domain name.
Use mail.optonline.net as your outgoing mail relay but add this domain to your SPF record as "ptr:mail.optonline.net" as we have with our ISPs above.
Do I need to change the defaulted DNS to new ones pointing to my mail server ?
Yes, see our domain DNS example above for a guide to setting up your own DNS.
When I go to tools and test the domain name 192.168.1.1 works, the server is on 192.168.1.4. Does the matter ?
An IP isn't a domain to be testing anyway. I don't see the relevence here. Stick to Internet IPs with any tests. As long as your DNS records and outgoing mail test buttons work ok then you should have no problems.
getting this error when sending from gmail "PERM_FAILURE: SMTP Error (state 13): 553 sorry, relaying denied from your location "?
This error means that you are trying to send via gmail to an email address external to their mail server and you don't have relaying permission (IP/SMTP authentication etc.) to do that.