Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    9

    Default Tip: Changing SpamAssassin's Message/Template

    I spent some time trying to figure this one out and thought I'd share:

    Have you ever wished you could change the annoying, long message at the top of your emails?

    Spam detection software, running on the system "your.host.com", has...
    It's actually easier than you think!

    First, go read my post here:
    Tip: SpamAssassin Config Files

    I'll wait...

    Back? Good. Here we go:

    Important: You may have to adjust your file paths depending on your system.

    If we open up /usr/local/share/spamassassin/10_misc.cf

    Inside, you will find:

    Code:
    # Default template. Try to keep it under 78 columns (inside the the dots below).
    #      ........................................................................
    clear_report_template
    report Spam detection software, running on the system "_HOSTNAME_", has
    report identified this incoming email as possible spam.  The original message
    report has been attached to this so you can view it (if it isn't spam) or label
    report similar future email.  If you have any questions, see
    report _CONTACTADDRESS_ for details.
    report
    report Content preview:  _PREVIEW_
    report
    report Content analysis details:   (_SCORE_ points, _REQD_ required)
    report
    report " pts rule name              description"
    report  ---- ---------------------- --------------------------------------------------
    report _SUMMARY_
    #      ........................................................................
    DO NOT MODIFY THIS FILE!!!

    Next, open up /etc/mail/spamassassin/local.cf. If you read my other post you'll know what this file does...

    Now, take the above and paste it into the bottom of local.cf. Then, go ahead and modify it until you're happy. For example, here's what I did:

    Code:
    #   Nicer report by Marcus
    #      ........................................................................
    clear_report_template
    report SpamAssassin has detected this email as junk. The original email is
    report attached if you wish to view or save it.
    report
    report Content preview:  _PREVIEW_
    report
    report Content analysis details:   (_HITS_ points, _REQD_ required)
    report
    report " pts rule name              description"
    report  ---- ---------------------- --------------------------------------------------
    report _SUMMARY_
    #      ........................................................................
    Save the file, then restart SpamAssassin by running:
    /scripts/restartsrv_spamd

    Done!

  2. #2
    Member
    Join Date
    Apr 2004
    Posts
    220

    Default

    do you know how to just drop the attachment? so recipient only receive a notification email instead of a notification + attached spam email?

Similar Threads & Tags
Similar threads

  1. SpamAssassin as {domain} detected message as spam
    By jonwatson in forum E-mail Discussions
    Replies: 2
    Last Post: 10-16-2007, 12:32 PM
  2. Tip: SpamAssassin Config Files
    By mmatos in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-04-2007, 04:57 PM
  3. new account message template
    By phpcow in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-25-2005, 04:00 PM
  4. Have SpamAssassin Delete Message
    By TheBee in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-28-2004, 12:33 PM
  5. Spamassassin w. Exiscan, Rewrite Message...
    By mjm2 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-03-2004, 12:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube