avatar
[转载] Re: about incoming email# Unix - 噫吁兮,危乎高哉
i*r
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,
avatar
m*e
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
: #

avatar
i*r
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
avatar
c*t
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
: #

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。