- Get (yum or apt-get) and install exim4-daemon-heavy, spamassassin, and sa-exim. Configure exim4 the way you need it, but use the "split" configuration scheme.
- Change the line in /etc/exim4/sa-exim.conf to SAEximRunCond: 1 It says you can comment it out but you can't. That leaves SAEximRunCond undefined which means false.
- Make sure /etc/exim4/update-exim4.conf.conf has dc_use_split_config='true'
- Edit /etc/exim4/conf.d/main/02_exim4-config_options and uncomment the 'spamd_address' line
- sudo update-exim4.conf -v
- sudo service exim4 restart
Sunday, June 7, 2009
exim4 and spamassasin
There seems to be no one easy place to find out how to integrate the two. Here's one.
Friday, May 8, 2009
sendmail to exim
So, I've had it with sendmail. And I'm pretty proficient with it -- my first "real" job was partially devoted to keeping it running for CSU. Exim looks like a pretty good replacement that a lot of people http://smtpsurvey.stillhq.com/smtp-survey.cgi?dashboard=1. I had to remove an 'exec' out of my .forward to spamassassin, and then just removed the .forward as exim knows enough to look for a .procmailrc anyway. To see the queue, do 'exim -bp'; to forcibly flush it, do 'exim -qff'. In sendmail, it was 'mailq' and '/usr/lib/sendmail -oQ/var/spool/mqueue -q -v'
Sunday, May 3, 2009
Multiple USB drives with the same name but different mount points and udev
http://ubuntu-tutorials.com/2006/12/06/how-to-always-mount-removable-drives-in-the-same-place-ubuntu-6061-610/
http://reactivated.net/writing_udev_rules.html
lsusb -v | more
http://reactivated.net/writing_udev_rules.html
lsusb -v | more
$ udevadm info --name=/dev/sdc1 --query=all
P: /devices/pci0000:00/0000:00:1d.7/usb5/5-8/5-8:1.0/host6/target6:0:0/6:0:0:0/block/sdc/sdc1
N: sdc1
S: disk/by-id/usb-Maxtor_OneTouch_2HAAE8JF-0:0-part1
S: disk/by-path/pci-0000:00:1d.7-usb-0:8:1.0-scsi-0:0:0:0-part1
S: disk/by-uuid/798610cb-bde3-4d9d-8773-675d1255ea59
S: block/8:33
E: ID_VENDOR=Maxtor
E: ID_MODEL=OneTouch
E: ID_REVISION=0121
E: ID_SERIAL=Maxtor_OneTouch_2HAAE8JF-0:0
E: ID_SERIAL_SHORT=2HAAE8JF
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:1d.7-usb-0:8:1.0-scsi-0:0:0:0
E: ID_FS_USAGE=filesystem
E: ID_FS_TYPE=ext3
E: ID_FS_VERSION=1.0
E: ID_FS_UUID=798610cb-bde3-4d9d-8773-675d1255ea59
E: ID_FS_UUID_ENC=798610cb-bde3-4d9d-8773-675d1255ea59
E: ID_FS_LABEL=
E: ID_FS_LABEL_ENC=
E: ID_FS_LABEL_SAFE=
$ udevadm info --name=/dev/sdb1 --query=all
P: /devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
N: sdb1
S: disk/by-id/usb-Maxtor_OneTouch_2HAABRGC-0:0-part1
S: disk/by-path/pci-0000:00:1d.7-usb-0:2:1.0-scsi-0:0:0:0-part1
S: disk/by-uuid/838eeab8-95c8-4ceb-a571-bc17aaa8a7a4
S: block/8:17
E: ID_VENDOR=Maxtor
E: ID_MODEL=OneTouch
E: ID_REVISION=0121
E: ID_SERIAL=Maxtor_OneTouch_2HAABRGC-0:0
E: ID_SERIAL_SHORT=2HAABRGC
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:1d.7-usb-0:2:1.0-scsi-0:0:0:0
E: ID_FS_USAGE=filesystem
E: ID_FS_TYPE=ext3
E: ID_FS_VERSION=1.0
E: ID_FS_UUID=838eeab8-95c8-4ceb-a571-bc17aaa8a7a4
E: ID_FS_UUID_ENC=838eeab8-95c8-4ceb-a571-bc17aaa8a7a4
E: ID_FS_LABEL=
E: ID_FS_LABEL_ENC=
E: ID_FS_LABEL_SAFE=
Tuesday, April 28, 2009
Resetting a Motorola H700
The destructions that come with the headset didn't tell how to do a complete reset in order to pair with a new phone. Found this on the net and it worked:
Turn the headset off (flip the boom in) then hold down the talk botton. The indicator should turn solid purple. Keep holding the the talk button and turn the headset on (flip the boom outward) and then it should stay soild purple and ready to pair with your phone.
Wednesday, April 8, 2009
Firefox, Gallery2, FC8, and Java
I couldn't get Gallery2 (http://gallery.menalto.com/) upload applet to work on FC8. I found someone else who couldn't either, but that was with Ubuntu. I had to remove the icedtea plugin and link the Sun Java vm plugin.
rpm -e java-1.7.0-icedtea-plugin-1.7.0.0-0.20.b21.snapshot.fc8
cd /usr/lib/firefox-3.0.3/plugins
ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so .
Tuesday, February 17, 2009
Nikon D70 all manual
I have a Tamron 500/8 SP lens that i bought for a Canon A1 years ago. I wanted to use it on my Nikon D70, but it took a little figuring out, for me at least. Basically, one just attaches it and checks the histogram to set the shutter speed in manual mode (rotate the mode dial to M, use the main (back) dial to set the speed). The aperture is fixed. Here are a few shots that demonstrate this:


Not a lot of dynamic range, but hey: they were ducks on a pond...
Wednesday, February 4, 2009
OSX ssh
I have had ongoing problems with OSX's ssh. Connections would essentially time out when transferring a lot of data. Others have too, see http://www.speedguide.net/faq_in_q.php?category=89&qid=129 and http://lists.apple.com/archives/Macnetworkprog/2006/Oct/msg00030.html for example. I have packet captures that i'll try to post here. Quick fix is "sudo sysctl -w net.inet.tcp.delayed_ack=2".
More: turning other parameter dramatically increases OSX's performance on high speed links. See http://www.psc.edu/networking/projects/tcptune/ for example. I created /etc/sysctl.conf than contains:
More: turning other parameter dramatically increases OSX's performance on high speed links. See http://www.psc.edu/networking/projects/tcptune/ for example. I created /etc/sysctl.conf than contains:
net.inet.tcp.delayed_ack=2
kern.ipc.maxsockbuf=500000
net.inet.tcp.sendspace=250000
net.inet.tcp.recvspace=250000
net.inet.tcp.mssdflt=1460
More still: the delayed_ack seems to be the critical one...
Subscribe to:
Posts (Atom)