Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Aug 25, 2012 4:20 pm 
Offline
Senior Newbie

Joined: Tue Jul 03, 2012 3:33 pm
Posts: 9
I've got my email server set up with Postfix/Dovecot using the documentation from Linode. I've installed roundcube as a web interface and it can send and receive email without trouble. However, when I try to use an external client, I can only receive mail.

So my first thought was the firewall. Here's iptables -L:

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere           
REJECT     all  --  anywhere             127.0.0.0/8         reject-with icmp-port-unreachable
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:www
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imap2
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:585
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imaps
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:2025
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssmtp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:submission
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request
LOG        all  --  anywhere             anywhere            limit: avg 5/min burst 5 LOG level debug prefix `iptables denied: '
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere   


Any obvious mistakes?

And here's the output of netstat -lntp:

Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      10153/dovecot   
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      10153/dovecot   
tcp        0      0 127.0.0.1:44069         0.0.0.0:*               LISTEN      23261/current   
tcp        0      0 127.0.0.1:54470         0.0.0.0:*               LISTEN      27868/current   
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      6765/mysqld     
tcp        0      0 127.0.0.1:40718         0.0.0.0:*               LISTEN      18128/current   
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      10153/dovecot   
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      10153/dovecot   
tcp        0      0 127.0.0.1:39154         0.0.0.0:*               LISTEN      19565/current   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2084/sshd       
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      16962/master   
tcp6       0      0 :::80                   :::*                    LISTEN      14926/apache2   
tcp6       0      0 :::22                   :::*                    LISTEN      2084/sshd   


So it looks like something is listening on port 25, right?

Thanks for any help you can offer.


Top
   
PostPosted: Sat Aug 25, 2012 4:43 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
telnet mail.domain.com 25 and see how it responds

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Sat Aug 25, 2012 4:55 pm 
Offline
Senior Newbie

Joined: Tue Jul 03, 2012 3:33 pm
Posts: 9
It times out:
Code:
telnet waffles.ovrmnd.com 25
Trying 50.116.39.110...
telnet: connect to address 50.116.39.110: Operation timed out
telnet: Unable to connect to remote host


Locally, it's fine and dandy:
Code:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 waffles.ovrmnd.com ESMTP Postfix (Ubuntu)
ehlo localhost
250-waffles.ovrmnd.com
250-PIPELINING
250-SIZE 30720000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN


Top
   
PostPosted: Sat Aug 25, 2012 5:02 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Works for me. Is your home ISP blocking port 25?

Code:
% telnet waffles.ovrmnd.com 25
Trying 50.116.39.110...
Connected to waffles.ovrmnd.com.
Escape character is '^]'.
220 waffles.ovrmnd.com ESMTP Postfix (Ubuntu)

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
PostPosted: Sat Aug 25, 2012 5:05 pm 
Offline
Senior Newbie

Joined: Tue Jul 03, 2012 3:33 pm
Posts: 9
Well, well. That's an excellent question!


Top
   
PostPosted: Sat Aug 25, 2012 5:24 pm 
Offline
Senior Newbie

Joined: Tue Jul 03, 2012 3:33 pm
Posts: 9
And that's exactly what it was! I've got an AT&T U-Verse "Small Business" connection, if anyone else would like to avoid them.

For future reference, I got it to work by adding these lines to /etc/postfix/master.cf:

Code:
465      inet  n     -     n     -     -     smtpd
587      inet  n     -     n     -     -     smtpd
2025      inet  n     -     n     -     -     smtpd


Which tells postfix to listen to those ports, too.

So now I can connect! (But I'm getting a new set of errors regarding authentication. Which I will save for another post.)

Thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group