Results 1 to 4 of 4

Thread: Mail blocking

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    29

    Default Mail blocking

    I know you can use procmail to block spam with ...

    :0:
    * ^X-Spam-Level: \*\*\*\*\*\*\*
    /dev/null

    The one problem with this is that it affects all accounts on the server. Is there any way to do this just for specific accounts?

    Jim

  2. #2
    Senior Member FZ's Avatar
    Join Date
    May 2003
    Location
    Johannesburg, South Africa
    Posts
    1,024

    Default

    Jim,

    Sure there is! All you need to do is create the e-mail account(s) in question with home directories - in other words, create them as separate e-mail/FTP accounts via your Site Manager (with FTP enabled) and choose a directory to be the home directory (for example you could just accept the default or use /home/users/username). If you don't want to allow FTP access, create them with FTP enabled, and then go back in and disable FTP access (this will leave the home directory intact). Then all you need to do is create a file called .procmailrc (notice the . before the file name, unlike /etc/procmailrc) in the home directory for the account in question (e.g. /home/users/username) and place the code you have above in that file. Also, after that account receives some mail, you should notice that it creates a .spamassassin directory in the same location - within the .spamassassin directory you will find a file called user_prefs which will allow account-specific customization of SpamAssassin as well.

    Using this method, you can have independant Procmail and SpamAssassin settings for all your e-mail accounts...
    Fayez Zaheer

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Posts
    29

    Default

    Excellent, thanks Fayez!!

  4. #4
    Senior Member FZ's Avatar
    Join Date
    May 2003
    Location
    Johannesburg, South Africa
    Posts
    1,024

    Default

    No problem, Jim.
    Fayez Zaheer

Similar Threads

  1. Hotmail and Yahoo Mail Troubles
    By jaherbert in forum E-mail / FTP Management
    Replies: 36
    Last Post: 06-05-2008, 06:53 AM
  2. Manually installing webmail on Westhost
    By marysmithdesign in forum E-mail / FTP Management
    Replies: 10
    Last Post: 03-06-2007, 03:28 PM
  3. Is Uebimiau the Same as Horde Mail?
    By Amy Louise in forum E-mail / FTP Management
    Replies: 2
    Last Post: 11-04-2005, 05:21 PM
  4. Mail queue backlog suggestions - best practices?
    By ajparker in forum E-mail / FTP Management
    Replies: 6
    Last Post: 04-01-2005, 12:40 AM
  5. Does anyone on WestHost have Mojo Mail up and running?
    By sitnprettyphoto in forum General Discussion
    Replies: 17
    Last Post: 06-28-2004, 09:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •