LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices



Reply
 
Search this Thread
Old 07-18-2003, 12:49 PM   #1
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
Postfix/ Redhat 9 bug fix


As some might discover when setting up Postfix and Spamassassin on a Red Hat 9 machine, there is a strange bug that causes email (legitimate) to show up with no subject or body, just a from field and "Undisclosed Recipients" in the to: field. This is caused by a bug in Red Hat that cannot correctly process UTF-64 encoded messages.

To fix this edit the /etc/sysconfig/i18n file and change
LANG="en_US.UTF-8"

to read

LANG="en_US"

And all will be well.

See my sig below for great instructions on setting up Postfix and Spamassassin.
 
Old 07-18-2003, 01:53 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I don't know where better to respond since you don't accept email...

The link in your sig for Postfix/SpamAssasin appears to not be working... Maybe it's just me though.

Cool
 
Old 07-18-2003, 05:57 PM   #3
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Original Poster
Rep: Reputation: 46
Thanks MC, I will correct that. It's probably a good idea to post the file here as well. This is from a post on the spamassassin-talk mailing list.

<begin quote>
Hello, SpamAssassin mailing list

Some new documentation I've created. I'll be placing this online, but
figured I'd post it here as well. Maybe of some use to people

Please note: File locations are based on my own install. Yours may be
different, and should be checked and appropriate changes made.

1. Install postfix and get it working for your domain. See
http://www.postfix.org for details.

2. Install SpamAssassin. The easiest way to do this is with the command
"perl -MCPAN -e 'install Mail::SpamAssassin'"

3. As root, create a file at /usr/bin/postfixfilter with the following
content: #!/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?

4. Run "chmod 755 /usr/bin/postfixfilter"

5. Create a user called 'spamfilter'. Make it a complete user, with home
directory and shell.

6. Run "chown spamfilter /usr/bin/postfixfilter"

7. In /etc/postfix/master.cf in the "Services" section, alter the 'smtp'
line as follows (the " -o con..." SHOULD be on the next line:

#
-----------------------------------------------------------------------
-- smtp inet n - n - - smtpd
-o content_filter=spamfilter:
#
-----------------------------------------------------------------------
--

8. In /etc/postfix/master.cf in the "Interfaces to non-Postfix software"
section add:

#
-----------------------------------------------------------------------
-- spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/bin/postfixfilter -f ${sender} --
${recipient}#
-----------------------------------------------------------------------
--

9. Restart postfix and make sure you can still get email. Send a fake
spam through the system (from an outside address) to verify that spam is
marked as spam. For information on configuring SpamAssassin, go to
http://www.spamassassin.org.

10. Install 'procmail' if it is not already installed. To discover this
try 'which procmail'.

11. For each user who needs a 'spam' mailbox, follow steps 12 - 13. You
can safely stop right here if you do not want any users to have their
spam filtered into another mailbox.

12. Create a file in their home directory, owned by them, called
'.procmailrc'. Enter the following into it, making sure that the
locations listed are what you wish to use for mailbox location (here we
are using /home/$username/mail/ as the location for mail folders:#
-----------------------------------------------------------------------
-- MAILDIR=$HOME/mail
DEFAULT=$HOME/mail/Inbox
LOGFILE=$HOME/mail/proc.log

# Catch SPAM
:0
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*\*
spam
#
-----------------------------------------------------------------------
--

Explanation of the above -

MAILDIR is the location of mailbox folders

DEFAULT is the default mailbox.

"* ^X-Spam-Flag: YES" makes sure the email is marked as spam before
doing anything with it.

"* ^X-Spam-Level: \*\*\*\*\*\*" make sure the spam received a 'spam
score' of at least 6 before doing anything with it. This ensures that
'borderline' cases that are more likely to be 'false positives' (meaning
they have been falsely marked as spam) do not go into the spam mailbox.

'spam' is the name of the mailbox they are going into.

13. Create a file in their home directory, owned by them, called
'.forward'. Enter the following into it, changing 'username' to their
username. Include the quotes and the pound ("#") symbol!

"|IFS=' ' && exec /usr/bin/procmail || exit 75 #username"

14. As with any change made to user's mailboxes, test!

15. Keep SpamAssassin update with the same procedure you used to install
it in #2.


Greg
</end quote>

Last edited by Pcghost; 07-18-2003 at 06:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox 1.0.2 bug-fix released rgiggs Slackware 13 03-25-2005 06:09 AM
KDE 3.2 bug -> fix or upgrade? LJT Linux - Software 2 10-14-2004 03:59 AM
Bug Fix Ctp. Obvious Linux - Newbie 5 08-02-2004 07:58 AM
Bug fix update for 10.0 akihandyman Mandriva 3 07-14-2004 05:13 PM
bug in RPM, but how to fix? bearcatsandor Linux - Software 2 12-06-2001 07:34 PM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration