ajenti-v icon indicating copy to clipboard operation
ajenti-v copied to clipboard

[Mail] Feature request : spamassassin, dnsbl

Open pfz opened this issue 10 years ago • 20 comments

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 ? ^^

pfz avatar Jun 26 '14 19:06 pfz

Agreed. This would be perfect to manage through Ajenti.

d19dotca avatar Jul 25 '14 21:07 d19dotca

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!

VincentDatrier avatar Aug 16 '14 19:08 VincentDatrier

Agreed! I have troubles setting up spamassassin in Ajenti V. Would be awesome to have it integrated. Did anyone managed to get spamassassin working?

gambolputty avatar Sep 15 '14 23:09 gambolputty

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 :

capture d ecran 2014-09-20 a 18 32 46

So yeah, I hope it helps you :-)

Xefir avatar Sep 20 '14 16:09 Xefir

Thanks so much @Xefir for your help :) :+1:

I will check this out now.

Gregor

gambolputty avatar Sep 20 '14 20:09 gambolputty

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 avatar Jul 18 '15 22:07 gitawego

@gitawego Do you put ALL the config I put ? Because without the entire 4 blocks, it won't work with spamassassin

Xefir avatar Jul 20 '15 21:07 Xefir

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 :)

gitawego avatar Jul 21 '15 07:07 gitawego

@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.

ghost avatar Sep 10 '15 12:09 ghost

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 ^^"

Xefir avatar Sep 10 '15 13:09 Xefir

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"

ghost avatar Sep 10 '15 13:09 ghost

Tnx @edonit-moitend ;)

Beaudinn avatar Sep 12 '15 08:09 Beaudinn

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 avatar Nov 02 '15 08:11 bbbenji

@bbbenji Tnx bro

Beaudinn avatar Nov 02 '15 14:11 Beaudinn

Why isn't this merged in yet?

edwardmp avatar Dec 14 '16 15:12 edwardmp

Hey @edwardmp I do not understand what you mean there is nothing to merge? commit : 6126201 is already merged a long time ago.

Beaudinn avatar Dec 14 '16 15:12 Beaudinn

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.

edwardmp avatar Dec 14 '16 15:12 edwardmp

You can change the ajenti template file not recommended but should work

Beaudinn avatar Dec 14 '16 15:12 Beaudinn

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.

edwardmp avatar Dec 14 '16 15:12 edwardmp

@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?

edwardmp avatar Dec 14 '16 21:12 edwardmp