procmail
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| procmail [2022/07/19 19:52] – created 85.134.209.200 | procmail [2022/07/24 10:36] (current) – admin | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Lets write a basic Procmail script: | Lets write a basic Procmail script: | ||
| + | < | ||
| vi / | vi / | ||
| Line 28: | Line 29: | ||
| #This command will copy emails which are From and To the various users. Once these 2 criteria are met, then the email is copied into the Test_Folder. | #This command will copy emails which are From and To the various users. Once these 2 criteria are met, then the email is copied into the Test_Folder. | ||
| + | </ | ||
| There is a load more commands and checks which procmail can carry out. It can run a virus scan and spam check on some, or all of your email. | There is a load more commands and checks which procmail can carry out. It can run a virus scan and spam check on some, or all of your email. | ||
| The : means lockfile while processing. | The : means lockfile while processing. | ||
| + | < | ||
| man procmailrc | man procmailrc | ||
| - | <nowiki>//</ | + | #shows all options |
| + | </code> | ||
| ===== Forward a Copy of all Emails to another email account ===== | ===== Forward a Copy of all Emails to another email account ===== | ||
| Although it is possible to do this using the / | Although it is possible to do this using the / | ||
| + | < | ||
| :0 c | :0 c | ||
| | | ||
| + | </ | ||
| ===== Procmail Examples ===== | ===== Procmail Examples ===== | ||
| Simple!: | Simple!: | ||
| + | < | ||
| man procmailex | man procmailex | ||
| - | ---- | + | </ |
procmail.1658260370.txt.gz · Last modified: 2022/07/19 20:13 (external edit)