Advanced spam filtering – spamassassin myql user preferences

I’ve recently changed the config of my spamassassin and just now noticed that the SPAM folder in my inbox is empty. So what has happened? When changing the config of spamassassin from file to database I only did the half thing. So spamassassin/amavis got stuck with a mixed config and did the default thing: delete spam immediatly. Although I don’t have missed a mail (at least I don’t know of any mail I missed) I prefer having spam mails put in the spam box over deleting them.
So here is the whole thing which I found at
Continue reading “Advanced spam filtering – spamassassin myql user preferences”

DKIM with amavis and postfix

DKIM (DomainKeys Identified Mail) is a mechanism to sign emails cryptographically. It can be used to ensure an email was really sent by the domain it claims to come from. Therefore it is an interesting feature in spam checking.

In this post I’m going to describe how I set up DKIM with amavis to sign all outgoing messages with the key of my domain. This works well in my setup with postfix, dovecot and amavis (amavisd-new), for your own setup you might have to change some things. Continue reading “DKIM with amavis and postfix”

Setting up shared mailboxes in dovecot

[edited 28.06.2013]
Sometimes you need mail adresses and postboxes that need to be accessed by multiple persons. In a company for example there could be a mailbox and if you are planning for example a wedding it can be a good idea to have an accoutn wedding@yourdomain.tld that can be accessed by you and yor (future) wife. It is definitly not the best idea to create a “normal” account and just give the password to all people who might need it. This might leed to confusion (and data loss). In my opnion accounts should always be bound to a person.
The solution for my <bbr title=”Local Delivery Agent”LDA (aka mailserver) dovecot is called “SharedMailboxes”, ie mailboxes that are shared between users and linked to their accounts. It wasn’t that easy to setup but finally I could get it to work in the following way:
Continue reading “Setting up shared mailboxes in dovecot”

Ldap replication with syncrepl and ssl

In this post I’m going to describe how I use ldap replication to sync user accounts from my web server to my home server.
On my home server I’m going to setup a ldap server as well. As the user accounts on the “web server” are already stored in a ldap it seems logical to use ldap replication to keep both servers in sync. The ldap on the “web server” (my rented server running mail server, web server, onwcloud etc.) will be used as master, the home server will be the slave. It seems now to be common to talk about provider and consumer instead of master and slave. By the way I consider these terms to be more apropriate for the situation they describe.
Continue reading “Ldap replication with syncrepl and ssl”

Mailserver with ldap tutorial – part 8: webmail interface

Sometimes it can be very useful to be able to read mails via a webmail interface. I’ve decided to use the very powerful but also a bit complex horde framework which also offers clients for calendaring and adressbooks.

Edit 15.05.2012: Meanwhile I’ve switched to roundcube. Horde has proven to be over complicated and rough in the process of updating. As the installation auf roundcube works more or less out of the box I’m not going to describe it here.

This is step 7 of the 8 step tutorial for setting up a mailserver with openldap, postfix and dovecot using virtual users. You can find the overview here.
I’m asuming that all commands are executed with root rights.

Continue reading “Mailserver with ldap tutorial – part 8: webmail interface”