1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

outlook imap junk filtering

Discussion in 'Plesk for Linux - 8.x and Older' started by paperlion, Mar 3, 2007.

  1. paperlion

    paperlion Guest

    0
     
    Thought I saw something on this elsewhere in the forums here, but don't recall exactly where.

    I would like to save bandwidth and start to use IMAP email instead of POP3 (or POP3 downloading headers only), but have run into the following problem.

    With any protocol other than regular (download-all) POP3, I can't set my Junk Filter on incoming mail (headers). Well I can, but nothing happens - unless the email has been fully downloaded into Outlook already.

    Has anyone experienced this -- and found a fix for it.


    thanks.

    (The thread I thought I saw on this had to do with non-IIS servers experiencing this problem, but not Microsoft IIS ones.)
     
  2. manyhuana

    manyhuana Guest

    0
     
    Hy paperlion,

    why not setting up the solution on the server itself ???

    We made it with procmail and let the spams of the clients sort in a imap spam folder.

    Additional our clients get a mail in the morning, how much spam is in the spamfolder, how much are new received in the last 24 hours and the spam-folder is auto-cleaned from spam-mails oder than 14 days.

    If you need help with this, let me know.

    Greetings from the border to Salzburg (Austria)
     
  3. paperlion

    paperlion Guest

    0
     
    Sounds good. Am a real newbie though - can I get to procmail and its controls from the Plesk panel? root SSH?

    If the latter, have you seen any walk-throughs online anywhere?


    Thanks.
     
  4. manyhuana

    manyhuana Guest

    0
     
    Let's go...

    1) Create a folder eg. spam with your webmail account or imap.

    2) Go to the users mailroot (eg. /var/qmail/mailnames/domain/user) and create a file called .procmailrc with:

    SHELL=/bin/sh
    PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin
    HOME=/var/qmail/mailnames/domain/user
    MAILDIR=$HOME/Maildir/new
    SPAM=$HOME/Maildir/.spam/new
    LOGFILE=$HOME/procmail.log
    VERBOSE=off

    :0:
    * ^X-Spam-Flag: YES
    {
    EXITCODE=99
    :0w
    $SPAM
    }

    EXITCODE=0

    3) Modify the .qmail file in the users mail-root and ad the following line:

    |preline /usr/bin/procmail -m .procmailrc

    The .qmail with plesk should look something like this:

    | /usr/local/psa/bin/psa-spamc accept
    | true
    |preline /usr/bin/procmail -m .procmailrc
    ./Maildir/

    In this case if spamprotection in plesk is "on" the mailheader gets the additional "X-Spam-Flag" Tag.
    So if spamassassing markes the mail as spam, procmail will move it to the specified folder.

    Last things:

    In the .procmailrc example you find the line "LOGFILE=$HOME/procmail.log". If any mail is processed, procmail will write to the file procmail.log what happend with the mails. But beware, that the logfile can get big, if you have no logfile rotation on the specified file. Therefor if everything works correct, you can comment out or delete this line.

    Plesk isn't able to do this for you in the gui at this time, so you have to configure each mailaccount for yourself.

    Spamfree greetings
     
  5. paperlion

    paperlion Guest

    0
     
    Hey, great!

    I should be able to handle it on this level. Can't wait to zap all those no-goodniks!

    thank you, manyhauna
     
  6. diadem.support

    diadem.support Guest

    0
     
    Hi Manyhauna,

    This is simple great. Can you please suggest some good tool for Server wide SPAM filter, which will block/drop SPAM mails. We are currently using Plesk 8.1.0 with 4PSA SPAM Guardian and Greylisting.

    Thanks in advance,
    Ankur
    diadem.support@gmail.com
     
  7. thewolf

    thewolf Regular Pleskian

    25
    57%
    Joined:
    Mar 11, 2004
    Messages:
    231
    Likes Received:
    0
    Doesn't 4PSA Spam Guardian already support putting spam emails in a quarantine folder?

    Thanks.
     
  8. thewolf

    thewolf Regular Pleskian

    25
    57%
    Joined:
    Mar 11, 2004
    Messages:
    231
    Likes Received:
    0
    Hi manyhuana,

    Do you have a script that will apply the procmail rule for the spam folder to all mailboxes on a Plesk server?

    Also, do you have a script that will send daily notifications to the users about their quarantine folder and clean up older messages after a certain amount of time?

    If you could share those with us, that would be great.

    Thanks.
     
Loading...