AFP548

Procmail forwarding Mail Problem

Hello all, After one week trying to fix my problem which I posted earlier to this list (https://www.afp548.com/eBBS/viewtopic.php?p=4047#4047), i decided to make this a new Post for clarification. 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, please anybody who knows how to fix my procmail nightmare, read trough. This is my procmailrc file. [quote:1ffccf961b] ### # # 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@mydomain.com :0 w | $USERINBOX [/quote:1ffccf961b] These are my Entries in /etc/postfix/main.cf for procmail [quote:1ffccf961b] mailbox_command = /usr/bin/procmail -t -a "$EXTENSION" mailbox_transport = procmail [/quote:1ffccf961b] These are my Entries in /etc/postfix/master.cf [quote:1ffccf961b] 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 [/quote:1ffccf961b] And when I try to send with this configuration; this is my /procmail.log [quote:1ffccf961b] 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@mydomain.com" Subject: Test Folder: /usr/sbin/sendmail -oi david@mydomain.com 576 procmail: Executing "/usr/sbin/sendmail,-oi,david@mydomain.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@mydomain.com" Subject: Test Folder: /usr/sbin/sendmail -oi david@mydomain.com 688 procmail: Executing "/usr/sbin/sendmail,-oi,david@mydomain.com" # Doesnít the last line of the log look weird? Why are there "," after the # sendmail command? [/quote:1ffccf961b] This Command run from the Terminal works, so I guess it is not sendmail usr/sbin/sendmail -oi david@mydomain.com < test.msg The Mail which should be forwarded to david@mydomain.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, Overrider
Exit mobile version