← 返回命令列表

Linux command

procmail 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Deliver mail using recipes

procmail < [email.txt]

Test recipe file

procmail -m [VERBOSE=on] [recipe] < [email.txt]

Specify maildir

procmail -d [maildir]

说明

procmail is a mail delivery agent and filtering program. It sorts incoming mail into folders based on rules defined in .procmailrc, enabling automatic mail organization. The tool can filter spam, sort mailing lists, forward mail, and execute scripts based on message content.

参数

-d _maildir_
Delivery directory.
-m _params_
Use as filter.
-t
Fail if not run as daemon.
-v
Verbose mode.
-f _fromline_
Set From line.

FAQ

What is the procmail command used for?

procmail is a mail delivery agent and filtering program. It sorts incoming mail into folders based on rules defined in .procmailrc, enabling automatic mail organization. The tool can filter spam, sort mailing lists, forward mail, and execute scripts based on message content.

How do I run a basic procmail example?

Run `procmail < [email.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d _maildir_ do in procmail?

Delivery directory.