custom procmail rules on ispconfig

Edit "/root/ispconfig/isp/conf/procmailrc.master" and add the below ".custom.rc" line.

{MAILDIR_COMMENT}MAILDIR=$HOME/Maildir/
{MAILDIR_COMMENT}DEFAULT=$MAILDIR
{MAILDIR_COMMENT}ORGMAIL=$MAILDIR
{QUOTA}
INCLUDERC={PMDIR}/.mailsize.rc
{QUOTA_COMMENT}INCLUDERC={PMDIR}/.quota.rc
{ANTIVIRUS_COMMENT}INCLUDERC={PMDIR}/.antivirus.rc
{MAILSCAN_COMMENT}INCLUDERC={PMDIR}/.local-rules.rc
{MAILSCAN_COMMENT}INCLUDERC={PMDIR}/.html-trap.rc
{SPAMASSASSIN_COMMENT}INCLUDERC={PMDIR}/.spamassassin.rcr />{AUTORESPONDER_COMMENT}INCLUDERC={PMDIR}/.autoresponder.rc
INCLUDERC={PMDIR}/.custom.rc

Now include any custom rules that you may have to the ".custom.rc" file in the users home directory.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
customizations...

It will get over-ridden in an upgrade.

I just run a script after such upgrades to put all customizations back.

custom procmail rules on ispconfig

Great tip, it appears that this only affects users created AFTER the template change is made. That makes sense, I just hadn't realized how those templates were used initially. So if you want to make it work for an already existing user as well, go to their home directory and edit the .procmailrc to append the correct line on the end:

INCLUDERC=/var/www/web10/user/web10_user/.custom.rc

Also, it seems that if you edit "/root/ispconfig/isp/conf/procmailrc.master" it will get overwritten in an upgrade. There is a customized_templates directory where I think you are supposed to put modified templates. I haven't yet upgraded though, so I don't know how it works.

Thanks,
Austin

Comment