Hello all,
After one week trying to fix my problem which I posted earlier to this list
(doesn¹t matter what for now) I reinstalled my osx server as a last resort.
Immediately after getting mail and dns to work I tried to set up procmail
like described in the article found on afp548 website. It still did not
work, but I realized that the problem is not with procmail itself, procmail
works fine, it is the forwarding part that doesn¹t work. I already looked
trough all the hundreds Posts from People who have forwarding problems, but
they are all not quiet the same. Please anybody who knows how to fix my
procmail nightmare, read trough.
This is my procmailrc file.
++++++++++++++
###
#
# Master Procmail Recipe for Postfix > Procmail > Cyrus
#
###
PATH=/bin:/sbin:/usr/bin:/usr/sbin
VERBOSE=on
LOGABSTRACT=yes
LOGFILE=/procmail.log
COMSAT=off
DELIVERTO="/usr/bin/cyrus/bin/deliver"
USERINBOX="$DELIVERTO -e -a $USER -m user/$USER"
#
# OPTIONAL: Include users' own .procmail recipe files
#
#INCLUDERC=/Users/$USER/.procmailrc
#DROPPRIVS=YES
:0
* ^Subject:.*test
! david(_at_)mydomain(_dot_)com
:0 w
| $USERINBOX
++++++++++++++
These are my Entries in /etc/postfix/main.cf for procmail
mailbox_command = /usr/bin/procmail -t -a "$EXTENSION"
mailbox_transport = procmail
These are my Entries in /etc/postfix/master.cf
procmail unix - n n - - pipe
flags=R user=cyrus argv=/usr/bin/procmail -t m USER=${user}
EXTENSION=${extension} /etc/procmailrc #this should be on line 2 I know
++++++++++++++
And when I try to send with this configuration; this is my /procmail.log
rocmail: Assigning "COMSAT=off"
procmail: Assigning "DELIVERTO=/usr/bin/cyrus/bin/deliver"
procmail: Assigning "USERINBOX=/usr/bin/cyrus/bin/deliver -e -a admin -m
user/admin"
procmail: Match on "^Subject:.*test"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi
david(_at_)mydomain(_dot_)com"
Subject: Test
Folder: /usr/sbin/sendmail -oi david(_at_)mydomain(_dot_)com
576
procmail: Executing "/usr/sbin/sendmail,-oi,david(_at_)mydomain(_dot_)com"
procmail: Assigning "COMSAT=off"
procmail: Assigning "DELIVERTO=/usr/bin/cyrus/bin/deliver"
procmail: Assigning "USERINBOX=/usr/bin/cyrus/bin/deliver -e -a david -m
user/david"
procmail: Match on "^Subject:.*test"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi
david(_at_)mydomain(_dot_)com"
Subject: Test
Folder: /usr/sbin/sendmail -oi david(_at_)mydomain(_dot_)com
688
procmail: Executing "/usr/sbin/sendmail,-oi,david(_at_)mydomain(_dot_)com"
# Doesn¹t the last line of the log look weird? Why are there "," after the
# sendmail command?
++++++++++++++
This Command run from the Terminal works, so I guess it is not sendmail
usr/sbin/sendmail -oi david(_at_)mydomain(_dot_)com < test.msg
++++++++++++++
Looks not too bad, but the Mail which should be forwarded to
david(_at_)mydomain(_dot_)com because it has the Subject "Test" never reaches my
Mailbox. It just sits in the mailq and waits until I remove the recipe from
my procmailrc file and then do a sudo postfix reload. Help!
Thank you,
David
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail