change README.md
This commit is contained in:
64
README.md
64
README.md
@@ -328,6 +328,38 @@ In this example it is assumed, that another milter (e.g. Amavisd or Rspamd) adds
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"socket": "unix:/tmp/pyquarantine.sock",
|
"socket": "unix:/tmp/pyquarantine.sock",
|
||||||
|
"storages": {
|
||||||
|
"virus": {
|
||||||
|
"type": "file",
|
||||||
|
"directory": "/mnt/data/quarantine/virus",
|
||||||
|
},
|
||||||
|
"spam": {
|
||||||
|
"type": "file",
|
||||||
|
"directory": "/mnt/data/quarantine/spam",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notifications": {
|
||||||
|
"virus": {
|
||||||
|
"type": "email",
|
||||||
|
"smtp_host": "localhost",
|
||||||
|
"smtp_port": 2525,
|
||||||
|
"envelope_from": "notifications@example.com",
|
||||||
|
"from_header": "{FROM}",
|
||||||
|
"subject": "[VIRUS] {SUBJECT}",
|
||||||
|
"template": "/etc/pyquarantine/templates/notification.template",
|
||||||
|
"repl_img": "/etc/pyquarantine/templates/removed.png"
|
||||||
|
},
|
||||||
|
"spam": {
|
||||||
|
"type": "email",
|
||||||
|
"smtp_host": "localhost",
|
||||||
|
"smtp_port": 2525,
|
||||||
|
"envelope_from": "notifications@example.com",
|
||||||
|
"from_header": "{FROM}",
|
||||||
|
"subject": "[SPAM] {SUBJECT}",
|
||||||
|
"template": "/etc/pyquarantine/templates/notification.template",
|
||||||
|
"repl_img": "/etc/pyquarantine/templates/removed.png"
|
||||||
|
}
|
||||||
|
},
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"name": "inbound",
|
"name": "inbound",
|
||||||
@@ -342,20 +374,8 @@ In this example it is assumed, that another milter (e.g. Amavisd or Rspamd) adds
|
|||||||
"headers": ["^X-Virus: Yes"],
|
"headers": ["^X-Virus: Yes"],
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"store": {
|
"store" = "virus",
|
||||||
"type": "file",
|
"notify" = "virus",
|
||||||
"directory": "/mnt/data/quarantine/virus",
|
|
||||||
},
|
|
||||||
"notify": {
|
|
||||||
"type": "email",
|
|
||||||
"smtp_host": "localhost",
|
|
||||||
"smtp_port": 2525,
|
|
||||||
"envelope_from": "notifications@example.com",
|
|
||||||
"from_header": "{FROM}",
|
|
||||||
"subject": "[VIRUS] {SUBJECT}",
|
|
||||||
"template": "/etc/pyquarantine/templates/notification.template",
|
|
||||||
"repl_img": "/etc/pyquarantine/templates/removed.png"
|
|
||||||
},
|
|
||||||
"smtp_host": "localhost",
|
"smtp_host": "localhost",
|
||||||
"smtp_port": 2525,
|
"smtp_port": 2525,
|
||||||
"milter_action": "REJECT",
|
"milter_action": "REJECT",
|
||||||
@@ -368,20 +388,8 @@ In this example it is assumed, that another milter (e.g. Amavisd or Rspamd) adds
|
|||||||
"headers": ["^X-Spam: Yes"]
|
"headers": ["^X-Spam: Yes"]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"store": {
|
"store" = "spam",
|
||||||
"type": "file",
|
"notify" = "spam",
|
||||||
"directory": "/mnt/data/quarantine/spam",
|
|
||||||
},
|
|
||||||
"notify": {
|
|
||||||
"type": "email",
|
|
||||||
"smtp_host": "localhost",
|
|
||||||
"smtp_port": 2525,
|
|
||||||
"envelope_from": "notifications@example.com",
|
|
||||||
"from_header": "{FROM}",
|
|
||||||
"subject": "[SPAM] {SUBJECT}",
|
|
||||||
"template": "/etc/pyquarantine/templates/notification.template",
|
|
||||||
"repl_img": "/etc/pyquarantine/templates/removed.png"
|
|
||||||
},
|
|
||||||
"smtp_host": "localhost",
|
"smtp_host": "localhost",
|
||||||
"smtp_port": 2525,
|
"smtp_port": 2525,
|
||||||
"milter_action": "DISCARD"
|
"milter_action": "DISCARD"
|
||||||
|
|||||||
Reference in New Issue
Block a user