Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 24 of 24
I didn't receive anything in the body of my emails stating any of the emails I sent to myself from yahoo are spam. Additionally, I received a viagra email from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Just Joined!
    Join Date
    May 2003
    Location
    Seattle
    Posts
    37

    I didn't receive anything in the body of my emails stating any of the emails I sent to myself from yahoo are spam. Additionally, I received a viagra email from a yahoo and wasn't alerted thus, no SPAM words showed up in the email anywhere. Here is the contents and order of the /etc/mail/spamassassin/local.cf file:

    #comments
    #more comments

    reguired_hits 5
    rewrite_subject 1
    subject_tak [SPAM]

    blacklist_from *yahoo.com



    the /etc/procmailrc file's contents are as shown below:

    :0fw
    |/usr/bin/spamassassin -p

  2. #22
    Just Joined!
    Join Date
    May 2003
    Location
    Seattle
    Posts
    37
    I just realized that the following file (spamassassin-default.rc) which is contained with local.cf under: /etc/mail/spamassassin/spamassassin-default.rc has the following in it which is very similar to the /etc/procmailrc file except without the -p:

    # send mail through spamassassin
    :0fw
    | /usr/bin/spamassassin

  3. #23
    Just Joined!
    Join Date
    May 2003
    Location
    Seattle
    Posts
    37

    Success atlast.

    I feel sort of silly posting a 3rd message with no other responses but success is mine alas. I will be posting step by step procedures within the next couple of days for RH9/Sendmail users and Fedora1/Sendmail Spamassassin users who I can help with avoiding the wait as I did learning this due to a lack of decent documentation. Also, thanks to Dolda2000 who helped a great deal. I only have one more question left:
    Is spamassassin capable of dropping email addresses or completely blocking them from even sitting in the servers mbox as the /etc/mail/access file does? If so, which option or value might that be? Reason is, I'd like to use preferrably spamassassin if it can drop messages.

    mtsal

  4. #24
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Spamassassin itself doesn't drop messages like that, but you can use its SPAM tagging in your procmailrc to make procmail drop it. Do that by adding another recipe after the current one that looks like this:
    Code:
    :0
    *X-Spam-Flag: YES
    /dev/null
    The X-Spam-Flag header is Spamassassin's way of telling you that a message is Spam.
    However, one of the advantages is that you don't need to erase the messages. Instead, you can store them temporarily in another place, in case a message would have been detected as Spam when in fact it wasn't (then, when the user complains about it, you can simply retrieve it from the Spam storage and send it on to him). For example, you can use this procmail recipe instead:
    Code:
    :0
    *X-Spam-Flag: YES
    /var/spool/spam/
    You'll need to create the /var/spool/spam directory as well. Please note the fact that I wrote it as /var/spool/spam/, not /var/spool/spam (ie. with an ending slash). The specifies that procmail should use the maildir format instead of the mbox format, where all messages are stored in individual files instead of one large file. That way, you can use tmpwatch to remove messages when they have lingered long enough. For example, you could add this to your /etc/crontab to remove messages after 30 days:
    Code:
    * 1 * * * root tmpwatch -f 720 /var/spool/spam/new /var/spool/spam/cur
    The possibilities are endless - have fun!

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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