Access IMAP/SMTP behind ISA?


Recommended Posts

I'm trying to acces IMAP and SMTP behind ISA. Every mail client i try just fails to connect and i've tried several domains including googlemail.

I have creating the following access rule:

Mail Access Protocol - Enabled / Allow

Selected Protocols - HTTP, HTTPS, SMTP, IMAP4, IMAPS, POP3

From - INTERNAL

To - EXTERNAL

Users - ALL USERS

Schedule - ALWAYS

All content types

Do i need to do anything else besides setup the access rule?

One thing i have noticed is that the SMTP filter port range is 465, but gmail says to set this as 587. In ISA the option to add more ports is grayed out?

Anyone have any experience with this?

Link to comment
https://www.neowin.net/forum/topic/881980-access-imapsmtp-behind-isa/
Share on other sites

I can't access it using PuTTy and when i check logs i can see 'Connection Denied' from my IP address when using basic authentication but when i change the ports to what google says i get nothing.

Make sure the imap.gmail.com:993 OR (74.125.155.109:993) for IMAP and smtp.gmail.com:465 Or (74.125.127.109:465) is allow in your Firewall, then check telnet

1)TELNET imap.gmail.com 993

2)TELNET smtp.gmail.com 465

if you using googleAps and configured your domain with google for Mailing then use 587 port for SMTP (TLS Enabled)

3)TELNET smtp.gmail.com 587

telnet imap.gmail.com 993

Connecting To imap.gmail.com...Could not open connection to the host, on port 993: Connect failed

telnet imap.gmail.com 456

Connecting To imap.gmail.com...Could not open connection to the host, on port 456: Connect failed

telnet imap.gmail.com 587

Connecting To imap.gmail.com...Could not open connection to the host, on port 587: Connect failed

I can't see the option to allow it in ISA, the imap protocols are there and in use in the access rule above but it also wont let me add anymore ports.

telnet imap.gmail.com 993

Connecting To imap.gmail.com...Could not open connection to the host, on port 993: Connect failed

telnet imap.gmail.com 456

Connecting To imap.gmail.com...Could not open connection to the host, on port 456: Connect failed

telnet imap.gmail.com 587

Connecting To imap.gmail.com...Could not open connection to the host, on port 587: Connect failed

I can't see the option to allow it in ISA, the imap protocols are there and in use in the access rule above but it also wont let me add anymore ports.

how much you experience in ISA Server out of ?/10

Try to Create new role in ISA and specify Source address/IP and Destination/IP, port number and allows access...

how much you experience in ISA Server out of ?/10

Try to Create new role in ISA and specify Source address/IP and Destination/IP, port number and allows access...

I'm not at professional level.

Can you point me in the right direction to create a new roll in ISA?

#

I tried creating a new protocol for GMAIL SSL ports and adding that to the mail access rule but got nothing.

I'm not at professional level.

Can you point me in the right direction to create a new roll in ISA?

#

I tried creating a new protocol for GMAIL SSL ports and adding that to the mail access rule but got nothing.

can you upload the screen shots of ISA Allowed/denied source and destination, and tell me one thing you specified imap.gmail.com/smtp.gmail.com any where in ISA server. ?

can you upload the screen shots of ISA Allowed/denied source and destination, and tell me one thing you specified imap.gmail.com/smtp.gmail.com any where in ISA server. ?

NO i haven't specified imap.gmail.com/smtp.gmail.com - i don't know where to do it?

as i say my experience is little.

post-54971-12682294590879_thumb.jpg

Thank you for taking the time to do that, but i still got nothing.

here are the details of the access rule, is everything correct?

New Access Rule:

Gmail (Enabled / Allow)

Protocols:

IMAP4

IMAP4 Server

IMAPS

IMAPS Server

SMTP

SMTP Server

SMTP-GMAIL (TCP / 587 / Outbound) < custom protocol i made with ports for Gmail

From:

Internal

Local Host

To:

smtp.gmail.com (Address Range: 74.125.127.109 to 74.125.155.109)

Users:

All Users

I've updated ISA to latest service pack and it provides more info on the logs.

All i get is:

Unidentified IP Traffic(TCP:1745) Initiated Connection

Unidentified IP Traffic(TCP:1745) Connection Closed

Initiated Connection

Log type: Firewall service

Status: The operation completed successfully.

Rule: Source: Internal ( 192.168.16.73:63894)

Destination: Local Host ( 192.168.16.4:1745)

Protocol: Unidentified IP Traffic (TCP:1745)

User:

Additional information

  • Number of bytes sent:
  • Number of bytes received:
  • Processing time: 0ms
  • Original Client IP: 192.168.16.73
  • Client agent:

then:

Closed Connection

Log type: Firewall service

Status: A connection was gracefully closed in an orderly shutdown process with a three-way FIN-initiated handshake.

Rule: Source: Internal ( 192.168.16.73:63894)

Destination: Local Host ( 192.168.16.4:1745)

Protocol: Unidentified IP Traffic (TCP:1745)

User:

Additional information

  • Number of bytes sent: 16530
  • Number of bytes received: 15514
  • Processing time: 4000ms
  • Original Client IP: 192.168.16.73
  • Client agent:

I'm seriously thinning out on top.

Is there another firewall/router upstream from your ISA server?

umm.. yeah

ISA Firewall --> Router <--File Server

...........................^^^

...................Cachepilot (Internet)

or maybe it's just a switch, i'm not 100% sure on that one i didn't install it.

no...it's in a building with 50+ computers, 3 hubs.

Hi,

Looking at your issue, theres a lot of stuff kinda wonky with your rules. For one if you are already allowing everyone to access HTTP/HTTPs in an Allow everyone internet access rule ... you should not be specifying HTTP and HTTPs again in your SMTP/IMAP rules.

Now lets get started.

What you want to do is define a new Access rule. In this access rule you want to name it something like 'Allow SMTP client Access' so it's easily identifiable.

Also in your diagram you say it goes .... ISA Firewall --> Router --> File Server ?

Where is the internet connection connected into?

Is the internet connection at the Router or at the ISA firewall?

Also if the internet connection is at the router I think you diagram should probably go something like Router --> ISA Firewall --> File Server .... with the ISA firewall protecting the File server or am I misunderstanding your layout.

Next you want to specify the Action as Allow

In the protocol tab you want to Add SMTP and SMTPS (These normally can be found in the Mail protocol section.) - You did this

Since you mentioned IMAP you also want to add IMAP4 and IMAPS (These are also found in the Mail protocol section.) - You did this

Next you will want to define a New custom protocol. This protocol should allow TCP on port 587. (This is frequently used port for remote SMTP access since port 25 is blocked by most major ISPs.). Name this custom protocol something like 'SMTP (587)' - You DID NOT do this

You want to add this new SMTP (587) protocol to your allowed protocol set. (The protocol you created will be found under the User-Defined section) - You DID NOT do this

On the From tab you want to allow either Internal or All Protected Networks or whatever group you want to have access that you have previously defined.

On the To tab you want to specify External

Users tab should be 'all users' or the designated users you want to have access.

Apply the rule.

Apply the rule to ISA

Now on the ISA server go to the monitoring section.

Setup a monitor with a rule to monitor traffic from the Client you want to test from.

Now go to that client and attempt the connection.

You should be able to successfully connect out now and you should be able to see every connection attempt and the pathing as it happens in the ISA monitor.

If nothing else is blocking or in front the ISA connection to the outside world you should be able to connect or at least be able to see what path it's taking and when is it dropping.

If you're seeing no connection attempts on the designated ports then you may have something else causing the problem or something is denied/blocked in another rule that is processing before it gets to your matched rule.

Let me know if this gets you on the right track.

HI, thanks for your detailed walk through, i think i did add the new port anyway but i went through it non the less incase i missed anything.

now when i try to send and receive in Outlook 2007

i get this

[email protected] - Sending - Complete

Syncronising subscribed folders for [email protected] - Errors

Task 'Synchronizing subscribed folders for [email protected].' reported error (0x800CCC0E) : 'Outlook cannot synchronize subscribed folders for [email protected]. Error: Cannot connect to the server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'

Attached is a screen shot of the ISA log output:

38375812.jpg

The Firewall, Server and Cachepilot(internet access) all go into a switch/router in the cabinet.

HI, thanks for your detailed walk through, i think i did add the new port anyway but i went through it non the less incase i missed anything.

now when i try to send and receive in Outlook 2007

i get this

[email protected] - Sending - Complete

Syncronising subscribed folders for [email protected] - Errors

Attached is a screen shot of the ISA log output:

38375812.jpg

The Firewall, Server and Cachepilot(internet access) all go into a switch/router in the cabinet.

In your screen shots what is the 192.168.16.4 IP address? Is that an upstream firewall/router that web traffic gets passed through?

You might try refining your monitor filter to actually only show traffic going to Port 587 and 445 and 25 for the clients IP address to see if you see any activity. If you don't .... then you have something else going on before the traffic reaches the ISA firewall.

You should be seeing an attempt to connect to the specified port to the specified destination (Actual google imap address) but since you are seeing a connection going to port 1745 at that internal IP address either you have some rule that is redirecting traffic or your setup is configured to direct traffic up to that 192.168.16.4 address on port 1745 and then whatever that box is .... does something else with the traffic.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • WildBit Viewer 6.20 released; no further updates planned by Razvan Serea WildBit Viewer is a popular, fast, and extensive image viewer offering a comprehensive suite of tools for photographers, designers, and image enthusiasts. It includes a powerful Viewer, Slide Show, Editor, Search, Profile Switcher, and Multi-Screen Viewer. The Viewer provides blazing-fast folder, file list, and thumbnail navigation with customizable headers, full-screen view, and a shell toolbar to organize favorite folders. It supports all major graphic formats (over 70), including JPEG, TIFF, PNG, BMP, GIF, PCX, TGA, and RAW formats. Detailed Image Info shows EXIF, IPTC, and XMP metadata, with rotation based on EXIF orientation, wallpaper setting, image comparison, geo-tag viewing, color labels, and CMS-aware color management. The Slide Show module offers 176 transition effects, multi-monitor support, custom shows with per-image settings, image marking, zoom, rotate, and desktop hiding for a professional viewing experience. The Editor supports advanced image manipulation, including crop, resize, color adjustments, curves, edge detection, effects, batch processing, retouching, layer support, and printing. Users can apply mass renaming, update or clear metadata, and work with multi-page TIFFs and animated GIFs. Search allows filtering by name, location, date, size, attributes, and metadata, while the Profile Switcher saves and loads custom layouts for all modules. The Multi-Screen Viewer opens multiple windows on available monitors, allowing simultaneous image viewing with independent zoom, pan, and rotation. WildBit Viewer also supports portable operation, 32- and 64-bit versions, Unicode, high-DPI displays, and multiple Windows styling options. With its combination of speed, versatility, and rich feature set, WildBit Viewer is an indispensable tool for managing, editing, and showcasing images efficiently. WildBit Viewer key features: Blazing-fast folder, file list, and thumbnail browsing Supports 70+ image formats including JPEG, TIFF, PNG, BMP, GIF, and RAW Full-screen view with multi-monitor support Explorer-style file handling with customizable headers Thumbnail Browser with sorting, view change, and fast size adjustment EXIF, IPTC, and XMP metadata viewing and editing Automatic rotation based on EXIF orientation Shell toolbar for organizing favorite folders Image Compare to calculate similarity between images Mass renaming and batch metadata updates File List Generator (HTML, CSV, RTF, TXT, Unicode) Rating and color labels, CMS-aware color management Video playback (AVI, MPG, MPEG, WMV) Animated GIF, multipage TIFF, Camera RAW support Slide Show with 176 transition effects and custom settings Editor: crop, resize, rotate, flip, canvas resize, and retouching tools Batch processing and image format conversion Multi-Screen Viewer: multiple windows with independent zoom, pan, and rotate Profile Switcher: save, load, reset, delete module profiles Portable operation, 32-/64-bit support, Unicode, and high-DPI ready WildBit Viewer 6.20 changelog: Viewer, Slide Show, Editor, Search, Profile Switcher & Multi Screen Viewer. Updated ImageEn to 15.0.0 version. Viewer, Slide Show, Editor, Search, Profile Switcher & Multi Screen Viewer. Updated Jedi JCL&JVCL. Viewer - Image Geo Info, OpenStreetMap removed. Slide Show Remote Mode removed. Note! This means that WildBit Slide Show Remote is now officially EOL. Editor - Shortcut keys for Capture removed. Optimized code. Note! This version includes help what supersedes all previous releases. plus Lots of bug fixes and changes, check Readme files for details. WildBit Viewer End‑of‑Life WildBit Viewer has reached its final release with version 6.20. As development comes to a close, no further feature updates are planned. WildBit Slide Show Remote reached End-of-Life on 06 June 2026, while WildBit Viewer will reach End-of-Life on 30 June 2026. Downloads will remain available until the end of July 2026 (possibly extending into early August). After End-of-Life, the software will no longer receive updates, security fixes, or technical support. Download: WildBit Viewer 64-bit | Portable 64-bit | ~70.0 MB (Freeware) Download: WildBit Viewer 32-bit | Portable 32-bit Links: WildBit Viewer Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Thanks for liking it! 😊 That's Arch Linux with Gnome.
    • LOL. Can't even quote and edit a comment correctly. Figures you're a Linux user.
    • It won't perform hugely better than the 3080 unless you're VRAM limited in games. Have you tried putting new thermal pads on them 3080 and giving it a good clean to see if you can regain your temps and overclock?
  • Recent Achievements

    • Week One Done
      Windows Guy earned a badge
      Week One Done
    • Dedicated
      Mark Spruce earned a badge
      Dedicated
    • Collaborator
      conkir earned a badge
      Collaborator
    • Rising Star
      olavinto went up a rank
      Rising Star
    • One Month Later
      lamborghiniv10 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      479
    2. 2
      PsYcHoKiLLa
      252
    3. 3
      Steven P.
      71
    4. 4
      FloatingFatMan
      69
    5. 5
      +Edouard
      69
  • Tell a friend

    Love Neowin? Tell a friend!