Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I set up following .procmailrc

MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
:0 c
* ! ^X-Loop: user@hoge.jp
! forward@forward.com

but, I can't forward e-mails

share|improve this question

3 Answers 3

Did you tell postfix to use procmail?? I have the following in my '~/.forward':

"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #user"
share|improve this answer

Set something like: LOGFILE=/home/you/procmail.log

and see what shows up. Paste it in here, and we'll be able to help more.

share|improve this answer
  • why the c after :0 ? delete it
  • Knows your MTA something about procmail? under exim4 there is a procmail router...
  • if not, use also a .forward with something like that:

    "|IFS=' ' && exec /usr/local/bin/procmail || exit 75 #your_user_name"
    
  • whats with a logfile in your .procmailrc?

    PATH=/bin:/usr/bin
    MAILDIR=$HOME/Maildir/
    DEFAULT=$MAILDIR
    LOGFILE=$HOME/procmail.log
    
share|improve this answer
    
The c after :O means to do this rule to a copy of the message. I assume the intent is to send a copy along and still receive the message. –  Bill Weiss Jul 9 '09 at 4:39
    
yes, I think so too, but there is an nother rule missing behind. Perhaps this is the problem... –  ThorstenS Jul 9 '09 at 7:56
    
It will fall through and deliver as normal. That's reasonable. –  Bill Weiss Aug 30 '09 at 18:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.