Author Topic: avast with local mail server  (Read 5957 times)

0 Members and 1 Guest are viewing this topic.

makaio

  • Guest
avast with local mail server
« on: June 21, 2004, 02:23:42 PM »
Hello everyone!

I am currently trying to set up hMailServer http://www.hmailserver.com on my Win XP Home machine. I am running avast 4.1 Home.

I found the avast proxies to be using the ports for SMTP, POP3, and IMAP, thereby unabling hMail to run.

Does anyone know how to use both at the same time?

TIA,
Matthias

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re:avast with local mail server
« Reply #1 on: June 21, 2004, 04:14:41 PM »
Hope this help:

How-To Configure hMailserver and ASSP to filter SPAM
Jason Weir <jason.weir@comcast.net> 4/14/2004

This configuration was tested with both hMailserver and ASSP running on the same Windows 2000 Professional box, but it should work on almost anything that will run hMailServer

hMailServer - http://www.hmailserver.com
ASSP - http://assp.sourceforge.net/

Software Versions:

- ASSP v1.0.9
- HmailServer v2.0.x and 3.x
- Activestate Perl v5.6.1

Requirements:

- hMailserver up and running, configured correctly and is passing mail.
- Perl installed with Win32::Daemon module installed

hMailServer Configuration:
- Open hMail Administrator
- Under Settings->SMTP change SMTP Port to 125 save settings and restart server

ASSP Installation & Configuration:

- Installation is straightfoward, download and unzip files to c:\assp
- Create the following directories
   c:/assp/spam
   c:/assp/notspam
   c:/assp/errors
   c:/assp/errors/spam
   c:/assp/errors/notspam
- Open a command prompt from c:\assp.  Run: perl assp.pl
- Point your browser to http://127.0.0.1:55555/ blank username, password is nospam4me
- Check the "Show Advanced Configuration Options" checkbox and click the "Apply Changes" Button
- Change the following Settings
   SMTP Destination = 127.0.0.1:125
   Check "As a Service" checkbox
   Listen port = 25
   Local Domains = list the domains you have hMailServer configured for
- Click the "Apply Changes"
- Press Ctrl-C to stop the assp.pl process
- Run: perl addservice.pl -i c:\assp\assp.pl c:\assp
- Start the Anti-Spam Smtp Proxy service
- Test by trying to telnet to 127.0.0.1:25 you should see the mail server banner.

This gets ASSP working in Test Mode, mail should now pass through ASSP to hMailServer.  You will notice messages building up in the spam and notspam directories.  If you see spam in the notspam folder or vice versa you must manually move those messages to the correct folder.  Once you have 100 or so messages build up in the spam and notspam folders run the rebuildspamdb.pl script, this builds the spam database.  Read the ASSP documentation regarding turning off test mode as well as automating rebuildspamdb.pl
The best things in life are free.

makaio

  • Guest
Re:avast with local mail server
« Reply #2 on: June 21, 2004, 04:28:22 PM »
Do I understand you correctly that you are suggesting to have avast listen on port 25 for SMTP-traffic and then routing it to hMailServer on port 125 (avast taking the place of ASSP in the tutorial)? How would I go about to make that connection?

What if I would add ASSP to my configuration as well? In that case avast would block port 25 for ASSP in the same way as it is now blocking HMailServer, would it not?

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re:avast with local mail server
« Reply #3 on: June 21, 2004, 07:35:04 PM »
Makaio, I'm not an expert on internet traffic and ports connection.
Anyway, I'll try, not more than this, the following:

avast could listen on port 25 for SMTP-traffic and this is the default.
It does not have to 'route' to 125 for hMailServer, it will be taken there is the hMailServer is set to listen on port 125. Well, I suppose the same I have for pop ports: avast listen on 110, Outlook Express + spam killer at 120 (for instance). Each program have its own configuration.

If both programs listen the same port, you'll get them in conflict.
Maybe, we need a programmer here  :-[
The best things in life are free.

makaio

  • Guest
Re:avast with local mail server
« Reply #4 on: June 21, 2004, 07:58:56 PM »
Makaio, I'm not an expert on internet traffic and ports connection.
Anyway, I'll try, not more than this, the following

Me neither, but thanks for the effort ;)

From my general understanding I would think that your proposal would not be working. If I would simply accept SMTP, POP and IMAP traffic on any other ports while paralelly accepting it on port 25 for avast, avast would be rendered useless, as any scanned mail would run into a black hole. The same mail would come through on the designated other port without being scanned. That's why I was asking for a way to "route" traffic from one port to another, after its having passed the avast proxy.

Quote
If both programs listen the same port, you'll get them in conflict.
Maybe, we need a programmer here  :-[
Yep, that's the problem at hand. Any experts in the matter with ideas?

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re:avast with local mail server
« Reply #5 on: June 21, 2004, 08:19:24 PM »
If I would simply accept SMTP, POP and IMAP traffic on any other ports while paralelly accepting it on port 25 for avast, avast would be rendered useless, as any scanned mail would run into a black hole.

I don't think so. At least for POP (inbound mail). I do scan the emails, caught virus, delete messages through avast. The email body has an added note, the icon appears on the system tray, the email header is maked as scanned by avast. And, after all, avast listen 110 and the message is taken by 120 (email client).
The best things in life are free.