To administer your WestHost account, please enter your
Domain Name or Server Manager Username.

WestHost: Professional Website Hosting Company








Results 1 to 6 of 6
  1. #1
    Senior Member dansroka's Avatar
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    177

    Default send spam to alternate email address

    The trick to automatically delete email that spamassassin has tagged as spam has been well documented: http://forums.westhost.com/phpBB2/viewtopic.php?t=1204

    But as a relative newbie, I stumbled on an alternative to this that I haven't found mentioned before. It is probably obvious to the more-knowledgeable, but it wasn't to me ops: so I thought I'd pass it on.

    I didn't want my spam deleted -- I wanted it sent to a special mailbox that I reserve just for spam. This way, I can easily review the email using IMP or NeoMail for false-positives. So, I first created a new email account, called bulkmail. Then, following the procmail instructions followed above, I redirected the spam to this directory.

    So instead of adding this to procmailrc:

    Code:
    :0:  
     * ^X-Spam-Flag: YES  
     /dev/null
    you add:

    Code:
    :0:  
     * ^X-Spam-Flag: YES  
    /var/spool/mail/bulkmail
    Now I just log in to my bulkmail@mydomain.com email, and I can review the spam, forward non-spam, etc. This was a big help when I was on the road, and using IMP to check my mail. I get some 100+ spam a day, so within a few days, my inbox was overloaded with mail that Spam Assassin already tagged. This way, it is all forwarded to my bulkmail address for checking on later.

    Dan

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

    Default

    Procmail never ceases to amaze This is a very good alternative to deleting spam mail and to moving it to mailboxes that are only accessible via SSH and Pine (e.g. /mail/possible_spam). Thanks for posting this. I'm going to refer it to someone I had initially set up with the move-spam-to-Pine-accessible-folder solution. This would be much easier for him to use.
    Fayez Zaheer

  3. #3
    Senior Member dansroka's Avatar
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    177

    Default

    Hey, for all the help I've gotten on these boards, I'm glad I can pay some back!

  4. #4
    Junior Member
    Join Date
    Oct 2003
    Location
    Belgium, Europe
    Posts
    4

    Default

    This looks very nice.
    But I have not figured out how I can acces the mails (using IMP like you suggest) that I send to /var/spool/mail/bulkmail ? I see they are delivered there in that file, but I have no idea how to access it.
    Have just spent a day learning the basics of procmail and spamassassin and my head is spinning around :roll:

  5. #5
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,687

    Default

    Quote Originally Posted by timvdh
    This looks very nice.
    But I have not figured out how I can acces the mails (using IMP like you suggest) that I send to /var/spool/mail/bulkmail ? I see they are delivered there in that file, but I have no idea how to access it.
    Have just spent a day learning the basics of procmail and spamassassin and my head is spinning around :roll:
    If you have set up bulkmail as an email/ftp account you should be able to access it either via your email program or using the browser webmail( like neomail). In your email program you would create an account like your main one but you would use bulkmail@yourdomain.com for the username and then the password you set for that account. If you access if via browser webmail then you would simply use bulkmail as the username and then the password.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  6. #6
    Junior Member
    Join Date
    Oct 2003
    Location
    Belgium, Europe
    Posts
    4

    Default

    Thanks for the help,
    It works nows!

Similar Threads

  1. SpamAssassin -> Procmail -> Uebimaiu spammail folder
    By PeteF in forum E-mail / FTP Management
    Replies: 17
    Last Post: 05-25-2010, 02:54 PM
  2. spam with illegal headers crashing my email...
    By Pema in forum E-mail / FTP Management
    Replies: 9
    Last Post: 07-12-2004, 08:56 PM
  3. SPAM In General
    By JDE in forum E-mail / FTP Management
    Replies: 31
    Last Post: 06-23-2004, 02:55 PM
  4. Immediate Spam on New Email Addy
    By murf in forum E-mail / FTP Management
    Replies: 6
    Last Post: 05-12-2004, 02:37 PM
  5. unable to send email to extrenal email address
    By <-- R O B --> in forum E-mail / FTP Management
    Replies: 1
    Last Post: 01-15-2004, 05:16 AM

Posting Permissions

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