由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - [转载] Re: about incoming email
相关主题
How to open *.bin files?procmail: a mini-mimi FAQ
how to use setuid permission for a perl program?Anybody knows where to get PINE source code? thanks!
please help, CGI..Block address under pine
Question about DDD Debugger真心求助!谢谢。
exec 求救**真心求助!!多谢了!!
how to set filter in pine???求大侠贴个垃圾邮件过滤文件 .procmail
About blocking email in pine.Re: 如何限制用户锁屏?
如何转发EmailHelp!
相关话题的讨论汇总
话题: procmailrc话题: home话题: procmail话题: incoming话题: exec
进入Unix版参与讨论
1 (共1页)
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
: #

1 (共1页)
进入Unix版参与讨论
相关主题
Help!exec 求救
为什么root都无权改文件?how to set filter in pine???
CXTERM 终结说明About blocking email in pine.
dynamic assigned port number for UDP socket, need help!如何转发Email
How to open *.bin files?procmail: a mini-mimi FAQ
how to use setuid permission for a perl program?Anybody knows where to get PINE source code? thanks!
please help, CGI..Block address under pine
Question about DDD Debugger真心求助!谢谢。
相关话题的讨论汇总
话题: procmailrc话题: home话题: procmail话题: incoming话题: exec