LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2006, 07:34 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
Help with Procmail !!!


hi there,

I clearly need some help, because i'm lost with this setup.

i'm trying to get procmail, postfix & SpamAssassin working together.

Anything marked spam i want moved to /home/CATHEDRAL/username/mail/Junk

here is my information

/etc/dovecot.conf

protocols = imap pop3
imap_listen = [::]
pop3_listen = [::]
imaps_listen =
pop3s_listen =
log_path = /var/log/dovecot.log
login = imap
login = pop3
default_mail_env = mbox:/home/CATHEDRAL/%u/mail:INBOX=/var/spool/mail/%u
auth = default
auth_mechanisms = plain
auth_userdb = passwd
auth_passdb = pam
auth_user = root

/etc/procmailrc

ORGMAIL=/var/spool/mail/$USER
MBOX=$HOME
DEFAULT=$ORGMAIL
LOGFILE=/var/log/procmail/procmail.log

DROPPRIVS=yes
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
$HOME/mail/Junk

/etc/postfix/main.cf

command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

mydestination = $myhostname, localhost.$mydomain, $mydomain
local_recipient_maps = unixasswd.byname $alias_maps
hash:/etc/postfix/usernames_forlocalmaps
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases, hash:/etc/postfix/ldap-aliases,
hash:/var/lib/mailman/data/aliases
mailbox_command = /usr/bin/procmail
fallback_transport = procmail
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
content_filter = smtp:127.0.0.1:10025
myhostname = mail.cathedral.qld.edu.au
recipient_delimiter = +
myorigin = $mydomain
hash_queue_names = incoming,active, deferred, bounce, defer, flush, hold,
trace
mynetworks = 192.168.0.0/23, 192.168.100.0/24, 127.0.0.0/8

for some reason I just can't get it to work, can someone please help me,
even if it's only one step.

/var/log/procmail/procmail.log

Created user preferences file: /home//.spamassassin/user_prefs
procmail: Couldn't create or rename temp file "/var/spool/mail/tmp/1146615451.10149_1.mail.cathedral.qld.edu.au"
From paul.matthews@cathedral.qld.edu.au Wed May 3 10:17:26 2006
Subject: topma
Folder: **Bounced** 2380
procmail: Couldn't create or rename temp file "/var/spool/mail/tmp/1146615453.10197_1.mail.cathedral.qld.edu.au"
From MAILER-DAEMON Wed May 3 10:17:31 2006
Subject: Undelivered Mail Returned to Sender
Folder: **Bounced** 4153

Last edited by paul_mat; 05-02-2006 at 07:36 PM.
 
  


Reply



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
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
Procmail rcstest Red Hat 2 02-09-2005 02:53 AM
help with procmail wailm81 Linux - Networking 0 10-15-2004 06:43 PM
Procmail svsalian Linux - Software 0 09-24-2003 08:15 AM
Procmail PcHammer Linux - Software 1 04-23-2003 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:56 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
Open Source Consulting | Domain Registration