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

    • Kdenlive 26.04.2 by Razvan Serea Kdenlive is an acronym for KDE Non-Linear Video Editor. It works on GNU/Linux, Windows and BSD. Through the MLT framework, Kdenlive integrates many plugin effects for video and sound processing or creation. Furthermore Kdenlive brings a powerful titling tool, a DVD authoring (menus) solution, and can then be used as a complete studio for video creation. Kdenlive supports all of the formats supported by FFmpeg or libav (such as QuickTime, AVI, WMV, MPEG, and Flash Video, among others), and also supports 4:3 and 16:9 aspect ratios for both PAL, NTSC and various HD standards, including HDV and AVCHD. Video can also be exported to DV devices, or written to a DVD with chapters and a simple menu. Video editing features: Multi-track editing with a timeline and supports an unlimited number of video and audio tracks. A built-in title editor and tools to create, move, crop and delete video clips, audio clips, text clips and image clips. Ability to add custom effects and transitions. A wide range of effects and transitions. Audio signal processing capabilities include normalization, phase and pitch shifting, limiting, volume adjustment, reverb and equalization filters as well as others. Visual effects include options for masking, blue-screen, distortions, rotations, colour tools, blurring, obscuring and others. Configurable keyboard shortcuts and interface layouts. Rendering is done using a separate non-blocking process so it can be stopped, paused and restarted. Kdenlive also provides a script called the Kdenlive Builder Wizard (KBW) that compiles the latest developer version of the software and its main dependencies from source, to allow users to try to test new features and report problems on the bug tracker. Project files are stored in XML format. An archiving feature allows exporting a project among all assets into a single folder or compressed archive. Built-in audio mixer Kdenlive 26.04.2 changelog: Remove not needed actions from render info, fix rough size calculation for rendering. Fix clip sometimes not inserted in timeline when moving vertically in bin drag. Fix transcoding from clip properties. Cleanup render profile audio quality. Use percent based value for audio quality, and adjust the range accordingly per codec. Fixes bug #520750 Enforce even numbers for render width/height. Fixes bug #520737 Fix nightly flatpak - disable rnnoise until implemented. Fix missing initialization. Edit mediacapture.cpp. Fix document unnecessarily marked as modified on opening, triggering a backup request. Fix incorrect detection of missing and remote clips causing unwanted backups. Fixes issue #2194 Fix tests. Fix tmp files copied to wrong location when setting project folder. Fixes bug #467740 Fix color clips not selected on creation. Use QFileInfo instead of QUrl/QDir to try fixing Windows shared drives. Fixes bug #451413 Fix timeline preview incorrectly invalidated when a track with effect duration changed. Fixes bug #514541 Fix missing var. Display paths in native format in render widget. Fixes bug #520428 Simple splash: fix pressing return always triggered the same button. Minor update to simple splash. Fix unwanted clips added to timeline and cleanup. Fixes issue #2190 Minor layout improvements to welcome screen, add Quit and Open shortcuts. Fix broken welcome dialog layout in tiling compositors. (craft) Limit the number of CPU cores used during a Windows build with mingw as some .cpp files are memory intensive to build. (kde-ci) Limit the number of CPU cores used during a build as some .cpp files are memory intensive to build. (kde-ci) Cleanup old entries. Another fix for animation crash. Fix uninitialized function - crash on create animation. Another attempt to fix MacOS permissions. MacOS: fix bundle release version. Fix MacOS plist path. Fix MacOS build. Explicitely link against Qt::Core. Download: Kdenlive 26.04.2 | 128.0 MB (Open Source) Download: Standalone Executable View: Kdenlive Home page Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Here's how to watch the Xbox Games Showcase today and what to expect by Pulasthi Ariyasinghe The June games showcase week has been a packed one, with everything from major presentations like Sony and Summer Game Fest to indie-focused reveals coming in almost every day. Now, it's almost time for another big one, with Microsoft bringing its Xbox Games Showcase back later today. This is a double feature too, with a Gears of War E-Day deep dive also being attached to it. For anyone wanting to tune in online, the 2026 Xbox Games Showcase is kicking off at 10 AM PT | 1 PM ET | 6 PM BST | 7 PM CEST later today, June 7. The event will be available to watch on the official Xbox YouTube (4K 60FPS), Twitch, Facebook, Steam, Amazon Live, and other portals. Separate livestreams for American Sign Language and Audio Description will also be available. "This year marks 25 years of XBOX, and this Showcase is poised to be a true celebration, offering world premieres, new gameplay, fresh updates, and more for a swathe of projects we cannot wait to share," said Microsoft about this presentation. With a new CEO behind it that is pulling off some interesting moves, Xbox may have some surprises to reveal today. New looks at first-party games like Halo Campaign Evolved from Halo studios, Fable from Playground Games, InXile Entertainment's Clockwork Revolution, Mojang's Minecraft Dungeons II, and Call of Duty: Modern Warfare 4 from Infinity Ward are to be expected here. We may finally get to see the new Blade from Arcane Studios in action and a new Persona game from Atlus at the showcase too. Surprise announcements may also arrive from other Microsoft-owned studios like Bethesda, MachineGames, Ninja Theory, Obsidian, Rare, World's Edge, or Blizzard. Considering how every new release nowadays is staying away from November and December to avoid Grand Theft Auto VI's release, any launch dates Microsoft announces will probably skip those months as well. Once the Xbox Games Showcase ends, Microsoft will immediately kick off the Gears of War: E-Day Direct. This deep dive into the upcoming prequel from The Coalition should attach gameplay footage and perhaps a release window to the highly anticipated project.
    • People in the '50s and '60s had the same attitude, and we're still here over a half century later.
    • So after some fiddling I was able to get it to run at a pretty stable 30FPS. I'm slightly surprised about how much fiddling I had to do to get there though given what I thought was reasonable hardware: Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics Memory: 16 GiB of RAM Graphics Processor 1: AMD Radeon 780M Graphics Graphics Processor 2: AMD Radeon RX 7700S I think I could do it better if I use Linux rather than Windows, Windows RAM usage is stupid without stripping the system down. But once I got it working in a reasonable state, it was so awesome! I felt like a new Bond! If anyone has any advice to get things going a bit smoother FPS-wise, I'd appreciate it.
    • Something is rotten in the state of Denmark Australia
  • Recent Achievements

    • 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
    • Week One Done
      lamborghiniv10 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      482
    2. 2
      PsYcHoKiLLa
      256
    3. 3
      Steven P.
      74
    4. 4
      +Edouard
      70
    5. 5
      FloatingFatMan
      69
  • Tell a friend

    Love Neowin? Tell a friend!