由买买提看人间百态

topics

全部话题 - 话题: procmailrc
(共0页)
i**********r
发帖数: 36
1
来自主题: Unix版 - [转载] Re: about incoming email
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
i**********r
发帖数: 36
2
来自主题: Unix版 - [转载] Re: about incoming email
【 以下文字转载自 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,
c*****t
发帖数: 1879
3
来自主题: Unix版 - [转载] Re: about incoming email
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.
J*e
发帖数: 230
4
来自主题: Internet版 - 在unix下屏蔽Junk Mail方法
1. 在 ~/ 建立文件 .procmailrc , 内容如下:
#Set on when debugging VERBOSE=off
#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)
MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
LOGFILE=/dev/null
# LOGFILE=$PMDIR/log
# INCLUDERC=$PMDIR/rc.testing
INCLUDERC=$PMDIR/rc.maillists
2. 在 ~/ 下建立目录 .procmail
3. 在 .procmail/ 里建立两个文件, 一个是 .forward, 一个是 rc.maillists
.forward 的内容是:
"|I
l*0
发帖数: 195
5
能不能介绍一下 .procmailrc 怎么设置?
我试验了一下,收下来的每一封信被存了一个单独
的文件,而不是把所有的信存成一个文件,这样的话
用 mutt 看就不对了。
p****s
发帖数: 3184
6
来自主题: Security版 - 请教!

email address can be forged, not very useful.
Find the source ip and block the ip.
Here is part of my .procmailrc (I'm using procmail), f**k all the
email spammers from China.
* [[]61\.48\.
/dev/null
* [[]61\.129\.
/dev/null
* [[]61\.1[3-9][0-9]\.
/dev/null
* [[]61\.2[123][0-9]\.
/dev/null
* [[]165\.243\.220\.
/dev/null
* [[]200\.[346][0-9]\.
/dev/null
* [[]202\.9[0-9]\.
/dev/null
* [[]202\.1[017][0-9]\.
/dev/null
* [[]203\.93\.
/dev/null
* [[]203\.207\.
/dev/null
* [[]203\.240\.
/dev/null
* [[
m*****e
发帖数: 4193
7
来自主题: Unix版 - [转载] Re: about incoming email
make sure chmod +x ~/.procmailrc
make sure sh is in /usr/bin (most likely it's /bin/sh).
i**********r
发帖数: 36
8
Do you mean pre-sort or post-sort?
Pre-sorting is none of pine's business, pine only manipulate on the emails
that are already somewhere. If you want some emails go to some assigned
folders, try write a .procmailrc file in you home directory. try
"man procmail" to see how to write one.
If you want post-sort the emails you've already read, pine CAN do that.
t*******a
发帖数: 22
9
来自主题: Unix版 - Block address under pine
pine actually does provide some basic filter functionality but maybe that's not
enough for your problem. (checkout pine tech ref)
Usually, people use procmail to do complicated mail catgorizing. You need to
write your .procmailrc file. (man procmail)
(共0页)