SMTP setup

SMTP setup

Postby nofrills » Thu Feb 07, 2008 4:14 am

I have a domain sitting at Godaddy. Currently the IP from their DNS manager is pointing to my home server so I can access my mail server.

Out going mail is setup with mail.optonline.com which is my ISP. Works fine.

Port 25 is open on my router as well as my firewall. Checked and verified.

Now I haven't a clue to know what to setup in Godaddy, Optonline or mail server to get incoming to work?

Any body? Everything in Godaddy DNS is default except for @ which is my servers IP address

Any help would be awesome.
nofrills
 
Posts: 4
Joined: Thu Feb 07, 2008 1:18 am

Re: SMTP setup

Postby Code Crafters » Thu Feb 07, 2008 10:16 am

To get incoming mail to work, you obviously need to let port 25 through all server side firewalls and forward port 25 from your router to you mail server LAN IP. On each of your domain's DNS setup you need to then set up as below:

domain.com
A = your website IP
MX = mail.domain.com
TXT = Optional SPF record to specify what IPs are authorised to send for this domain (e.g. v=spf1 mx ptr ptr:yourisp.com -all)

mail.domain.com
A = your mail server IP
Code Crafters
 
Posts: 942
Joined: Mon Sep 10, 2007 2:35 pm

Re: SMTP setup

Postby nofrills » Thu Feb 07, 2008 12:50 pm

Is your Web Site IP and Mail Server IP normally the same - correct?

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)

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.

Do I need to change the defaulted DNS to new ones pointing to my mail server ?

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 ?

getting this error when sending from gmail "PERM_FAILURE: SMTP Error (state 13): 553 sorry, relaying denied from your location "?


Thanks
nofrills
 
Posts: 4
Joined: Thu Feb 07, 2008 1:18 am

Re: SMTP setup

Postby Code Crafters » Fri Feb 08, 2008 11:47 am

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.
Code Crafters
 
Posts: 942
Joined: Mon Sep 10, 2007 2:35 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 14 guests

cron