Author Topic: Scan several ports for POP3 and SMTP  (Read 4124 times)

0 Members and 1 Guest are viewing this topic.

Offline Lars-Erik

  • Avast Evangelist
  • Sr. Member
  • ***
  • Posts: 394
    • Lars-Erik Østerud
Scan several ports for POP3 and SMTP
« on: November 06, 2006, 12:07:06 AM »
I use my email program to check two accounts.

One use POP3 at port 110 (normal) but the other one requires POP3 on SSL port 995. How do I make avast! scan incoming mail on both ports?

Same for SMTP. I use one outgoing server at port 25 (normal) and another server that is on the nonstandard port 587. How do I make avast! scan outgoing mail on both ports?

For security reasons, shouldn't avast! scan ALL normal ports at lease for email (both 110 and 995 for incoming). And at least we must have the possibility to enter more than one port to scan for each service.
www.osterud.name - ICQ: 7297605 - AIM/Yahoo/Facebook/Skype/Astra: LarsErikOsterud

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89239
  • No support PMs thanks
Re: Scan several ports for POP3 and SMTP
« Reply #1 on: November 06, 2006, 12:39:00 AM »
You don't say what your email program is ?

avast doesn't monitor the SSL ports, 995, 587 or otherwise, even if you added these to the ports to be scanned by avast. The whole point of SSL, secure sockets layer (encrypted email is to protect your email from outside intrusion, anti-virus programs included. Trying to scan ports not using the POP3 or standard SMTP protocols usually results in errors.

Depending on your email program avast can't scan secure content without a third party interface, like STunnel, a forum search for STunnel will return information on this. MS Outlook and The Bat, which have plug-ins designed for the email program means that instead of being outside of the program, avast is effectively integrated with it allowing for scanning of SSL/TLS ports also.

You can add additional ports to the email scanner but they must be using standard email protocols not SSL/TLS ports. I have to use a different port for smtp and I add it to the SMTP list in the Internet Mail provider, e.g. 25, 225 (a non-standard port but using the SMTP protocol).

Check these out:
Gmail and Avast Providers
Solution: Using GMail with Avast and a SPAM filter
Redirecting multiple SSL accounts
Stunnel now comes as an installer which installs Open SSL and Stunnel so now you just have to download the installer version from here http://www.stunnel.org/download/binaries.html
Secure connection with a Spam filter and avast!
How to handle the secure connection with a SPAM filter and avast!
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.4.6112 (build 24.4.9067.762) UI 1.0.803/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline Lars-Erik

  • Avast Evangelist
  • Sr. Member
  • ***
  • Posts: 394
    • Lars-Erik Østerud
Re: Scan several ports for POP3 and SMTP
« Reply #2 on: November 06, 2006, 12:41:42 AM »
I use Forte Agent. How do I add more SMTP port to scan? I only find room for one in the mail scanner setup (must use 25 and 587)...
www.osterud.name - ICQ: 7297605 - AIM/Yahoo/Facebook/Skype/Astra: LarsErikOsterud

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89239
  • No support PMs thanks
Re: Scan several ports for POP3 and SMTP
« Reply #3 on: November 06, 2006, 12:59:12 AM »
You don't want to add 587 if that is for SSL use avast can't scan it and it usually causes timeout errors, etc. as it stalls trying to scan encrypted email.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.4.6112 (build 24.4.9067.762) UI 1.0.803/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Scan several ports for POP3 and SMTP
« Reply #4 on: November 06, 2006, 06:28:14 AM »
Lars-Erik,

avast cannot, may not and never will scan those ports that are used to initiate a secure connection directly between your mail client (or any other mail client) and a mail server.  This is just the same as no antivirus will scan secure connections between your browser and your bank account. 

So, avast is not going to be able to scan POP3 SSL connections (typically on port 995) or TLS SMTP connections (typically - but not exclusively - on port 587).  As DavidR has reported here and I have reported in the past - any attempt to involve avast in scanning TLS connections on port 587 will fail. 

Frankly, if your email server already provides antivirus scanning of your email (as GMail - a user of secure port connections - does for example) then there is little advantage in having avast scan the same emails again.  However, that must be a decision for each user to make.

DavidR has advised you correctly that if you wish to have secure email scanned that is received or sent then you must use a third party program that will terminate/initiate the secure session within your computer but allow the mail to be received/sent by the mail client on an unsecured session that can be scanned by avast.  Remember that the unsecured email session is transferred to the secure session within your computer.  The best known third party program is STunnel.

For a graphic of STunnel use with avast please see:

http://forum.avast.com/index.php?topic=23814.msg201231#msg201231

When you are using Stunnel you only need to allow avast to scan the standard POP and SMTP ports - the rest is handled by STunnel.

Offline Lars-Erik

  • Avast Evangelist
  • Sr. Member
  • ***
  • Posts: 394
    • Lars-Erik Østerud
Re: Scan several ports for POP3 and SMTP
« Reply #5 on: November 06, 2006, 09:28:36 AM »
OK, forget about the SSL and TSL. I still need to scan several ports. One SMTP server uses the standard 25, the other uses 587 (for normal SMTP, not SSL or TSL). How do I make avast! scan both these servers?
www.osterud.name - ICQ: 7297605 - AIM/Yahoo/Facebook/Skype/Astra: LarsErikOsterud

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Scan several ports for POP3 and SMTP
« Reply #6 on: November 06, 2006, 09:55:44 AM »
Lars-Erik,

I shall ignore any concerns and refer you back to the post before mine where DavidR has explained to you how to scan multiple ports for POP & SMTP.

Please understand I do not recommend these actions to you - you use them at your own risk. 

       

Offline Lars-Erik

  • Avast Evangelist
  • Sr. Member
  • ***
  • Posts: 394
    • Lars-Erik Østerud
Re: Scan several ports for POP3 and SMTP
« Reply #7 on: November 06, 2006, 10:02:49 AM »
Ohhh, I missed that one :-)   Sorry.   It was a bit to simple :-))
www.osterud.name - ICQ: 7297605 - AIM/Yahoo/Facebook/Skype/Astra: LarsErikOsterud

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: Scan several ports for POP3 and SMTP
« Reply #8 on: November 06, 2006, 10:07:59 AM »
Some things are too simple to be true.

It may be you have choices ... but ...

There are some who believe that, because their mail client gives them options, they may dictate the connection status to their mail server.  In most cases they are wrong and must conform to the connection status demanded by their mail server.