Oct 192012

I setup a mail server and an IM server, again … just for whatever reason. It’s fun though.

I’m still with openldap, postfix, mysql, ejabberd, but use dovecot replaces courier for imap, amavisd integrated with spamassassin and clamav to replace previous spamassassin-only system, and roundcube replaces squirrelmail. Things are more or less easier to setup.

There are two things left, one is that need to direct spams to spam folder, this was done by maildrop but since I’m away from courier, procmail may be a more reasonable choice but still need to evaluate. The other thing is that I want to send all incoming and outgoing mails to some other gmail accounts so that I can keep a copy of everything, but I haven’t decided what’s the better approach for this. Also, if it is possible to get XMPP messages backup somewhere, that will be great.

I was thinking of building up a search feature for this mail system, I haven’t got exact design done yet, but some features are in my mind: close to realtime (tens of seconds latency), attachment friendly (dig into attachments to find context), and scriptable, i.e. core engine can be (or have to be) C/C++, but lots of external stuffs should be able to be done in PHP/Perl, etc.

Let’s see.

  4 Responses to “Oh ya”

  1. Updates: I went back to maildrop as people are saying procmail is not that actively maintained and could fade away in the future.

    Status: now all incoming non-spam mails are copied to corresponding gmail accounts (don’t want to use single one which may mess things up), and all spams went to spam folder (for IMAP/webmail).

    To-do: mail alert to XMPP client (how to avoid alert bombs?), XMPP message backup (should to go the same gmail account), and outgoing email backup.

    Stay tuned.

  2. XMPP messages are now archived to mysql … not that pretty but it works, thanks mod_archive_odbc, however, I still cannot make use of MySQL native server, so it is still based on libmyodbc.

    Information for this part is really limited, and erlang is not something that everyone can read and write, I will post some more details later on.

  3. BTW, outgoing mail backup is done as well, to the same place of incoming mailboxes.

  4. Dovecot support post-login script so tracking user’s last login time is easy. However, I went to 1.x document site at the very beginning so it took me quite some time to figure out the configuration problem.

    Also, don’t forget exec “$@” … which could be the place that most mistakes come from.

Sorry, the comment form is closed at this time.