procmail
[Top] [All Lists]

Re: move spam into /home/user/mail/Junk

2006-05-02 17:43:41
hi there,

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

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/DOMAIN/%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 = unix:passwd.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(_dot_)matthews(_at_)cathedral(_dot_)qld(_dot_)edu(_dot_)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**

-- 
Paul Matthews
I.T Trainee | The Cathedral School
Ph  (07) 47222 194 |  Fax (07) 47222 111
PO Box 944 Aitkenvale Q 4814
E:  paul(_dot_)matthews(_at_)cathedral(_dot_)qld(_dot_)edu(_dot_)au
W: www.cathedral.qld.edu.au

Anglican coeducation | Day and Boarding | Early Childhood to Year 12
Educating for life-long success

****************************************************************************
****************************************************************************
***********************************

IMPORTANT NOTICE REGARDING CONFIDENTIALITY

This electronic email message is intended only for the addressee and may
contain confidential information. If you are not the addressee, you are
notified that any transmission, distribution or photocopying of this email
is strictly prohibited. The confidentiality attached to this email is not
waived, lost or destroyed by reasons of a mistaken delivery to you.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>