How to skip SPF checking for an user with Postfix

This shows how to do special SPF checks for a special recipient. Since the man pages contain wrong examples I’ve decided to read the code myself, from /usr/lib/python2.6/dist-packages/policydspfuser.py. This applies to Ubuntu 10.04. 1. Create a text file containing the exceptions. I created a file called: /etc/postfix-policyd-spf-python/userconf. The man page gives the following example which is wrong: postmaster@example.com,{'Mail_From_reject'='No_Check'|'PermEr‐ ror_reject'= 'False'|'HELO_reject'='SPF_Not_Pass'|'defaultSeedOnly'= 1|'debugLevel'= 5|'skip_addresses'='127.0.0.0/8,::ffff:127.0.0.0//104,::1//128'| 'Tem‐ pError_Defer'='False'} the correct format is: Mail_From_reject=No_Check|PermError_reject=False|HELO_reject=SPF_Not_Pass|defaultSeedOnly=1|debugLevel=5|skip_addresses=127.0.0.0/8,::ffff:12\ 7.0.0.0//104,::1//128|TempError_Defer=False 2....

November 8, 2011 · len

Why I will probably not use Ubuntu 11.10 Oneiric Ocelot

Each time a new Ubuntu version appeared I was writing an article on how I upgraded and tested it on my laptop. It was not the case for the last version, since ever since Lucid Lynx it seemed everything is on a descending slope as far as I am concerned. Yet these days, in one of my iterations for features I tried to install evince 3 (finally pdf bookmarks!) and realized that so many new versions and unmet dependencies exist, that it might be time to update....

October 16, 2011 · len

libvirtError: Unable to deny all devices for

While trying to setup a bunch of virtual machines to test some multi-machine configuration I run into this strange error: libvirtError: Unable to deny all devices for mcc1, no such file or directory There are some threads on the net for this problem and they all relate to cgroups but I don’t have either cgroups-bin or libpam-cgroups installed. I had however this configured in rc.local: mkdir -p /dev/cgroup/cpu mount -t cgroup cgroup /dev/cgroup/cpu -o cpu mkdir -m 0777 /dev/cgroup/cpu/user echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent Unmount cgroup did not fixed the problem either and a new problem occured: cannot create cgroup for mcc1....

September 5, 2011 · len

When is the old hardware nothing more than junk?

Do you still have your first computer? Your first laptop? As years go by we tend to accumulate a lot of old hardware which, at least in our mind, hold some value, at least a sentimental one. Yes, I still have my first laptop but I also have many generations of hardware of all types in between. How can I throw away that server which I used for 3 years, it must be still usable somehow!...

July 22, 2011 · len

Auto backup last n days on an usb stick

This is a simple script which automatically backups files modified in the last n days on a usb stick. It can be run from cron and will require the usb stick to be present only at backup times: <pre lang="bash">#!/bin/bash USB_DEV=/dev/sdb1 MOUNT_POINT=/media/backupusb DAYS=60 SYNC_DIR=/home/tomcat/backup/ find $SYNC_DIR -mtime +$DAYS | sed "s|$SYNC_DIR||" > $SYNC_DIR/exclude mount $USB_DEV $MOUNT_POINT if [ $? -eq 0 ]; then mkdir -p $MOUNT_POINT/backup rsync -rtDxL --safe-links --delete --exclude-from=$SYNC_DIR/exclude --delete-excluded --modify-window=1 -vP $SYNC_DIR $MOUNT_POINT/backup/ umount $MOUNT_POINT else echo Could not mount $USB_DEV on $MOUNT_POINT fi Some explanation on the rsync params:...

June 23, 2011 · len

Display calibration and profiling

Since I started paying some attention to the photos I make the display calibration issue recurrently came into question. I tinkered as much as I could with xgamma mostly with bad results. This weekend however I could borrow a Spider 3 device and I played with dispcalGUI and argyll. There is not much I could say because the doc on the respective sites is great so after some wait I managed to get and ....

June 15, 2011 · len

Printing a large number of pdf files

All you hear about the next big improvement in Linux distributions seems to be screen oriented: “It will have a new button which will be more Mac like”. I don’t say that having a button to click isn’t nice but don’t forget the power of the command line. Take the following example: “you need to print 50 pdf files in a folder”. You can either open them one by one in evince and print them (1 click to open, one for the print icon print, one to click ok * 50) or you can issue a single command which does this job while you read the next review on linux usability:...

February 9, 2011 · len

E6410 summary

After a few days play with my new Dell Latitude E6410 I was expecting more from the “Ubuntu on the new laptop” combination. Here is a short summary for what to expect if installing Ubuntu 10.10 Maverick Meerkat on a E6410 (check the previous post on the subject). Video card – nVidia Corporation GT218 [NVS 3100M] (rev a2). Works with default version Nvidia driver from Ubuntu but the log is full of errors:...

January 14, 2011 · len

FB4 on linux

Since 01.01.2011 Adobe has stopped support for Flex Builder 3 alpha on Linux. After this date the plugin effectively stopped working even if you had a valid, payed license as it was my case. This was a very sad news since I do a lot of flex development. I don’t need much of the Builder since I use ant for the compilation but at least code completion in .as and ....

January 7, 2011 · len

Should I buy a Mac?

I have been delaying buying a new laptop for as much as I could but a decision have to be made sooner or later so I find myself being caught again in the laptop research process. The current one, a Dell Latitude D820 has served me well but I would greatly enjoy some improvement in the compilation times and overall speed. However looking at the available choices I am not in any way thrilled of joy and for the first time I am asking myself a new question: “should I buy a Mac?...

December 22, 2010 · len