View Single Post
  #8  
Old 21st July 2006, 19:56
RicochetPeter RicochetPeter is offline
Member
 
Join Date: Apr 2006
Posts: 41
Thanks: 3
Thanked 1 Time in 1 Post
Default

OK, here's the howto:

1) Modify /root/ispconfig/isp/conf/procmailrc.master to include a "per-user-procmail" file by adding this line to the end:
Code:
INCLUDERC={PMDIR}/.custproc.rc
You do not have to use ".custproc.rc", chose any file name you like. This will make procmail include every user's custom recipe file.

2) Delete the forward in the ISPConfig web interface

3) Add the following to the user's ".custproc.rc" (or whatever name you chose):
Code:
:0
! email.address@remote.host
Done.
Like this you can provide accounts that are forwarded, but also spam scanned.

Another option: if you want to keep a local copy in the user's mailbox, make the first line in the .custproc.rc
Code:
:0 c
The only difference is the "c" after the 0, which make procmail deliver a copy to the remote address, not the mail itself.
Reply With Quote