ISPC2 How to do spam check BEFORE forwarding emails ?

Discussion in 'Tips/Tricks/Mods' started by radim_h, Mar 17, 2009.

  1. radim_h

    radim_h Member

    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 ..
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    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.
     

Share This Page