ISPConfig Whitelist/Blacklist

I have recently started using an open source Linux server management package called ISPConfig. It is a wonderful piece of software and has made managing my server a breeze. Out of the box it currently does not support spamassassin whitelists or blacklists for the email users. A few hours of hacking later I had a working solution. This is far from perfect, so please don’t laugh. Feel free to improve it!

spam_filter.gifScreenshot

These patches are against ISPConfig version 2.2.2.

Patch1 for files in /home/admispconfig on my system

Patch2 for files in /root/ispconfig on my system

Patch3 for English language file

If you are unfamiliar with using patch, see this link for some help.

Update: I forgot to include the database tables change.
ALTER TABLE `isp_isp_user` ADD `spam_wlist` TEXT AFTER `spam_hits`;
ALTER TABLE `isp_isp_user` ADD `spam_blist` TEXT AFTER `spam_wlist`;

Update: You can use the form editor to add two largetextarea fields named spam_wlist and spam_blist to the Spam and Antivirus layer of the ISP User form. This will add the proper columns in the isp_isp_user table in the database.

2 Responses to “ISPConfig Whitelist/Blacklist”

  1. Prince says:

    Please can you tell me why I got this when i use patch1 file?
    patching file /home/admispconfig/ispconfig/web/mailuser/mail/table/user.table.php
    Hunk #1 succeeded at 48 with fuzz 2 (offset -94 lines).
    patching file /home/admispconfig/ispconfig/web/mailuser/templates/spamfilter.tpl.htm
    patch unexpectedly ends in middle of line
    patch: **** malformed patch at line 79:

  2. Try downloading the patch file again and/or check for DOS line endings. You may need to translate the patch file using a utility such as dos2unix.

Leave a Reply