HOWTO: Installing ASSP with hMailServer

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
Tyras
Normal user
Normal user
Posts: 34
Joined: 2006-11-01 07:57
Location: FL-US
Contact:

HOWTO: Installing ASSP with hMailServer

Post by Tyras » 2007-09-30 07:06

Installing ASSP with hMailServer

I am updating this How-To because the older versions are out of date in a couple of areas. Also, some information on things is misleading, conflicting and so forth. So this guide will explain how I set this up using the advice from previous guides and incorporating my own trial and error. Credit to previous hMail Forum posters, ASSP website for their works.

This guide assumes that you are installing hMailServer and ASSP on the same server. If this isn’t the case, then substitute the IP/hostname/ports for what is proper to your network layout. Also, this guide jsut represents how I did it. As always in IT (and for anyone who's taken a MS exam) there's more than one right answer. That said, if anyone has any comments or advice for a more efficient, better, smarter way to do this, please post. I will also be submitting this to the ASSP wiki in the hMailServer section (since that's currently blank)

This was set up and tested on Win2k3 Enterprise running in VMware.

Install hMailServer. The fineries of this are covered in great detail elsewhere. Disable all anti-spam features of the software.
Change the SMTP port settings in Settings-TCP/IP Ports to a port different than 25. In this example I use port 125.
Close hMailServer

Download the latest version of ActivePerl for Windows. At this time it is 5.8.8.822. Get the MSI version of the installer, and take note there are x86 and x64 versions. This example used the x86 version.
Install ActivePerl. Use the default options.
Restart the server

Now to configure ActivePerl and this is where the confusion comes. First off all how-to’s explain how to use the Perl Command Line to install packages, but the latest versions only use a GUI interface to install packages. Even still, by default all the packages that are needed are not available, and if you’re not versed in using Perl then it can be confusing while finding the right packages.
Open the Perl Package Manager from the Programs menu.
Click Edit | Preferences and select the Repositories tab.
This allows adding a package repository to the installation. This basically means that it add locations from the internet where you can find and download packages. This has to be done because the default repository does not have all of the required packages.
In the Name box, Type University of Winnipeg (or whatever you want to call it)
In the location box http://theoryx5.uwinnipeg.ca/ppms/package.lst
Then click Add.
Repeat steps for http://roth.net/perl/packages
Back to the View All Packages list. Find the following packages and right-click and mark them for installation. (Not all packages are required, but recommended. See ASSP website for more information)
Compress::Zlib
Digest::MD5
Email: Valid
File::ReadBackwards
Mail::SPF::Query
Mail::SRS
Net::DNS
Net::Syslog
Tie::RDBM
Time::HiRes
Win32::Daemon
Once you have marked all packages for install, click the green arrow along the top Run Marked Actions
This will start the download and installation of the packages. Keep in mind that several of the packages have prerequisite packages and the Perl Package Manager will install those as well.
Restart the server.

Download ASSP from sourceforge.net and decompress the contents. Most guides say to extract the files and folders into c:\ASSP, but this isn’t entirely accurate…
Create the following folders
C:\ASSP
C:\ASSP\spam
C:\ASSP\notspam
C:\ASSP\errors
C:\ASSP\errors\spam
C:\ASSP\errors\notspam
Take a look at the extracted ASSP contents. Drill down to the ASSP folder. The contents of this folder are what you need to use. Copy all folders and files in the ASSP_1.3.3.1-Install/ASSP folder. This will include several folders and .pl files. Copy these items to your newly created C:\ASSP folder.
Open a CMD prompt.
CHDIR to C:\ASSP
Use the Perl command to add ASSP to the Windows Services (if you want ASSP to run as a service…which you most likely do.)
perl addservice.pl -i c:\assp\assp.pl c:\assp
Restart the server.

Use Perl command to run assp.pl. Allow this to run in the command window. Connect to the ASSP Website. http://localhost:55555. In server setup, check the box to set ASSP to run as a windows service. This will create the assp.cfg file that is required.

Open C:\ASSP\assp.cfg with Notepad
On line 15, verify AsAService:=0 has changed to AsAService:=1
Click Start | Run and type Services.msc
Find the Anti Spam SMTP Proxy service.
Change the startup type to Automatic
Change the Recovery options as you see fit
Start the service
Open a web browser
Navigate to http://Server:55555
Log in with no username and ‘nospam4me’ as the password.
Open the Server Setup menu
Change the Admin password
Open the Network Setup Menu
Change the SMTP Destination to 127.0.0.1:125
This tells ASSP to relay your mail to hMailServer
If you accept SMTP from an alternate port (to compensate for ISP’s who blocks outgoing port 25, put this port in Second SMTP Port
Open the Relaying Menu
Add 127.0.0.1 to Accept all mail
Also add any other IP that can relay from this server (web server with Round Cube etc)
In Local Domains, adds all of your domains that you are accepting mail for.
Open the Collecting Menu
Add an Address, User or Domain here who always receives spam. This will help build the database.

These are the most obvious setting to change. From here just let spam build up in the folders. You can check the spam and notspam folders to help classify some spam that is classified as notspam and visa versa.

If you are supporting users, consider downloading and installing the ASSP Toolbar. It integrates with Outlook and will allow users to easily report items as being spam.
http://freeyournet.com/ASSPToolbar.html

If anyone has questions or problems, please post, or if needed PM me. I'd be glad to assist people with setup.

----
Edit - I added a bit more clarity around the assp.cfg file. All the guides say to just create it, but it's not exactly that simple.
I've also become quite adept at this, so if anyone needs help (email, IM, remote etc) i'm able to do it.
Last edited by Tyras on 2007-10-07 18:45, edited 1 time in total.
Tyras

bmorejon
Normal user
Normal user
Posts: 43
Joined: 2007-06-01 18:48

Post by bmorejon » 2007-10-06 23:27

I dont see any assp.cfg file.

And when I start the service it STARTS and STOPS! some one help me please :shock:

User avatar
danny6167
Senior user
Senior user
Posts: 472
Joined: 2007-02-07 15:24
Location: Western Australia
Contact:

Post by danny6167 » 2007-10-12 17:07

try starting assp.pl as a normal program and access to web interface and change the windows service settings

Shadoxity
Normal user
Normal user
Posts: 97
Joined: 2006-01-06 06:20

Post by Shadoxity » 2007-11-22 05:09

i think i love you :P hahaha That is *if* this works for me :) i have been fkn around so much trying to get some anti spam going, and hte old guide i could just not get through! i hope this works.

Thanks heaps for your time!!! will be trying this soon maybe tonight!

Shadoxity
Normal user
Normal user
Posts: 97
Joined: 2006-01-06 06:20

Post by Shadoxity » 2007-11-22 13:06

Nope, unable to send emails after setting it up :( i hate this stuff!!! why cant it just work!!!

at0mic
Normal user
Normal user
Posts: 34
Joined: 2007-10-20 18:53

Post by at0mic » 2008-01-28 18:16

I installed 7 of the Perl packages using the Perl Package Manager without any problems. However, I cant find the following:

Mail::SPF::Query
Mail::SRS
Net::DNS
Tie::RDBM

Do I have to get download these manually or can they be downloaded using C:\Perl\bin\ppm-shell.bat?

I've goggled for ages and found loads of tutorials about how to install ASSP and SpamAssassin but none of them explain how to install the above packages.

User avatar
SorenR
Senior user
Senior user
Posts: 3817
Joined: 2006-08-21 15:38
Location: Denmark

Post by SorenR » 2008-01-28 18:40


at0mic
Normal user
Normal user
Posts: 34
Joined: 2007-10-20 18:53

Post by at0mic » 2008-01-29 14:00

I downloaded them, extracted them into a directory on my computer and added the location as a repository in Perl Package Manager yet it cant find any packages.

Am I the only person having problems with these packages or is everyone else not bothering with the optional packages?

Please help

User avatar
SorenR
Senior user
Senior user
Posts: 3817
Joined: 2006-08-21 15:38
Location: Denmark

Post by SorenR » 2008-01-29 14:38

The README file says you should do this:
(And you will probably need to read this too: http://johnbokma.com/perl/make-for-windows.html)

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

at0mic
Normal user
Normal user
Posts: 34
Joined: 2007-10-20 18:53

Post by at0mic » 2008-02-06 14:21

Thanks a lot for your help SorenR :D

plobby
Normal user
Normal user
Posts: 115
Joined: 2008-01-29 07:04

Post by plobby » 2008-02-29 06:35

Slight issue, didn't see anything in the ASSP forums/wiki about it, Ill post over there after this but thought I may get a faster response here.

I have everything up and working, for the most part. The only problem I am having right now is reporting spam from my webmail. It says it works properly, but when i go into the errors/spam folder, that email i just forwarded that slipped through is not in there.

The webmail/hmailserver/assp are all on the same server.

I set it up so a gmail account of mine can forward spam to the address and those are showing up just fine in the errors/spam folder. Is there a setting I missed as to something with the localhost not reporting properly?

Whitelist additions and all that work just fine via email reporting...

plobby
Normal user
Normal user
Posts: 115
Joined: 2008-01-29 07:04

Post by plobby » 2008-03-06 02:23

So i set up cc mail and the send all address to spam@mydomain.com. It DOES forward the rejected spam and shows up in the data folder of the email address I have it send to but it will not show up in my webmail or outlook. It just refuses to download. I can go into the data folder and manually open the messages on the server. Any idea why this is doing so?

plobby
Normal user
Normal user
Posts: 115
Joined: 2008-01-29 07:04

Post by plobby » 2008-03-06 06:36

Figured it out, I'm not sure if this is a standard feature, but it sent it to a folder that wasn't created. Inbox.spam

at0mic
Normal user
Normal user
Posts: 34
Joined: 2007-10-20 18:53

Post by at0mic » 2008-03-11 15:07

some of the packages I'm trying to install show the following error message during the nmake comand
'cl' is not recognized as an internal or external command
I understand this is because I don't have a Visual C++ complier installed. Is there a way around this?

I've tried adding the two repository's in the first post by Tyras but Perl Package manager cant find any packages in either of the links. I'm using ActivePerl 5.10.0 Build 1002.

Please can anyone help?

User avatar
katip
Senior user
Senior user
Posts: 779
Joined: 2006-12-22 07:58
Location: Istanbul

Post by katip » 2008-03-11 19:53

Add to your repositories http://trouchelle.com/ppm/
Which packages exactly make problem?

at0mic
Normal user
Normal user
Posts: 34
Joined: 2007-10-20 18:53

Post by at0mic » 2008-03-13 00:50

I've solved the problem. I was using ActivePerl 5.10 but those packages are for 5.8.

With the lastest version of ActivePerl 5.8 installed it found 11332 packages on http://trouchelle.com/ppm/

By the way, is Tie-RDBM the same as Tie-RDBM-Cached?

Tyras
Normal user
Normal user
Posts: 34
Joined: 2006-11-01 07:57
Location: FL-US
Contact:

Post by Tyras » 2008-03-13 19:31

Yes I was just installing ASSP for a client and ran across this. I can confirm that my How To doesn't work well with the 5.10 version of ActivePerl.

At0mic-I've never been able to find a repository that had the Tie-RDBM package. since i've never needed it, i never bothered looking too hard. but no those won't be the same.

User avatar
katip
Senior user
Senior user
Posts: 779
Joined: 2006-12-22 07:58
Location: Istanbul

Post by katip » 2008-03-14 06:25


stormfighter
New user
New user
Posts: 2
Joined: 2008-03-27 21:03

Re: HOWTO: Installing ASSP with hMailServer

Post by stormfighter » 2008-03-27 21:13

i have just installed assp and it works perfectly, from the first second on there was no more spam.

but now after about 2 weeks i encountered a problem when i wanted to send a mail through my server. yahoo says that i have an open relay. so i made a test at abuse.net and it said that my relay is possibly open. i tried to send a mail through my server without authentification and it didn't work. so i don't understand why it says that my server is an open relay?! when i disable assp and run hmailserver only, the test says that my relay is safe because it needs authentication. so i think that assp doesn't answer with "authentication required", this does only the hmailserver and so yahoo and abuse.net thinks that it is an open relay...

is there any setting in assp that i can tell him to check the username from the sender and blocks anonymous users at first?

User avatar
katip
Senior user
Senior user
Posts: 779
Joined: 2006-12-22 07:58
Location: Istanbul

Re: HOWTO: Installing ASSP with hMailServer

Post by katip » 2008-03-28 06:47

stormfighter wrote: is there any setting in assp that i can tell him to check the username from the sender and blocks anonymous users at first?
Check Validate Recipient section -> LocalAddresses_Flat
It's a good idea to join ASSP mailing lists for such questions. There's great support there.
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS

stormfighter
New user
New user
Posts: 2
Joined: 2008-03-27 21:03

Re: HOWTO: Installing ASSP with hMailServer

Post by stormfighter » 2008-03-29 19:45

thank you very much, that worked as expected!

Julien PHAM
New user
New user
Posts: 21
Joined: 2006-01-19 11:35
Location: France

Re: HOWTO: Installing ASSP with hMailServer

Post by Julien PHAM » 2008-12-11 13:36

Thanks for this wonderful howto.
Now, how can I check if the mails are really processed by ASSP and not direct to hmailserver?

Do I have to configure hmailserver some way as well?

Thanks

raywu168
New user
New user
Posts: 3
Joined: 2006-08-14 18:06
Contact:

Re: HOWTO: Installing ASSP with hMailServer

Post by raywu168 » 2009-05-01 01:47

Thanks for the HOWTO. I am trying to install ASSP but ran into some problems. Once I installed ASSP, I don't see any email coming through. hMailServer log file shows four messages, Mail from, OK, QUIT, and goodbye, but the message never goes to my mailbox.

Also, I am having trouble install Mail:SRS module, one of its prequisite DB_File is no longer available in any PPM repository. I download DB_File module tries to install manually, but it requires c compiler (cl.exe), llibdb (Berekely DB), even I installed all of these, but I still ran into error message such as:
C:\Perl\lib\CORE\excpt.h(31) : fatal error C1189: #error : ERROR: Use of C runt
ime library internal header file.

Any body has experience install ASSP on Perl 5.8.8.822? Thanks in advance.

Here's Jonny
New user
New user
Posts: 10
Joined: 2010-03-25 00:11

Re: HOWTO: Installing ASSP with hMailServer

Post by Here's Jonny » 2010-03-26 21:05

Is this still valid for the latest releases ??
Would you recommend this over spamassassin ?

Thanks

viperx1981
New user
New user
Posts: 2
Joined: 2011-05-05 22:04

Re: HOWTO: Installing ASSP with hMailServer

Post by viperx1981 » 2011-05-05 22:12

hello there i need some help with my hmail - assp setup on windows 2003 .

after following your online installation guide , everything seems ok , however when sending from an external email to a local email on my server the mail is sent but not recieved

local emails to local emails send and recieve ok
and
local emails to external emails send and recieve ok

so im thinking there is something in the assp setup that ive not done

ive changed hmail smtp to port 125 as well

any advice would be muchly apprieated. :roll:

thedealer
New user
New user
Posts: 7
Joined: 2011-07-14 18:39

Re: HOWTO: Installing ASSP with hMailServer

Post by thedealer » 2011-07-15 17:41

viperx1981 wrote:hello there i need some help with my hmail - assp setup on windows 2003 .

after following your online installation guide , everything seems ok , however when sending from an external email to a local email on my server the mail is sent but not recieved

local emails to local emails send and recieve ok
and
local emails to external emails send and recieve ok

so im thinking there is something in the assp setup that ive not done

ive changed hmail smtp to port 125 as well

any advice would be muchly apprieated. :roll:
The fact that you are still using Windows 2003 might be a key part of your issues. over eight years have passed, as you may want to consider an upgrade at least to XP.

rjk
Normal user
Normal user
Posts: 248
Joined: 2010-03-30 19:30
Location: uʍop ǝpısdn

Re: HOWTO: Installing ASSP with hMailServer

Post by rjk » 2011-07-15 19:18

thedealer wrote:The fact that you are still using Windows 2003 might be a key part of your issues. over eight years have passed, as you may want to consider an upgrade at least to XP.
Err.... XP is older than Server 2003 FYI...
XP was released near the end of 2001, and Server 2003 was released near the end of 2003.

EDIT: spelling
hMailServer 5.5.2-B2129 on Server 2008 R2 VM
MySQL 5.5.25, IIS 7.5, PHP 5.6.2 via FastCGI, RoundCube 1.0.3
XenServer 6.0 on HP DL380 G5 32GB RAM

User avatar
katip
Senior user
Senior user
Posts: 779
Joined: 2006-12-22 07:58
Location: Istanbul

Re: HOWTO: Installing ASSP with hMailServer

Post by katip » 2011-07-15 19:27

XP, 2003, 7... whatever, it's an ASSP issue.
Once again : pls join their mailing list. great support there.
Katip
--
HMS 5.7.0 x64, MariaDB 10.4.10 x64, SA 3.4.2, ClamAV 0.101.2 + SaneS

viperx1981
New user
New user
Posts: 2
Joined: 2011-05-05 22:04

Re: HOWTO: Installing ASSP with hMailServer

Post by viperx1981 » 2011-07-18 22:40

ok fixed the problem , it actually was one of the settings in hmail, i had require smtp auth on local to external emails, all i did was deselect the box and now works perfectly. lol

Post Reply