Edit "/root/ispconfig/isp/conf/proc
{MAILDIR_COMMENT}MAILDIR=$HOME /Maildir/
{MAILDIR_COMMENT}DEFAULT=$MA ILDIR
{MAILDIR_COMMENT}ORGMAIL=$MA ILDIR
{QUOTA}
INCLUDERC={PMDIR}/.mailsize. rc
{QUOTA_COMMENT}INCLUDERC={PM DIR}/.quota.rc
{ANTIVIRUS_COMMENT}INCLUDERC ={PMDIR}/.antivirus.rc
{MAILSCAN_COMMENT}INCLUDERC= {PMDIR}/.local-rules.rc
{MAILSCAN_COMMENT}INCLUDERC= {PMDIR}/.html-trap.rc
{SPAMASSASSIN_COMMENT}INCLUD ERC={PMDIR}/.spamassassin.rcr />{AUTORESPONDER_COMMENT}INCLU DERC={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.
- wizap's blog
- Login or register to post comments
Comments
It will get over-ridden in an upgrade.
I just run a script after such upgrades to put all customizations back.
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/proc mailrc.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