i**********r 发帖数: 36 | 1 【 以下文字转载自 Linux 讨论区 】
【 原文由 interstellar 所发表 】
Can anyone tell me the step-by-step to do so?
I have a .forward in my $home,
and have a .procmailrc in my $home
in .forward,
"|exec $home/.procmailrc"
in .procmailrc
#!/usr/bin/sh
#
:0:
*.......
folder
.....
I tried to send to this account from another account,
the email was bounced back, saying
can't execute "|exec $home/.procmailrc"
any gurus tell me what is wrong with it?
thanks, | m*****e 发帖数: 4193 | 2 make sure chmod +x ~/.procmailrc
make sure sh is in /usr/bin (most likely it's /bin/sh).
【在 i**********r 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 【 原文由 interstellar 所发表 】 : Can anyone tell me the step-by-step to do so? : I have a .forward in my $home, : and have a .procmailrc in my $home : in .forward, : "|exec $home/.procmailrc" : in .procmailrc : #!/usr/bin/sh : #
| i**********r 发帖数: 36 | 3 well, it turns out that the recipes are not recorgnizable
I add something in .procmailrc like
echo enter .procmailrc `date` >>1
to find that .procmailrc can be executed. But the recipes part
*..
fromme
are not executed. when i check the bounced back email, it
says
----- Transcript of session follows -----
/home/.procmailrc: :0: not found
/home/.procmailrc: from_me: not found
554 "|exec /home/.procmailrc"... unknown mailer error 1
what is wrong with it?
thanks | c*****t 发帖数: 1879 | 4 Does your machine has procmail installed, and is it
the mail delivering agent for your local system?
If so, you can use .procmailrc directly without
.forward at all. If not, you'd better to read
procmail manual about how to use it in .forward.
It could be
|/bin-path/procmail /home-path/.procmailrc
.procmailrc cannot be executed without #!/bin-path/procmail
header, which was not present in your file.
【在 i**********r 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 【 原文由 interstellar 所发表 】 : Can anyone tell me the step-by-step to do so? : I have a .forward in my $home, : and have a .procmailrc in my $home : in .forward, : "|exec $home/.procmailrc" : in .procmailrc : #!/usr/bin/sh : #
|
|