
6th July 2011, 00:58
|
|
Junior Member
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

6th July 2011, 12:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Please post the output of these commands:
netstat -tap | grep smtp
and
iptables -L
|

6th July 2011, 14:32
|
|
Junior Member
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

6th July 2011, 16:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
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.
|

7th July 2011, 16:06
|
|
Junior Member
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

8th July 2011, 14:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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?
|

8th July 2011, 16:26
|
|
Junior Member
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

9th July 2011, 10:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|

9th July 2011, 15:07
|
|
Junior Member
|
|
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok thanks. It works!!
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 20:31.
|
Recent comments
18 hours 7 min ago
23 hours 6 min ago
1 day 32 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 23 hours ago
2 days 1 hour ago