Zhang Huangbin avatar Zhang Huangbin committed d7fe2f1

Don't quarantine spam/banned mails on local file system in Amavisd since they're marked as D_PASS by default.

Comments (0)

Files changed (1)

iRedMail/functions/amavisd.sh

 #\$spam_quarantine_to = 'spam-quarantine';
 
 # Quarantine method. How to store mail body.
-#   - 'local:spam-%i-%m', store mail on local file system.
-#   - 'sql:', store mail body in MySQL. 
+#   - 'local:spam-%i-%m', quarantine mail on local file system.
+#   - 'sql:', quarantine mail in SQL server specified in @storage_sql_dsn. 
+#   - undef, do not quarantine mail.
 #\$spam_quarantine_method = 'sql:';
+\$spam_quarantine_method = undef;
 
 #########################
 # Quarantine VIRUS mails.
 #########################
 # Quarantine BANNED mails.
 #
+\$banned_files_quarantine_method = undef;
+# Or quarantine banned mail to SQL server.
 #\$banned_files_quarantine_method = 'sql:';
 #\$banned_quarantine_to = 'banned-quarantine';
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.