VirusAction script for clamsmtp

I’ve recently configured my MTA to drop emails with embedded MS Office Macros (a very popular way of distributing malware). You can get the odd valid macro-enabled Office doc, so I’ve written a script to alert me when emails are dropped, it’s available on GitHub Configure in /etc/clamsmtpd.conf as below: VirusAction: /usr/local/bin/clamsmtp-action.py -t postmaster@yourdomain.com (other …

Continue reading ‘VirusAction script for clamsmtp’ »

Installing Apache 2.4 on Centos 6 with HTTP2 support

Download, compile & install openssl 1.02 somewhere (eg /usr/local/openssl102) IMPORTANT: config with -fPIC flag ./config –prefix=/usr/local/openssl102 -fPIC no-gost no-shared no-zlib && make && make install Download compile & install nghttp2 (straightforward, I went for default path – to ensure it’s picked up by apache module create /etc/ld.so.conf.d/local.conf with contents /usr/local/lib & run ldconfig unless this …

Continue reading ‘Installing Apache 2.4 on Centos 6 with HTTP2 support’ »

sqlpython 1.7.3

Customizable alternative to Oracle’s SQL*PLUS command-line interface Source: sqlpython 1.7.3 : Python Package Index Prerequisites to install: Ensure you have oracle client libraries & ORACLE_HOME set (run the environment script) Create /etc/ld.so.conf.d/oracle.conf with contents of your lib directory (eg: /u01/app/oracle/product/11.2.0/xe/lib) and run ldconfig pip install cx-Oracle

Running ansible from a windows host

This is partly based on instructions from https://servercheck.in/blog/running-ansible-within-windows but uses a virtual environment and no checking out from Github / manually installing packages. Install Cygwin. Include following packages: python openssl / openssl-devel python-crypto python-openssl openssh Install & configure pip, virtualenv & virtualenvwrapper as per http://atbrox.com/2009/09/21/how-to-get-pipvirtualenvfabric-working-on-cygwin/ Create a virtual environment for ansible with mkvirtualenv –system-site-packages ansi …

Continue reading ‘Running ansible from a windows host’ »

Improving Apache Clustered Performance

Use Apache 2.4 (so if you use Centos / RHEL, use v7). This has lower memory requirements, stable Event MPM (see below) and far more functionality. If you terminate SSL at Apache, use a clustered cache to keep track of SSL sessions. Otherwise the SSL session establishment will have to be renegotiated every time you …

Continue reading ‘Improving Apache Clustered Performance’ »

Blog spam from 37.59.173.124

Not sure why OVH allows one of its customers (37.59.173.124) to blog spam From: Jason Peterson <zanationline@gmail.com> Subject: Increase Sales / Customers Message Body: Would you like to see you how your competitors are getting more sales than you are? Improving your website visibility online is more important than ever. What’s a good phone number …

Continue reading ‘Blog spam from 37.59.173.124’ »