PDA

View Full Version : MX Record Cannot talk to mail server


sparton
19th July 2006, 19:31
Okay i have been having all sorts of problems with postfix and getting the mx record to work.

I initially created 2 domains with ISPconfig both semi worked i was able to navigate to the site and receive emails but never able to send emails.

The 2 domains are linuxinsite.org and mutious.info.

Intially i ran the test over at http://pingability.com/ and it was full of errors. I got most of the other errors straightened out besides for the mail server. WHen you run the test on mutious.info i get

Error There was a problem while talking with the mail server. Got 'Connect Exception: Connection refused'

Now i just assumed this would prevent me from sending mail out. I know my ISP blocks port 25 outbound and i have everything for postfix changed to listen on port 587

My netstat displays


Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:5800 *:* LISTEN 3544/X
tcp 0 0 *:5801 *:* LISTEN 3565/xinetd
tcp 0 0 *:mysql *:* LISTEN 3516/mysqld
tcp 0 0 *:smtp *:* LISTEN 4267/master
tcp 0 0 *:5900 *:* LISTEN 3544/X
tcp 0 0 *:5901 *:* LISTEN 3565/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 3013/portmap
tcp 0 0 *:ndmp *:* LISTEN 3921/perl
tcp 0 0 *:hosts2-ns *:* LISTEN 3954/ispconfig_http
tcp 0 0 localhost:apex-edge *:* LISTEN 3705/famd
tcp 0 0 ns113.linuxinsit:domain *:* LISTEN 10283/named
tcp 0 0 localhost:domain *:* LISTEN 10283/named
tcp 0 0 *:ftp *:* LISTEN 4191/proftpd: (acce
tcp 0 0 *:ipp *:* LISTEN 3498/cupsd
tcp 0 0 localhost:953 *:* LISTEN 10283/named
tcp 0 0 *:imaps *:* LISTEN 3121/couriertcpd
tcp 0 0 *:pop3s *:* LISTEN 3199/couriertcpd
tcp 0 0 *:smtp *:* LISTEN 4267/master
tcp 0 0 *:pop3 *:* LISTEN 3163/couriertcpd
tcp 0 0 *:imap *:* LISTEN 3098/couriertcpd
tcp 0 0 *:www-http *:* LISTEN 4021/httpd2-prefork
tcp 0 0 *:ssh *:* LISTEN 3531/sshd
tcp 0 0 localhost:953 *:* LISTEN 10283/named
tcp 0 0 *:https *:* LISTEN 4021/httpd2-prefork
tcp 0 3260 ns113.linuxinsite.o:ssh nr25-216-68-199-91:4274 ESTABLISHED 3647/sshd: sparton
ns113:/var/lib/named/etc #


Any suggestions on where to start to get this resolved. Im sort of new at configuring but im starting to get the hang of everything.

I followed the perfect setup for suse 10.1 and the DNS with godaddy.

sparton
19th July 2006, 19:34
Heres my PRI for mutious.info


$TTL 86400
@ IN SOA ns113.linuxinsite.org. sparton.mutious.info. (
2006071933
10
7200
604800
86400 )
;
NS ns113.linuxinsite.org.
;

mutious.info. A 66.117.226.181
www A 66.117.226.181
mail.mutious.info. IN A 66.117.226.181


;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
mutious.info. IN TXT "v=spf1 a mx ptr all"
mutious.info.mutious.info. IN A 66.117.226.181
mail.mutious.info.mutious.info.mutious.info. IN A 66.117.226.181
mutious.info. IN MX 10 mail


After i used ISPconfig i used webmin to help configure things

sparton
19th July 2006, 19:54
Attached is my postfix Main.cf

falko
20th July 2006, 14:42
After i used ISPconfig i used webmin to help configure things
That's a bad idea. Either use ISPConfig or Webmin, but not both. You will mess up your system...

Your name servers don't have DNS records:

dig ns linuxinsite.org

; <<>> DiG 9.2.1 <<>> ns linuxinsite.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25436
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;linuxinsite.org. IN NS

;; ANSWER SECTION:
linuxinsite.org. 86396 IN NS ns113.linuxinsite.org.
linuxinsite.org. 86396 IN NS ns114.linuxinsite.org.

;; Query time: 2 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Thu Jul 20 13:39:40 2006
;; MSG SIZE rcvd: 73The authoritative name servers for linuxinsite.org are ns113.linuxinsite.org and ns114.linuxinsite.org, but neither of them exists in DNS:

mh1:~# dig ns113.linuxinsite.org

; <<>> DiG 9.2.1 <<>> ns113.linuxinsite.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 15583
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ns113.linuxinsite.org. IN A

;; AUTHORITY SECTION:
linuxinsite.org. 10800 IN SOA ns113.linuxinsite.org. admin.linuxinsite.org. 2006071901 28800 7200 604800 86400

;; Query time: 138 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Thu Jul 20 13:39:46 2006
;; MSG SIZE rcvd: 81

mh1:~# dig ns114.linuxinsite.org

; <<>> DiG 9.2.1 <<>> ns114.linuxinsite.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 57908
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ns114.linuxinsite.org. IN A

;; AUTHORITY SECTION:
linuxinsite.org. 10800 IN SOA ns113.linuxinsite.org. admin.linuxinsite.org. 2006071901 28800 7200 604800 86400

;; Query time: 180 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Thu Jul 20 13:39:56 2006
;; MSG SIZE rcvd: 87