LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2014, 05:52 AM   #1
mitchelle
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Rep: Reputation: Disabled
Cant access imap and smtp through ubuntu


Hello,

I have setup iptables rule for port 993, 465, 110, 143 in ubuntu 14.04

But still cant access google apps imap and smtp through clients like outlook express or ms outlook. Though it works if googleapps sync is working.

Any ideas what is blocking them or how to correctly implement it. Internet is working all sites are working accept gmail. I am using squid3 proxy.

Thanks

Mitch
 
Old 05-31-2014, 12:02 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
For SMTP, you'll need to add port 25. Is your iptables running on the client? If so, you need to open these ports for OUTPUT traffic, not INPUT. Or is iptables running on a router/network gateway? {Please provide a bit more information and post the output of "iptables -L" on your system.
 
Old 06-01-2014, 01:45 AM   #3
mitchelle
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
IPtables output

Hello,

We are using ssl ports 465 and 993 for accessing google apps mails. Clients are running on XP and they are using outlook express or MS Outlook to access mails. IPtables are only running on ubuntu server 14.04 which acts as a gateway and which is also a proxy squid3, but proxy has nothing to do with this.

Here is the iptables -L output

sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:2222
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:8000
ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
ACCEPT tcp -- anywhere anywhere tcp dpt:urd
ACCEPT tcp -- anywhere anywhere tcp dptop3
ACCEPT tcp -- anywhere anywhere tcp dpt:imap2
ACCEPT tcp -- anywhere anywhere tcp dpt:domain

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain ufw-after-forward (0 references)
target prot opt source destination

Chain ufw-after-input (0 references)
target prot opt source destination

Chain ufw-after-logging-forward (0 references)
target prot opt source destination

Chain ufw-after-logging-input (0 references)
target prot opt source destination

Chain ufw-after-logging-output (0 references)
target prot opt source destination

Chain ufw-after-output (0 references)
target prot opt source destination

Chain ufw-before-forward (0 references)
target prot opt source destination

Chain ufw-before-input (0 references)
target prot opt source destination

Chain ufw-before-logging-forward (0 references)
target prot opt source destination

Chain ufw-before-logging-input (0 references)
target prot opt source destination

Chain ufw-before-logging-output (0 references)
target prot opt source destination

Chain ufw-before-output (0 references)
target prot opt source destination

Chain ufw-reject-forward (0 references)
target prot opt source destination

Chain ufw-reject-input (0 references)
target prot opt source destination

Chain ufw-reject-output (0 references)
target prot opt source destination

Chain ufw-track-forward (0 references)
target prot opt source destination

Chain ufw-track-input (0 references)
target prot opt source destination

Chain ufw-track-output (0 references)
target prot opt source destination


sudo iptables -vnL
Chain INPUT (policy ACCEPT 2738 packets, 280K bytes)
pkts bytes target prot opt in out source destination
13371 1876K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
3968K 3048M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
109 4500 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
3 144 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2222
7 320 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
4753 242K ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8000
1 40 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
1 40 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
1 40 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
3 128 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53

Thanks

Mitch
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP server (pop/imap) interaction with Postfix/MySQL[5.0.51] (Ubuntu Hardy) ClinicalDB Linux - Software 5 04-15-2010 05:16 AM
sending through IMAP (not SMTP)? Moebius Linux - Networking 6 10-03-2005 03:29 PM
Looking for help on IMAP and SMTP AZIMBD03 Linux - Newbie 1 11-20-2003 10:32 AM
qmail, imap and smtp help please yosh9779 Linux - Software 1 03-18-2003 10:43 AM
Postfix SMTP and IMAP configuration opteek Linux - Networking 0 04-11-2002 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration