Hi Serge, Thank you for your soon reply. Before you reply to me, I have looked .mailfiter several times, but I still can't figure out it. And I focused on "sh: -c:". don't know where -c is located in the scripts. This is used for user's autoreply, and it works, but just sometimes will be happened.
Would you please correct my fault ? This following is the information of .mailfilter #============================================ logfile "/home/domains/YYYY.com/laura/mailfilter.log" VERBOSE 9 # # autoreply # if (/^Subject:.*/) { SUBJECT=$MATCH } # These emails won't do autoreply if (! (/^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ || /^From:[EMAIL PROTECTED]/ ) ) { cc "| mailbot -A 'X-Sender: $FROM' -A 'From: $FROM' -d autoresponsedb -s 'Out of Office AutoReply: $SUBJECT' -m '$HOME/Maildir/autoreply.cf' $SENDMAIL -t -f ''" } to "$HOME/Maildir/." #========================================== 2006/12/12, Sergiy Zhuk <[EMAIL PROTECTED]>: > hi > > On Tue, 12 Dec 2006, Cheng Bruce wrote: > > > I can't figure out why this following error message shown in queue and > > can't delivery to user's mailbox > > Check what .mailfilter is doing. > One of the common mistakes is not treating special chars properly. > They need to be escaped, especially when you pass original message headers > to things like mailbot or if you're trying to construct a regexp. > > > (temporary failure. Command output: sh: -c: line 0: unexpected EOF > > while looking for matching `'' sh: -c: line 1: syntax error: > > Looks like exactly what I'm talking about, single quote being the special > char. > > > unexpected end of file maildrop: error writing to mailbox. > > /usr/bin/maildrop: Unable to deliver to mailbox.) > > -- > rgds, > serge > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users