Agus Priyadi and Mafia.Or.ID

blog all about (brains colocations)

Archive for the ‘plesk’ Category

Plesk ][ Advanced Horde configuration

Posted by mafiaid on 24 August 2007

You might want to change the Horde webmail module in Plesk to behave more to your, or your company’s liking. Headers can be appended. The default footer (bah) can be removed, or changed to contain a disclaimer, quote, or simple message. The default stylesheet colours can be changed to be more uniform to your own website’s style, even bad words can be filtered from mails.

The file /home/httpd/vhosts/webmail/horde/imp/config/trailer.txt contains the footer that gets sent with each email. You can either empty this, or tell everybody how great http://eol.init1.nl is :)

If you want extra headers to be appended to the mails, like X-headers you can edit the file /home/httpd/vhosts/webmail/horde/imp/config/header.txt
This file already contains the header “X-Originating-IP: %REMOTE_ADDR%”. Leave this be, it’s pretty handy to track down possible abuse.
You can add extra headers here like “X-We-Rock: init1.nl”. Note that the “X-” here is important, you can actually break mail delivery if you put bad stuff in here.

The file /home/httpd/vhosts/webmail/horde/imp/config/motd.php lets you enter the welcome message on the login screen, this needs to be done in PHP with echos. So unless you know what you’re doing, leave this alone ;)

The file /home/httpd/vhosts/webmail/horde/imp/config/filter.txt enables you to filter bad words from email. The filter.txt already contains the word poop ;) If you want to test it, log in to webmail, open your INBOX, go to Options > Message Viewing. Select the option “Filter message content for profanity?” and send yourself a mail containing the word poop :)

url source : http://eol.init1.nl/content/view/34/38/

Posted in oprekan, plesk | Tagged: , , , | Leave a Comment »

Spam Filtering: spamassassin Utility

Posted by mafiaid on 21 August 2007

The spamassassin utility is used to manage the Spamassassin spam filter through CLI. By using this utility, you can perform the following tasks:

Enabling or disabling server-wide spam filtering
Setting the criteria for automatic labeling of incoming messages as spam
Enabling or disabling use of mail-name specific spam filtering criteria
Adding e-mail messages to the Spamassassin’s black and white lists
Mark e-mail subjects as spam
Deleting spam automatically
Inserting custom text into spam message subject lines automatically

Example

The following command line enables Spamassassin filter on mail name admin@example.com, enable the use of mail name-specific Spamassassin filter settings, set the minimum score of 3 for marking e-mail messages as spam and enables deleting spam messages automatically from the mail box:

# ./spamassassin –update admin@example.com -status true -personal-conf true -reject-spam true -hits 3

Posted in oprekan, plesk | Tagged: , , , | Leave a Comment »