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 4th July 2011, 02:41
apriloneil apriloneil is offline
Junior Member
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't connect to SMTP server :(

I have spent the past month learning how to setup an unmanaged VPS on my own...but there's one thing I can't figure out. I've searched for and read everything I could, but nothing I try seems to work. I don't know what I'm missing.

When trying to send email through Outlook, I get the error message:
"421 Cannot connect to SMTP server 173.0.48.122 (173.0.48.122:25), connect timeout', Port: 25, Secure(SSL): No, Server Error: 421, Error Number: 0x800CCC67" error."
Any kind of help would be greatly appreciated! This is the only thing I have left to finally have a fully functioning VPS

Here's some info that hopefully will help:

* I am using Webmin w/ Postfix & Dovecot
* Debian 5 OS
* I don't have iptables set up yet, so all ports should be open.

netstat -tap
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:smtp                  *:*                     LISTEN      12039/master
tcp        0      0 *:imaps                 *:*                     LISTEN      1362/imap-login
tcp        0      0 *:pop3s                 *:*                     LISTEN      9481/pop3-login
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      12039/master
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN      11805/mysqld
tcp        0      0 *:pop3                  *:*                     LISTEN      9481/pop3-login
tcp        0      0 *:imap2                 *:*                     LISTEN      1362/imap-login
tcp        0      0 *:www                   *:*                     LISTEN      15758/apache2
tcp        0      0 *:webmin                *:*                     LISTEN      13684/perl
tcp        0      0 theadultindustry:domain *:*                     LISTEN      28260/named
tcp        0      0 localhost.locald:domain *:*                     LISTEN      28260/named
tcp        0      0 *:ssh                   *:*                     LISTEN      1413/sshd
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      28260/named
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      19664/proftpd: (acc
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1413/sshd

netstat -l
Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:smtp                  *:*                     LISTEN
tcp        0      0 *:imaps                 *:*                     LISTEN
tcp        0      0 *:pop3s                 *:*                     LISTEN
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN
tcp        0      0 *:pop3                  *:*                     LISTEN
tcp        0      0 *:imap2                 *:*                     LISTEN
tcp        0      0 *:www                   *:*                     LISTEN
tcp        0      0 *:webmin                *:*                     LISTEN
tcp        0      0 theadultindustry:domain *:*                     LISTEN
tcp        0      0 localhost.locald:domain *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp6       0      0 [::]:domain             [::]:*                  LISTEN
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
udp        0      0 *:10000                 *:*
udp        0      0 theadultindustry:domain *:*
udp        0      0 localhost.locald:domain *:*
udp6       0      0 [::]:domain             [::]:*
udp6       0      0 [::]:talk               [::]:*
udp6       0      0 [::]:ntalk              [::]:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     STREAM     LISTENING     652073400 /var/run/saslauthd/mux
unix  2      [ ACC ]     STREAM     LISTENING     674373607 /var/spool/postfix/var/run/saslauthd/mux
unix  2      [ ACC ]     STREAM     LISTENING     651212837 /var/run/dovecot/dict-server
unix  2      [ ACC ]     STREAM     LISTENING     651212839 /var/run/dovecot/login/default
unix  2      [ ACC ]     STREAM     LISTENING     651212844 /var/run/dovecot/auth-worker.18333
unix  2      [ ACC ]     STREAM     LISTENING     674456502 public/cleanup
unix  2      [ ACC ]     STREAM     LISTENING     650449657 /var/run/nscd/socket
unix  2      [ ACC ]     STREAM     LISTENING     674456509 private/tlsmgr
unix  2      [ ACC ]     STREAM     LISTENING     674456513 private/rewrite
unix  2      [ ACC ]     STREAM     LISTENING     674456517 private/bounce
unix  2      [ ACC ]     STREAM     LISTENING     674456521 private/defer
unix  2      [ ACC ]     STREAM     LISTENING     674456525 private/trace
unix  2      [ ACC ]     STREAM     LISTENING     674456529 private/verify
unix  2      [ ACC ]     STREAM     LISTENING     674456533 public/flush
unix  2      [ ACC ]     STREAM     LISTENING     674456537 private/proxymap
unix  2      [ ACC ]     STREAM     LISTENING     674456541 private/proxywrite
unix  2      [ ACC ]     STREAM     LISTENING     674456545 private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     674456549 private/relay
unix  2      [ ACC ]     STREAM     LISTENING     674456553 public/showq
unix  2      [ ACC ]     STREAM     LISTENING     674456557 private/error
unix  2      [ ACC ]     STREAM     LISTENING     674456561 private/retry
unix  2      [ ACC ]     STREAM     LISTENING     674456565 private/discard
unix  2      [ ACC ]     STREAM     LISTENING     674456569 private/local
unix  2      [ ACC ]     STREAM     LISTENING     674456573 private/virtual
unix  2      [ ACC ]     STREAM     LISTENING     674456577 private/lmtp
unix  2      [ ACC ]     STREAM     LISTENING     674456581 private/anvil
unix  2      [ ACC ]     STREAM     LISTENING     674456585 private/scache
unix  2      [ ACC ]     STREAM     LISTENING     674456589 private/maildrop
unix  2      [ ACC ]     STREAM     LISTENING     674456593 private/uucp
unix  2      [ ACC ]     STREAM     LISTENING     650530584 /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     674456597 private/ifmail
unix  2      [ ACC ]     STREAM     LISTENING     674456601 private/bsmtp
unix  2      [ ACC ]     STREAM     LISTENING     674456605 private/scalemail-backend
unix  2      [ ACC ]     STREAM     LISTENING     674456609 private/mailman

postconf -n
Code:
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_size_limit = 0
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = theadultindustry.info
myhostname = theadultindustry.info
mynetworks = 127.0.0.0/8
myorigin = theadultindustry.info
readme_directory = no
recipient_delimiter = +
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom

DNS records
Code:
theadultindustry.info.		NS	Default	ns1.theadultindustry.info.
theadultindustry.info.		NS	Default	ns2.theadultindustry.info.
theadultindustry.info.		A	Default	173.0.48.122
mail.theadultindustry.info.	A	Default	173.0.48.122
ns1.theadultindustry.info.	A	Default	173.0.48.122
ns2.theadultindustry.info.	A	Default	173.0.48.123
theadultindustry.info.		MX	Default	10 mail.theadultindustry.info.
www.theadultindustry.info.	CNAME	Default	theadultindustry.info.
Thank you in advance!
~ April
Reply With Quote
Sponsored Links
  #2  
Old 4th July 2011, 10:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Is that mail server located in a local network? If so, make sure that your router doesn't block port 25. It is also possible that your ISP blocks port 25.
__________________
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 4th July 2011, 10:52
apriloneil apriloneil is offline
Junior Member
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, it's a VPS through Virpus.com

~ April
Reply With Quote
  #4  
Old 5th July 2011, 09:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

What's the output of
Code:
iptables -L
?

Have you tried to ask your hoster if they block port 25?
__________________
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 6th July 2011, 02:15
apriloneil apriloneil is offline
Junior Member
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just had someone set up a VPS for me with the same host prior to this problem. That VPS is sending mail through port 25, so I know the host doesn't block it.

iptables -L
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Reply With Quote
  #6  
Old 7th July 2011, 14:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

I can't connect to your server either:

Code:
server1:~# telnet 173.0.48.122 25
Trying 173.0.48.122...
Connected to 173.0.48.122.
Escape character is '^]'.
Connection closed by foreign host.
server1:~#
Is 173.0.48.122 the correct server, or does it maybe have another IP?
__________________
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
  #7  
Old 9th July 2011, 01:34
apriloneil apriloneil is offline
Junior Member
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, 173.0.48.122 is the correct IP. I can connect to it through the web, FTP and SSH...just not through mail. I'm thinking about giving up or trying a different host.
Reply With Quote
  #8  
Old 9th July 2011, 10:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Are there any errors in your mail log (in the /var/log/ directory)?

What's the output of
Code:
ifconfig
?
__________________
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
  #9  
Old 9th September 2011, 11:48
kazzy_001 kazzy_001 is offline
Junior Member
 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question VPS COnfigure

Quote:
Originally Posted by apriloneil View Post
I just had someone set up a VPS for me with the same host prior to this problem. That VPS is sending mail through port 25, so I know the host doesn't block it.

iptables -L
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Pls i need to set up my VPS to send bulk email for me...can u help on this...I will appreciate it so much. i bought my unmanaged VPS from sh3lls.net and i dont know how get started with bulk mailing.

Thanks and i hope i hear from you soon
Reply With Quote
  #10  
Old 9th September 2011, 11:50
kazzy_001 kazzy_001 is offline
Junior Member
 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Question Cant configure VPS for bulk emailing

Pls i need to set up my VPS to send bulk email for me...can u help on this...I will appreciate it so much. i bought my unmanaged VPS from sh3lls.net and i dont know how get started with bulk mailing.

Thanks and i hope i hear from you soon
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Virtual Users+Postfix+Courier+CentOS problem telnet localhost 25 stinson HOWTO-Related Questions 11 5th February 2011 13:57
Need some Hints to "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" wahid HOWTO-Related Questions 10 25th August 2010 15:18
amavis & ispconfig 3 yalex2000 Installation/Configuration 20 18th February 2010 17:02


All times are GMT +2. The time now is 05:57.


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