Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th December 2010, 17:22
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default Postfix connection refused

Port 25 is open on ISP, Modem, and router. Postfix appears to be configured correctly. Form mail will delivery mail to address on server. Can delivery mail from one domain name to another on same server, mail will forward to outside address on different server. (Configured in ISPConfig 2 to forward to different email address.) However, I cannot send or receive email to outside address. This had previouslu been working.

Mail log:

# tail /var/log/maillog
Dec 13 10:54:09 host postfix/smtp[23867]: connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused
Dec 13 10:54:09 host postfix/smtp[23871]: 05D404E86CC: to=<sweapmexrax@mymail-in.net>, relay=none, delay=21580, delays=21572/0.06/7.1/0, dsn=4.4.1, status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)
Dec 13 10:54:09 host postfix/smtp[23869]: 186714E810E: to=<sweapmexrax@mymail-in.net>, relay=none, delay=147461, delays=147454/0.04/7.2/0, dsn=4.4.1, status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)
Dec 13 10:54:09 host postfix/smtp[23867]: 745484E8359: to=<sweapmexrax@mymail-in.net>, relay=none, delay=197632, delays=197625/0.02/7.2/0, dsn=4.4.1, status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)
Dec 13 10:54:15 host postfix/smtp[23868]: connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused
Dec 13 10:54:15 host postfix/smtp[23868]: CFB364E8350: to=<sweapmexrax@mymail-in.net>, relay=none, delay=210426, delays=210413/0.03/13/0, dsn=4.4.1, status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)
Dec 13 10:57:03 host dovecot: pop3-login: Login: user=<web1_admin>, method=PLAIN, rip=::ffff:173.8.81.81, lip=::ffff:192.168.0.19
Dec 13 10:57:03 host dovecot: pop3-login: Login: user=<web1_>, method=PLAIN, rip=::ffff:173.8.81.81, lip=::ffff:192.168.0.19
Dec 13 10:57:03 host dovecot: POP3(web1_admin): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Dec 13 10:57:03 host dovecot: POP3(web1_): Disconnected: Logged out top=0/0, retr=0/0, del=0/4, size=3792

I don't understand where this address come from "status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)"

IP or domain name is not on any blacklist.

Able to sent mail from terminal to server web address

# host relay-test.mail-abuse.org
relay-test.mail-abuse.org is an alias for cygnus.mail-abuse.org.
cygnus.mail-abuse.org has address 168.61.4.13

# telnet mx3.hotmail.com 25
Trying 65.55.37.88...
Connected to mx3.hotmail.com.
Escape character is '^]'.
220 col0-mc2-f18.Col0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.msn.com/Anti-spam/. Violations will result in use of equipment located in California and other states. Mon, 13 Dec 2010 08:10:00 -0800

# postconf -n | wc -l
42

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 host.designoutput.net ESMTP Postfix
ehlo localhost
250-host.designoutput.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye

# lsof -i tcp:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
master 10910 root 12u IPv4 39033 TCP *:smtp (LISTEN)
master 10910 root 13u IPv6 39035 TCP *:smtp (LISTEN)


I tried to provide as much information as possible so that someone might be able to help me. I have worked on this issue for days. I think it may have something to do with MX records, but do not have the knowledge to fix and I have read everything I can find.

Thanks in advance for your time.
Reply With Quote
Sponsored Links
  #2  
Old 14th December 2010, 16:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you check here if your server is blacklisted? http://mxtoolbox.com/blacklists.aspx

Do you have a dynamic IP?

You can check if your MX record is correct like this:
Code:
dig mx yourdomain.com
__________________
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
  #3  
Old 14th December 2010, 21:43
pinguinito pinguinito is offline
Member
 
Join Date: Apr 2009
Posts: 87
Thanks: 21
Thanked 1 Time in 1 Post
Default ISPCnfig 3.0.3 and Postfix

Hi Falko.

I have installed ISPConfig 3.0.3 successfully in a single server, my public IP is dynamic and of course I am getting :

(delivery temporarily suspended: connect to servessserver1.example.com[63.251.179.17]:25: Connection timed out)
web1@servessserver1.example.com

after set up a web with elgg, thanks to your "HOwto..."

my dig command for my domain is:


:~$ dig mx example.com

; <<>> DiG 9.6-ESV-R1 <<>> mx example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35711
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

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

;; ANSWER SECTION:
example.com. 86400 IN MX 10 mx01.1and1.com.
example.com. 86400 IN MX 10 mx00.1and1.com.

;; Query time: 75 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Tue Dec 14 15:12:54 2010
;; MSG SIZE rcvd: 76


Right now I can not get and static IP. So I am thinking for possible solutions in;

How To Relay Email On A Postfix Server:
http://www.howtoforge.com/how-to-rel...postfix-server


Or:

In the ISPConfig Manual talk about:

Email Routing


Are this solutions relay to each others?
Am I right?
Are there other solutions?

thank you for your attention and your good job
Reply With Quote
  #4  
Old 14th December 2010, 21:45
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
Can you check here if your server is blacklisted? http://mxtoolbox.com/blacklists.aspx

Do you have a dynamic IP?

You can check if your MX record is correct like this:
Code:
dig mx yourdomain.com
I have a static IP

I am not on any blacklist.

Results of dig

# dig mx designoutput.net

; <<>> DiG 9.5.0-P2 <<>> mx designoutput.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16748
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;designoutput.net. IN MX

;; ANSWER SECTION:
designoutput.net. 86400 IN MX 10 mail.designoutput.net.

;; Query time: 313 msec
;; SERVER: 213.191.92.86#53(213.191.92.86)
;; WHEN: Tue Dec 14 15:21:32 2010
;; MSG SIZE rcvd: 55

I do not know where this comes from "SERVER: 213.191.92.86#53(213.191.92.86)"

I have viewed many if not all your posts and I want to thank you for answering my post. I keep reading everything about MX records and I must be missing something for I don't really understand especially SPF.

The only thing that I have found is that Clamav is out of date to lastest version.(have a fear I might break something and I wish to work on one problem at a time) I would give root access to you via of PM if you would like. I have tried every test I can find. I try very hard to search the forums and Google everything prior to making posts. I am really lost this time. The mail issue is very important to me.

I want to thank you for answering posts on this forum, it is difficult to answer questions from those of us that have limited knowledge and when we do not use correct terms.

It appears that port 25 times out. I can send mail from the terminal. Mail had worked until recently....I cannot find any errors in the maillog, that is why I was thinking it might have something to do with MX records, also checkDNS.net states timed out. If someone would ever show me exactly how MX record are to work in ISPConfig then I think I would understand. I think many others are as confused as I. I have followed you posts on the subject, but for some reason I don't fully understand.
Reply With Quote
  #5  
Old 15th December 2010, 01:44
matty matty is offline
Member
 
Join Date: Apr 2010
Location: Australia
Posts: 85
Thanks: 2
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by Mr. Print View Post
# tail /var/log/maillog
Dec 13 10:54:09 host postfix/smtp[23867]: connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused
Dec 13 10:54:09 host postfix/smtp[23871]: 05D404E86CC: to=<sweapmexrax@mymail-in.net>, relay=none, delay=21580, delays=21572/0.06/7.1/0, dsn=4.4.1, status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)
Is this site the only issue? It doesn't accept connections from me, either. In this case, the issue is at their end.

Quote:
;; Query time: 313 msec
;; SERVER: 213.191.92.86#53(213.191.92.86)
;; WHEN: Tue Dec 14 15:21:32 2010
;; MSG SIZE rcvd: 55

I do not know where this comes from "SERVER: 213.191.92.86#53(213.191.92.86)"
That is the nameserver that is answering your dig query. Probably your ISP's.
Reply With Quote
  #6  
Old 15th December 2010, 01:54
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by matty View Post
Is this site the only issue? It doesn't accept connections from me, either. In this case, the issue is at their end.



That is the nameserver that is answering your dig query. Probably your ISP's.
My problem is that I cannot send and receive mail. I have tried to find something wrong or an error and the only thing that I have found so far is the mail server times out. I cannot figure out why it times out.....

Thanks
Reply With Quote
  #7  
Old 15th December 2010, 06:44
pinguinito pinguinito is offline
Member
 
Join Date: Apr 2009
Posts: 87
Thanks: 21
Thanked 1 Time in 1 Post
Default ISPCnfig 3.0.3 and Postfix

Do you have a Dynamic Public IP?????
Reply With Quote
  #8  
Old 15th December 2010, 12:55
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by pinguinito View Post
Do you have a Dynamic Public IP?????
Static IP address/
Reply With Quote
  #9  
Old 15th December 2010, 14:04
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
Can you check here if your server is blacklisted? http://mxtoolbox.com/blacklists.aspx

Do you have a dynamic IP?

You can check if your MX record is correct like this:
Code:
dig mx yourdomain.com
falko, this thread is difficult to follow. Had previously answered above questions in this thread. I think I may have found something that is causing mail not to send and receive.

Quote:
netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:9921 *:* LISTEN 2428/k2server
tcp 0 0 *:9961 *:* LISTEN 2431/k2index
tcp 0 0 *:mysql *:* LISTEN 2194/mysqld
tcp 0 0 *:51727 *:* LISTEN 1843/rpc.statd
tcp 0 0 *:sunrpc *:* LISTEN 1823/rpcbind
tcp 0 0 *:hosts2-ns *:* LISTEN 2933/ispconfig_http
tcp 0 0 host.designoutput.ne:domain *:* LISTEN 19486/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 19486/named
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2675/cupsd
tcp 0 0 *:smtp *:* LISTEN 20725/master
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 19486/named
tcp 0 0 *:apc-9951 *:* LISTEN 2332/k2admin
tcp 0 0 localhost.localdomain:49987 localhost.localdomain:9921 TIME_WAIT -
tcp 0 0 localhost.localdomain:49985 localhost.localdomain:9921 TIME_WAIT -
tcp 0 0 localhost.localdomain:47094 localhost.localdomain:9961 TIME_WAIT -
tcp 0 0 localhost.localdom:apc-9951 localhost.localdomain:37060 ESTABLISHED 2332/k2admin
tcp 0 0 localhost.localdomain:37060 localhost.localdom:apc-9951 ESTABLISHED 2431/k2index
tcp 0 0 localhost.localdomain:47096 localhost.localdomain:9961 TIME_WAIT -
tcp 0 0 *:imaps *:* LISTEN 2225/dovecot
tcp 0 0 *:59843 *:* LISTEN 2417/coldfusion8
tcp 0 0 *op3s *:* LISTEN 2225/dovecot
tcp 0 0 *:konspire2b *:* LISTEN 2417/coldfusion8
tcp 0 0 *op3 *:* LISTEN 2225/dovecot
tcp 0 0 *:imap *:* LISTEN 2225/dovecot
tcp 0 0 *:http *:* LISTEN 2971/httpd
tcp 0 0 *:amx-weblinx *:* LISTEN 2417/coldfusion8
tcp 0 0 *:ftp *:* LISTEN 20721/proftpd: (acc
tcp 0 0 *:ssh *:* LISTEN 2093/sshd
tcp 0 0 *:51800 *:* LISTEN 2417/coldfusion8
tcp 0 0 *:smtp *:* LISTEN 20725/master
tcp 0 0 localhost6.localdomain:rndc *:* LISTEN 19486/named
tcp 0 0 *:windb *:* LISTEN 2417/coldfusion8
tcp 0 0 *:https *:* LISTEN 2971/httpd
tcp 0 0 *:irdmi2 *:* LISTEN 2417/coldfusion8
tcp 0 1296 host.designoutput.net:ssh 173-8-81-81-BusName-t:55438 ESTABLISHED 29515/1
tcp 0 0 host.designoutput.net:http crawl-66-249-71-151.g:51096 TIME_WAIT -
Is this my problem
Quote:
tcp 0 0 localhost.localdomain:49987 localhost.localdomain:9921 TIME_WAIT -
tcp 0 0 localhost.localdomain:49985 localhost.localdomain:9921 TIME_WAIT -
tcp 0 0 localhost.localdomain:47094 localhost.localdomain:9961 TIME_WAIT -
tcp 0 0 localhost.localdom:apc-9951 localhost.localdomain:37060 ESTABLISHED 2332/k2admin
tcp 0 0 localhost.localdomain:37060 localhost.localdom:apc-9951 ESTABLISHED 2431/k2index
tcp 0 0 localhost.localdomain:47096 localhost.localdomain:9961 TIME_WAIT -
How do I fix if this is my problem?

I really appreciate the help I've worked for days on this issue/
Reply With Quote
  #10  
Old 15th December 2010, 16:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
# tail /var/log/maillog
Dec 13 10:54:09 host postfix/smtp[23867]: connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused
Dec 13 10:54:09 host postfix/smtp[23871]: 05D404E86CC: to=<sweapmexrax@mymail-in.net>, relay=none, delay=21580, delays=21572/0.06/7.1/0, dsn=4.4.1, status=deferred (connect to mail.mymail-in.net[217.20.163.8]:25: Connection refused)
I can't connect to that server either, so it's a problem at their end:

Code:
server1:~# telnet 217.20.163.8 25
Trying 217.20.163.8...
telnet: Unable to connect to remote host: Connection refused
server1:~#
__________________
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
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
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 10:37
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 09:32
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
squirrelmail and postfix witoszek General 12 1st December 2009 18:07
Mail not working epicuniversal General 5 13th June 2009 08:24


All times are GMT +2. The time now is 11:41.


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