SME Server
From ASSPSMTP
- Download the latest ASSP from Downloads
- In SME Server Manager create a user called ASSP. (Lowercase)
- Create the following pseudonyms all pointing to ASSP user
- assphelp
- asspspam
- asspnotspam
- asspwhite
- asspnotwhite
- asspred
- asspnotred
- SSH to the server console and create a directory on the SME Server /usr/local/assp and unzip the downloaded file above into this directory
- To install the various Perl modules:
- Install GCC via the SME Server Manager by doing the following:
- Software Installer
- Install Additional Software (Refer to SME Docs to enable this)
- Search for gcc.i386 3.4.6-8
- Once done ignore the request to reconfigure as you will do this later
- in your ssh session enter
perl -MCPAN -eshell- If this is the first time you have done this you will have to setup the perl interface. Follow the onscreen prompt and accept most of the defaults.
- Once done with this install the needed perl modules by doing the following (and wait for the prompt after each install):
- install Bundle::CPAN
- install Net::LDAP
- install Tie::RDBM
- install Net::DNS
- install Mail::SPF::Query
- install Mail::SRS
- install Email::Valid
- install File::ReadBackwards
- install Time::HiRes
- install LWP::Simple
- install Compress::Zlib
- install Sys::Syslog
- exit CPAN shell
- Install GCC via the SME Server Manager by doing the following:
- You now need to make a few SME Server changes
- Allow external access to port 25
config set manta service access public status enabled
TCPPort 25 /sbin/e-smith/signal-event remoteaccess-update - Set QMail port to 125
db configuration setprop smtpd TCPPort 125
db configuration setprop smtpd TCPProxyPort 125
/sbin/e-smith/signal-event email-update
- Allow external access to port 25
- Change ownership of /usr/local/assp and all subdirs to assp with this command:
chmod -R assp.assp /usr/local/assp - You can now start ASSP with perl /usr/local/assp/assp.pl
- You will now also be able to access the GUI with http://<servernameoripaddress>:55555
- I also do the following
- In /etc/rc.local add a line to start assp whenever you reboot the server
/usr/bin/perl /usr/local/assp/assp.pl - I create a shortcut to see log activity
- create /usr/bin/assplog wit the following contents
#!/bin/bash
tail -f /usr/local/assp/maillog.txt
- create /usr/bin/assplog wit the following contents
- I also created a script to check if assp is running and if not to auto start it
- Create a directory /usr/local/scripts/
- Create a file /usr/local/scripts/checkassp.sh wit the following contents:
#!/bin/bash
assprunning=`ps aux |grep assp.pl |grep -v root|wc -l`
if [ $assprunning -lt 1 ]
then
/usr/bin/perl /usr/local/assp/assp.pl
fi
- Once you have created these 2 files do
chmod 755 /usr/local/scripts/checkassp.sh
chmod 755 /usr/bin/assplog - Also add /usr/local/scripts/checkassp.sh to the crontab for root by doing
crontab -e
Add a lineA*/1 * * * * /usr/local/scripts/checkassp.shThe one indicates that it checks every minute. You can change this as needed. Some of my clients have this set to 5 others that rely on email more has it set to 1.
- In /etc/rc.local add a line to start assp whenever you reboot the server
- when you want to check active log activity run assplog from the ssh cli
- Also test your cron by running assplog and at the same time go into the assp GUI and terminate assp. ASSP should restart automatically.
- The last step is to uninstall GCC by doing
- SME Server Manager Software installer
- Remove Installed software
- Search for gcc.i386 3.4.6-8 and click remove.
- Reconfigure your server now
- After the reboot check that you can access port 25 via telnet. If you can then ASSP and qmail is working together well. You can now configure assp via the gui.


