HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   ISPC2 How to do spam check BEFORE forwarding emails ? (http://www.howtoforge.com/forums/showthread.php?t=32525)

radim_h 17th March 2009 13:31

ISPC2 How to do spam check BEFORE forwarding emails ?
 
I have set email account in ISPC 2.2.29 and have also set forwarding of email to different mailbox.
Spam is set to be deleted.
But as i found email is forwarded first and then spam is delted for local mailbox.
This is really anoying when forwarding mails for example to mobile pohone as SMS

How should i set Spam to be deleted first (email Spamcheck first) and then rest of emails forwarded ?

Thanks for any help ..

till 18th March 2009 07:51

In Linux the forward files is always executed before any procmail script is run. As far as I know this can not be changed.

the only thing you can try is to modify the ispconfig scripts so that they do not use the forward function from linux to forward the files and write a procmail recipe instead for forwarding which you can include after the spam check in .procmailrc.


All times are GMT +2. The time now is 00:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.