Skip to content

Instantly share code, notes, and snippets.

@bbbenji
Last active May 9, 2019 09:49
Show Gist options
  • Save bbbenji/9b0fdb5f4ced0d55349b to your computer and use it in GitHub Desktop.
Save bbbenji/9b0fdb5f4ced0d55349b to your computer and use it in GitHub Desktop.
#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
@cluster812
Copy link

Since Ajenti Vmail accompanies with exim-daemon-light, should I just install exim-daemon-heavy over light version? Will the configuration be safe? Or will I have to configure the heavy version to work with my VPS?

@bbbenji
Copy link
Author

bbbenji commented Apr 2, 2019

@cluster812 I don't think anyone should be using Ajenti anymore.

@afidegnum
Copy link

@bbbenji do you have another suggestion? ajenti is still good

@bbbenji
Copy link
Author

bbbenji commented May 9, 2019

@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