-
Categories
-
Tags/Keywords
Apache bash blog blog.bigsmoke.us CLI CSS Debian DNS Firefox Gentoo Google HTML HTTP iptables Linux MediaWiki mod_rewrite MySQL network PHP plugin postfix RAID Ruby samba Screen shell Sicirec smb SSH ssl Subversion svn T61 thunderbird Ubuntu van der Molen VIM Windows WordPress WWW X xen XTerm zimbra -
Recent Posts
-
Recent Comments
Index
Lowering Bayes score for Zimbra’s Spamassassin config
The Spamassassin config in Zimbra has a very high default score for bayes matching of 99, 95, 90, etc, percent. A mail with subject and body "test" or "asdfaewf a" is often marked as 99% bayes, even though the spamfilter has seen no training mail. This is absurd.
Read More »
Configuring fetchmail to deliver to Zimbra with custom header added
I needed to fetch mail from a POP3 account and deliver it to a Zimbra account. Because I'm doing this for multiple POP3 accounts, I want to add a header which I can use in Zimbra to filter. This is what we made:
Read More »
Fixing spamassassin rule in Zimbra
Spamassassin has had a bug for a while, marking any mail from 2010 and later as spam because it's from "far into the future". This was very crudely done as this regexp: /20[1-9][0-9]/. Because of that, almost all mail from 2010 onward is marked as spam.
Read More »
Replacing the full contents of a Subversion working (sub)dir
The annoyances that I suffered earlier today during the upgrade of a WordPress plugin made me turn to my favorite text-editor to create a simple script, svn-replace-dir: Read More »
Scanning the entire network for machines with nmap
You can easily scan the entire network for machine presence with nmap:
nmap -sP -v -v 192.168.1.*
Read More »
Set proper origin domain for Zimbra server
(This turned out not to be how I fixed it. I just configured exim and /etc/mailname as I do always and that fixed it. However, exim does not run as the SMTP server listening on port 25, that is the postfix installed by Zimbra. I don't know how and if this exim configuration conflicts with zimbra.)
Read More »
Changing lost MySQL root password
When you don't know the current mysql root password and you want to change it, do this:
/etc/init.d/mysql stop
mysqld --skip-grant-tables &
mysql -p
use mysql;
update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
flush privileges;
quit;
killall mysqld
/etc/init.d/mysql start
Read More »
Convenient iptables rules
Here are some convenient iptables rules.
This first list is for not allowing anything in, accept packets that come back from outgoing connections, complicated related traffic like FTP, everything from the localhost, ICMP (ping and stuff) and SSH. It also sets the default policy to DROP. This you would use on a machine connected directly to the internet.
Read More »
My custom Linux environment
On every machine that I install, I need a custom environment. At the very basic, I need screen and bash customizations. I will attempt to keep this blog post up-to-date with my most recent config.
Read More »
Pasting in Vim
When you want to paste in Vim, you want vim to not use indenting, because that messes up your code. I used to use :insert, but on some machines, it would still indent. I discovered the :set paste command, which works quite well.
Read More »