#1  
Old 6th July 2011, 00:58
Heatryn Heatryn is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot connect to smtp server

Hi everyone.

I installed ISPConfig3 yesterday on Ubuntu 11.04 64 bit. So far everything is working except that I cannot connect to the smtp server to send emails.

I can receive emails and I can send emails throught squirrelmail. When I try to send emails via Mac Mail application or on iPhone, I cannot connect to the smtp server.

I have used as url the FQDN of my server and as username I used my email address and the password of my emailaddress.

What am I doing wrong?
Reply With Quote
Sponsored Links
  #2  
Old 6th July 2011, 12:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Please post the output of these commands:

netstat -tap | grep smtp

and

iptables -L
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th July 2011, 14:32
Heatryn Heatryn is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
root@li349-112:~# netstat -tap | grep smtp
tcp        0      0 *:smtp                  *:*                     LISTEN      7824/master     
root@li349-112:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
fail2ban-courierimaps  tcp  --  anywhere             anywhere            multiport dports imaps 
fail2ban-courierimap  tcp  --  anywhere             anywhere            multiport dports imap2 
fail2ban-courierpop3s  tcp  --  anywhere             anywhere            multiport dports pop3s 
fail2ban-courierpop3  tcp  --  anywhere             anywhere            multiport dports pop3 
fail2ban-pureftpd  tcp  --  anywhere             anywhere            multiport dports ftp 
fail2ban-ssh  tcp  --  anywhere             anywhere            multiport dports ssh 
fail2ban-sasl  tcp  --  anywhere             anywhere            multiport dports smtp 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain fail2ban-courierimap (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-courierimaps (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-courierpop3 (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-courierpop3s (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-pureftpd (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-sasl (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain fail2ban-ssh (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere
Reply With Quote
  #4  
Old 6th July 2011, 16:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Thats ok, so the problem is most likely not related to your server. Where is the server hosted, in a datacenter or at home / in office behind a dsl line?

If the server is hosted behind a dsl line, then it might be that your dsl provider blocks port 25 (which many providers do to prevent spam) or that your firewall or router is not configured to forward traffic on port 25 to your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 7th July 2011, 16:06
Heatryn Heatryn is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The server is hosted in a datacenter. I can send mails from the webmail, but not from my home. I think my ISP is blocking port 25 to the outside world. How can I configure the SMTP server so that I can connect to it on another port than port 25?
Reply With Quote
  #6  
Old 8th July 2011, 14:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

No customer of your ISP would be able to send emails if your ISP does this, so I don't think that is the problem.

Can you try to completely switch off the firewall on your server for testing purposes?
__________________
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 8th July 2011, 16:26
Heatryn Heatryn is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I got it right. My ISP is Telenet from Belgium and they only allow traffic outgoing on port 25 to their own mailservers. I was able to contact the smtp server from Gmail on port 587, but I don't know how to set this up on my own SMTP server inside ISPConfig.
Reply With Quote
  #8  
Old 9th July 2011, 10:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Take a look here: http://www.faqforge.com/linux/how-to...on-in-postfix/
__________________
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 July 2011, 15:07
Heatryn Heatryn is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Ok thanks. It works!!
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 12:28.


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