ajenti-v
ajenti-v copied to clipboard
[Mail] Feature request : spamassassin, dnsbl
Hi ! i'm currently tuning the mail part of my server. I have to mess with ajenti mail conf system in order to hack dnsbls and spamassassin into it.
Have you planned a release of vh-mail with spamassassin (with exim-deamon-heavy) ?
If not, I would suggest you to make small fixes:
- add textareas linked to the following ACLs : acl_check_mail, acl_check_rcpt, acl_check_data.
- for dnsbls, add a checkbox to select "warn" or "deny" (templates.py:165)
Thoses would allow some flexibility in the exim conf. Or may be i'm doing it wrong ? ^^
Agreed. This would be perfect to manage through Ajenti.
Agreed too! I am using ClamAV on Exim, which needs a modification in acl_check_data, and short of modifying the Python files where the Ajenti V Exim templates are I am not sure what to do!
Agreed! I have troubles setting up spamassassin in Ajenti V. Would be awesome to have it integrated. Did anyone managed to get spamassassin working?
Hello
With this simple commit : https://github.com/Eugeny/ajenti-v/commit/612620186f0f905f9b5f1429a7b1d2dcc7db9c8a ; it's now possible !
I don't use dnsbl or ClamAV, but I use spamassassin and I think your config will feat this new approch with ajenti-v.
For exemple, for a spamassassin witch transfert spam mail to another mailbox, I have done this and it works great :
So yeah, I hope it helps you :-)
Thanks so much @Xefir for your help :) :+1:
I will check this out now.
Gregor
I've tried this setting, after added spamd_address, I can't receive any mail. any idea ? if I remove the setting, all the sent mails are received.
@gitawego Do you put ALL the config I put ? Because without the entire 4 blocks, it won't work with spamassassin
I found the problem, I must install exim4-daemon-heavy to get it work.. by default, there is a light version in my VPS. It works now.
thanks a lot :)
@Xefir Do you know how I can just move them to the Junk/Spam folder of the same email? Because your solution seems to create a spam folder at /var/vmail/DOMAIN that is not related to any email account.
Yes, it's easy.
In the last block (witch have the maildir_spam_delivery directive), replace :
directory = /var/vmail/$domain/spam
By :
directory = /var/vmail/$domain/$local_part/.Junk
In fact, I use a special email address spam@domain to store all spams in one place, but I forgot it's not the usual way ^^"
It is working great, thanks a lot. I just want to add that at "Custom configuration" I had to use the following line in order for exim to recognize the spamd_address command.
USE = "exiscan"
Tnx @edonit-moitend ;)
I have created a paste of the code provided by @Xefir to make it easier for us to use. It also enables SSL on port 783 for SMTP.
https://gist.github.com/bbbenji/9b0fdb5f4ced0d55349b
@bbbenji Tnx bro
Why isn't this merged in yet?
Hey @edwardmp I do not understand what you mean there is nothing to merge? commit : 6126201 is already merged a long time ago.
Hi @Beaudinn Thanks for the quick reply. I should have read better, actually I see these options but they were not suitable in my case: I needed to add something in the acl_check_data which isn't possible without editing the template file
Else, if I add acl_check_data exim complains that it is defined twice.
You can change the ajenti template file not recommended but should work
I'd rather not do it, but it's either that or directly editing the exim4.conf file. What I'm saying is that there currently isn't a way to do this without using these approaches.
@Beaudinn would you be OK If I submitted a pull request that allows modification of the content of this specific ACL section through the web interface?