Last active
May 9, 2019 09:49
-
-
Save bbbenji/9b0fdb5f4ced0d55349b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Custom configuration | |
SMTP_PORT == 25:587 | |
LOCAL_INTERFACES == <; 0.0.0.0.25 ; 0.0.0.0.587 ; 0.0.0.0.465 ; [::0]:25 ; [::0]:587 ; [::0]:465 | |
smtp_accept_max = 50 | |
spamd_address = 127.0.0.1 783 | |
ACL_SMTP_DATA == acl_custom_check_data | |
USE = "exiscan" | |
#Custom ACLs | |
acl_custom_check_data: | |
deny | |
message = Message headers fail syntax check | |
!verify = header_syntax | |
warn spam = nobody | |
add_header = X-Spam-Score: $spam_score ($spam_bar) | |
add_header = X-Spam-Report: $spam_report | |
add_header = Subject: ***SPAM (score:$spam_score)*** $h_Subject: | |
warn message = Content Policy Restriction: Mails to undisclosed recipients are not permitted | |
condition = ${if eq{$h_TO:}{undisclosed-recipients:;} {true}{false}} | |
add_header = X-Spam-Score: 100 | |
add_header = Subject: ***SPAM (score:100)*** $h_Subject: | |
accept | |
#Custom routers | |
maildir_spam: | |
driver = accept | |
transport = maildir_spam_delivery | |
condition = ${if def:h_X-Spam_score: {true}} | |
#Custom transports | |
maildir_spam_delivery: | |
driver = appendfile | |
maildir_format = true | |
directory = /var/vmail/$domain/$local_part/.Junk | |
user = mail | |
create_directory | |
delivery_date_add | |
envelope_to_add | |
return_path_add | |
group = mail | |
mode = 0600 |
@bbbenji do you have another suggestion? ajenti is still good
@afidegnum I have switched to a manual config. I was unable to find a good replacement for Ajenti.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cluster812 I don't think anyone should be using Ajenti anymore.