#1  
Old 11th June 2008, 21:46
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default Setting up mail

Hi i've had ISPconfig working for my website since January but i still cannot figure out the mail side of things.

I've followed the tutorial to the letter on here, and have tried various DNS entries with my registrars but i can still not receive any email.

I've changed a few things and now i get this error 5.1.2 Bad destination host 'DNS Hard Error'. I've looked this up and it is supposed to be an A-record problem but my domain has an a-record and i can see the sites perfectly well.

I'm now stumped.
Reply With Quote
Sponsored Links
  #2  
Old 12th June 2008, 09:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,665
Thanks: 819
Thanked 5,316 Times in 4,169 Posts
Default

1) Make sure that there is a DNS MX Record for the domain, pointing to the hostname of your server.
2) If your server is not in a datacenter, ask your provider if they block smtp traffic on port 25
3) If you send a email to your server, does any additional lines appear in the mail.log file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th June 2008, 15:32
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Hi still no joy with this, I've checked with my ISP and as i'm a static ip my port 25 is open. I've put some DIG outputs below as i'm probably setting the wrong DNS settings /

[root@wallace ~]# dig ns spongecat.com

; <<>> DiG 9.4.2 <<>> ns spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55963
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;spongecat.com. IN NS

;; ANSWER SECTION:
spongecat.com. 70086 IN NS ns2.hosteurope.com.
spongecat.com. 70086 IN NS ns.hosteurope.com.

;; ADDITIONAL SECTION:
ns.hosteurope.com. 3497 IN A 212.67.202.2

;; Query time: 3 msec
;; SERVER: 135.196.0.6#53(135.196.0.6)
;; WHEN: Fri Jun 13 12:57:33 2008
;; MSG SIZE rcvd: 93

[root@wallace ~]# dig mx spongecat.com

; <<>> DiG 9.4.2 <<>> mx spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53505
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 17

;; QUESTION SECTION:
;spongecat.com. IN MX

;; ANSWER SECTION:
spongecat.com. 69888 IN MX 10 spongecat.com.
spongecat.com. 69888 IN MX 20 mx1.123-reg.co.uk.

;; AUTHORITY SECTION:
spongecat.com. 69888 IN NS ns.hosteurope.com.
spongecat.com. 69888 IN NS ns2.hosteurope.com.

;; ADDITIONAL SECTION:
spongecat.com. 69888 IN A 87.194.223.165
mx1.123-reg.co.uk. 2237 IN A 195.224.48.117
mx1.123-reg.co.uk. 2237 IN A 195.224.48.118
mx1.123-reg.co.uk. 2237 IN A 195.224.48.119
mx1.123-reg.co.uk. 2237 IN A 195.224.48.120
mx1.123-reg.co.uk. 2237 IN A 195.224.48.121
mx1.123-reg.co.uk. 2237 IN A 195.224.48.123
mx1.123-reg.co.uk. 2237 IN A 195.224.48.124
mx1.123-reg.co.uk. 2237 IN A 195.224.48.125
mx1.123-reg.co.uk. 2237 IN A 195.224.48.126
mx1.123-reg.co.uk. 2237 IN A 195.224.48.109
mx1.123-reg.co.uk. 2237 IN A 195.224.48.110
mx1.123-reg.co.uk. 2237 IN A 195.224.48.111
mx1.123-reg.co.uk. 2237 IN A 195.224.48.114
mx1.123-reg.co.uk. 2237 IN A 195.224.48.115
mx1.123-reg.co.uk. 2237 IN A 195.224.48.116
ns.hosteurope.com. 3509 IN A 212.67.202.2

;; Query time: 7 msec
;; SERVER: 135.196.0.6#53(135.196.0.6)
;; WHEN: Fri Jun 13 13:00:51 2008
;; MSG SIZE rcvd: 398


are the above entries right?
Reply With Quote
  #4  
Old 14th June 2008, 19:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

That looks ok. What happens in the mail log when you send an email to your server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th June 2008, 23:31
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Hi I followed the tutorial about DNS setup at http://www.howtoforge.org/ispconfig_dns_godaddy and realised i may have set my DNS records up incorrectly, and also didnt have port 53 open on my router to allow dns access. I've changed all these and re run my dig and got the following outputs:

[root@wallace ~]# dig ns spongecat.com

; <<>> DiG 9.4.2 <<>> ns spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8329
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;spongecat.com. IN NS

;; ANSWER SECTION:
spongecat.com. 79253 IN NS 192.168.1.108.

;; Query time: 3 msec
;; SERVER: 135.196.0.6#53(135.196.0.6)
;; WHEN: Mon Jun 16 21:00:18 2008
;; MSG SIZE rcvd: 58

-----------
[root@wallace ~]# dig mx spongecat.com

; <<>> DiG 9.4.2 <<>> mx spongecat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25748
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;spongecat.com. IN MX

;; ANSWER SECTION:
spongecat.com. 78904 IN MX 10 www.192.168.1.108.

;; AUTHORITY SECTION:
spongecat.com. 78904 IN NS 192.168.1.108.

;; Query time: 4 msec
;; SERVER: 135.196.0.6#53(135.196.0.6)
;; WHEN: Mon Jun 16 21:06:07 2008
;; MSG SIZE rcvd: 78

Firstly does this output still look ok? The website seems to have stopped working now / (192.168.1.108 is actually the internal IP of my web server, but i used my external IP in all the dns settings).
Reply With Quote
  #6  
Old 17th June 2008, 15:31
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

I've just checked my ISPConfig management settings and the ISPConfig IP address was set to the internal IP of the server, am i right in thinking this should be set to the external IP?
Reply With Quote
  #7  
Old 17th June 2008, 16:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

In the management settings you must use the internal IP address, but for the DNS records you must use your public IP address.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 17th June 2008, 18:04
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

thanks for highlighting that!

I'm confused as to why when i dig the nameserver for spongecat.com my internal IP comes up as the record as opposed to the external IP i've set it to.. as a result i cant see my website now let alone get email.
Reply With Quote
  #9  
Old 18th June 2008, 11:05
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
Default

seems the nameservers are finally propagated and i can see my website again. But i'm not able to receive email only send it. When i send an email to admin@spongecat.com i get the following bounce back.


Code:
  <admin@spongecat.com> (spongecat.com: No greeting from remote host)
I've been informed port 25 is open by my provider and it is open on my router, I've tried to telnet the server on port 25 but connection was refused. Or could there be another reason?

Last edited by terryoleary1981; 18th June 2008 at 13:10.
Reply With Quote
  #10  
Old 18th June 2008, 15:24
terryoleary1981 terryoleary1981 is offline
Member
 
Join Date: Jan 2008
Posts: 91
Thanks: 3
Thanked 2 Times in 2 Posts
 
Default

after speaking to my broadband supplier port 25 is defintely open on their network so something must be stopping the mail getting through, can anyone give me some pointers of what to do or where to check?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
procmail can't write Hellbound General 27 8th June 2009 21:51
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 09:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.