Mär
30
2008
Wenn Software nicht direkt über apt installiert worden ist, aber dennoch direkt bei Systemstart ausgeführt werden soll, ist dieser Arbeitsschritt unumgänglich.
Zuerst legt (oder kopiert) man das jeweilige start-stop-(restart) Script in den Ordner /etc/init.d und vergibt den chmod 755 auf das Script.
Wenn man möchte dass dieses Script beim Systemstart mit Parameter “start” - und beim shutdown oder reboot mit dem Parameter “stop” ausgeführt wird, kann man dies mit folgendem Befehl erledigen:
update-rc.d Scriptname defaults 20
update-rc.d legt nun automatisch alle wichtigen Symlinks in den Runlevel Verzeichnissen an.
Mär
30
2008
Wem 1 Minute bis der nächste Cronjobdurchlauf startet zu lange für seine Änderungen sind, der kann mit diesem Tool die Wartezeit dramatisch senken.
Alle Änderungen der Benutzer werden innerhalb von 1 Sekunde erkannt und anschließend dem confixx_updatescript mitgeteilt.
Confixx ist somit mindestens 59 Sekunden schneller als die eigentliche Lösung per Cronjob.
So werden zum einen negative Folgen minimalisiert und zum anderen Confixx zu einem fast Realtime Programm.
Alle nötigen Instruktionen sind in der README Datei vermerkt.
Getestet unter: Debian GNU Linux Sarge und Etch, Confixx 3.3.1
Link: HostTheNet
Mär
26
2008
Deutsche Version dieses Artikels
After installing spamdyke in Plesk POP-before-SMTP wasn’t properly working anymore. I googled for help, but all I could find simply stated this is not possible anymore
and it’s bad anyhow
, which isn’t much of a help when you have to find a solution. So we kept looking…
Plesk (or rather relaylock) saves IPs which are supposed to be authentificated by POP-before-SMTP in the table smtp_poplocks of the psa database. The following Perl script reads from this table and creates a list, which then can be used as an ip-white-list for spamdyke.
I decided to use a cronjob instead of a perl deamon since it’s very unlikely that a user is trying to send an email without SMTP auth in less than 59 seconds after establishing the POP3 connection.
Installation details:
# Download and check the script
wget http://www.it-crowd.biz/wp-content/uploads/2008/03/spamdyke-pop-before-smtppl.txt
mv spamdyke-pop-before-smtppl.txt spamdyke-pop-before-smtp.pl
chmod 700 spamdyke-pop-before-smtp.pl
nano spamdyke-pop-before-smtp.pl
# for debian users
apt-get install liblog-log4perl-perl
# for user of any other distribution
perl -MCPAN -e shell
install Log::Log4perl
# open /your/path/to/spamdyke.conf and add the following lines
ip-whitelist-file=/var/qmail/spamdyke/pop-before-smtp
# prepare the cronjob via "crontab -e"
* * * * * /your/path/to/spamdyke-pop-before-smtp.pl
Every sixty seconds the script is started. It then reads the database, writes the whitelist /var/qmail/spamdyke/pop-before-smtp and afterwards POP-before-SMTP is working like a charm again.
In case of an error the output will be logged in a file named /var/log/pop-before-smtp.log. If you want to receive an additional email as root, simply comment out the line
open STDERR, ‘>/dev/null’; (provided that your cron deamon was set up accordingly).
Download Link:
spamdyke-pop-before-smtp.pl