Talk:Quick Start for Windows
From ASSPSMTP
On This Page |
Article Comments & Suggestions
- This article should probably be split. While the Installation instructions are Win32 specific, the other setup info and notes are applicable to any implementation. I'm thinking that all the other sections should perhaps get their own articles so they can be interlinked or perhaps used as template includes into other articles that cross-address the same information. Thoughts/ideas? --ME2 20:14, 5 September 2006 (MDT)
- In the Quick Start For Win32 instructions please make step 4 read as follows: c:\perl\bin\ppm install http://www.roth.net/perl/packages/win32-daemon.ppd
- I don't believe that would be relative to the the other steps of the instructions. The module installation instructions are performed from inside of the PPM application environment, per instructions #2-3, not a Windows command prompt. Adding the PPM application name with or without a full path would cause an error. Unless you can explain a reason to make this suggested change that I do not see myself, the instructions are going to remain the same. --ME2 21:05, 6 November 2006 (MST)
- In the Special Notes sections I [think] there is a typo. I believe the first question should read "Why is saving incoming emails that [[do not]] receive a Mail Ok status in the notspam directory bad?" Otherwise I can't make sense of the answer. --Benze 13:12, 15 November 2006 (MST)
- I don't believe there is a typo. mailok messages are not necessarily ham, and are in-fact typically rated spam - otherwise they would be in the ham folder. Messages that are mailok have been isolated from the ham for a reason, but are intentionally not considered spam and should not add to the spam corpus. This is all based on typical configuration settings in ASSP. If you are still confused about what types of messages actually end-up in the mailok folder, post your question to the assp-user list. Hopefully we will create a Wiki article addressing mailok in the near future. --ME2 13:53, 15 November 2006 (MST)
- I suggest to add on 4. that the ppm command line might be executed in the following way (to avoid graphical interface)
- "ppm install http://www.roth.net/perl/packages/win32-daemon.ppd"
- (ppm in dos command line at the beginning)
- While this is true - and typically the preferred method for those of us that are experienced using Perl on Win32 - I don't think its applicable to a "quick start" guide. We do want the new user to understand what they just installed and what they are doing. A more experienced user will recognize that they do not need to do that. And - Perl may not be in the %PATH%, which would just cause more questions/issues for the inexperienced user.
- Addendum: Having recently upgraded to a newer version of Perl, and confirming the installation instructions - you're right, and the instructions should use "ppm install ...", but not because its easier - but, because there is no longer a command-line based application environment anymore. You can use single command-line features, or run the new GUI - but the command-line interface has been removed. I will update the documentation shortly. --ME2 21:39, 29 July 2007 (PDT)
I've just installed perl 5.8.8 build 822 and the ppm command line interface is still there, it just needs to be invoked using ppm-shell (instead of ppm or ppm3 as in earlier builds). However, that serves only to make the "ppm install" option even more relevant, imo.
- make this more usefull: add links: get active-perl from here: [1]
- What an oversight. Thanks, thy will be done!
Quick install batch script by Geniusfreak
This is a script I use to install the required perl modules and create the directory structure.
This script is deprecated. A Perl based version is currently in private beta.
ASSP-Prep.bat
rem save this as ASSP-Prep.bat @echo off cls echo. echo ================================ echo = Installing perl modules = echo ================================ call ppm3 install http://www.roth.net/perl/packages/win32-daemon.ppd call ppm3 install Net-DNS call ppm3 install perl-LDAP call ppm3 install Mail-SPF-Query call ppm3 install Email-Valid call ppm3 install mail-srs call ppm3 install File-ReadBackwards cls echo. echo ===================================== echo = Creating directory structure = echo ===================================== mkdir c:\assp\notspam mkdir c:\assp\spam mkdir c:\assp\errors\notspam mkdir c:\assp\errors\spam pause
Install/update all modules batch script by Micheal Espinola Jr
This script should be named: AWI-PPM-installer-abstract.cmd
@ECHO OFF CLS ECHO. ECHO [AWI] ASSP Win32 Installer 3.0 (PPM installer abstract) ECHO.=============================================================================== ECHO. REM // This script must be run within the Perl executable path, or the Perl bin REM // directory. :SET_ENVIRONMENT SETLOCAL :LETS_DO_IT ECHO Installing Perl modules.. & CALL :INSTALL_MODULES ECHO Upgrading Perl modules.. & CALL :UPGRADE_MODULES GOTO :END :INSTALL_MODULES REM // Install Perl modules for ASSP functionality REM // ECHO - installing Compress-Zlib module.. & CALL :PPM install -follow Compress-Zlib ECHO - installing Digest-MD5-File module.. & CALL :PPM install -follow Digest-MD5-File ECHO - installing Email-Valid module.. & CALL :PPM install -follow Email-Valid ECHO - installing File-ReadBackwards module.. & CALL :PPM install -follow File-ReadBackwards ECHO - installing Mail-SPF-Query module.. & CALL :PPM install -follow Mail-SPF-Query ECHO - installing Mail-SRS module.. & CALL :PPM install -follow Mail-SRS ECHO - installing Net-DNS module.. & CALL :PPM install -follow Net-DNS ECHO - installing Perl-LDAP module.. & CALL :PPM install -follow perl-ldap ECHO - installing Time-HiRes module.. & CALL :PPM install -follow Time-HiRes ECHO - installing Win32-Daemon module.. & CALL :PPM install -follow http://www.roth.net/perl/packages/win32-daemon.ppd GOTO :EOF :UPGRADE_MODULES REM // Upgrade all installed Perl modules to latest version REM // ECHO - upgrading all installed modules.. & CALL :PPM upgrade -install -follow -precious * GOTO :EOF :PPM START /MIN /WAIT CMD /C ppm %* GOTO :EOF :END ENDLOCAL REM // Commercial use or modification of this script is not allowed without the REM // expressed written consent of Micheal Espinola Jr. REM // ECHO. ECHO.=============================================================================== ECHO Copyright 2006, Micheal Espinola Jr (michealespinola@gmail.com) ECHO. :EOF
Service configuration, Alex Higgins
Save this text in a file with a .vbs extension and double click it to register the service and create the configuration file
'This code launches the addservice.pl
set shell = CreateObject("wscript.shell")
shell run "perl addservice.pl -i c:\assp\assp.pl c:\assp"
shell=nothing
'This code launches creates and configures the assp.cfg
dim fso, file
set fso=createobject("Scripting.FileSystemObject")
set file =fso.OpenTextFile(Filename, 2, true)
file.write("AsAService:=1")
file.close()
' This code sets the startup type for a The Anti-Spam Service.
' ------ SCRIPT CONFIGURATION ------
strSvcName = "Anti-Spam SMTP Proxy"
strStartupType = "Automatic" ' can be "Automatic", "Manual", or "Disabled"
strComputer = "."
' ------ END CONFIGURATION ---------
set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
set objService = objWMI.Get("Win32_Service.Name='" & strSvcName & "'")
intRC = objService.Change(,,,,strStartupType)
' can alternatively use objService.ChangeStartup(strStartupType) method
if intRC > 0 then
WScript.Echo "Error setting service startup type: " & intRC
else
WScript.Echo "Successfully set service startup type"
end if
Recognition and thanks
Special thanks to Travis Forghani for his work and contributions to the formulation and testing of the Quick Start for Win32 guide. He didnt post it himself, but he made a lot of the effort to make this compilation possible. --ME2 21:49, 12 September 2007 (PDT)


