Search found 63 matches

by stusmith
02 Mar 2017 12:32
Forum: How-to
Topic: {Spam not delivered} and "lower scoring spam"
Replies: 4
Views: 3459

Re: {Spam not delivered} and "lower scoring spam"

Hi, first of all thanks for the great job you're doing. eFa is simply AWESOME. Defaults consider 4 and above as "Spam", 7 and above as "High Spam". What I found difficult to find out is "lower scoring spam". Which value is it? Below 6? When "lower scoring spam&quo...
by stusmith
28 Feb 2017 19:26
Forum: How-to
Topic: How to integrate E.F.A with Active Directory on 3.0.0.9
Replies: 40
Views: 345643

Re: How to integrate E.F.A with Active Directory on 3.0.0.9

Also, I have a Python3 script that I'm using with the 'PyMySQL' and 'ldap3' modules which queries my Active Directory for users and group memberships, then queries the mailscanner database and updates each user with their Active Directory attributes. It then updates the user_filter to allow users to...
by stusmith
28 Feb 2017 19:10
Forum: How-to
Topic: How to integrate E.F.A with Active Directory on 3.0.0.9
Replies: 40
Views: 345643

Re: How to integrate E.F.A with Active Directory on 3.0.0.9

I forgot to mention the recipient restrictions: /etc/postfix/relay_recipient_maps.cf /etc/postfix/ldap_relay_recipient_maps.cf # # server_host = ldaps://<FQDN DC hostname> search_base = CN=Users,DC=<Your Domain>,DC=<Your Domain Suffix> version = 3 scope = sub bind_dn = CN=<Your AD Account>,CN=Users,...
by stusmith
28 Feb 2017 15:56
Forum: Discussion
Topic: Quarantine Confusion
Replies: 0
Views: 1649

Quarantine Confusion

I've been reading MailScanner and MailWatch documentation trying to get an answer to this. I'm unclear on whether or not messages that have been released or deleted from the quarantine should still show up in the quarantine listing. I don't know if I have a bad configuration or if this is expected b...
by stusmith
25 Feb 2017 23:54
Forum: How-to
Topic: Allowing compressed/archive attachments
Replies: 3
Views: 4550

Re: Allowing compressed/archive attachments

/facepalm :oops:

Do you think adding an EOL anchor to the regex would be sufficient?

Code: Select all

/name=[^>]*\.(bat|com|exe|dll|vbs|js|jar)$/    REJECT
by stusmith
25 Feb 2017 17:29
Forum: How-to
Topic: Allowing compressed/archive attachments
Replies: 3
Views: 4550

Allowing compressed/archive attachments

I'm having some trouble getting .zip and .gz files through MailScanner. I'm seeing a number of 5.7.1 message content rejected messages in /var/log/maillog. I've updated the filename fules in MailScanner: /etc/MailScanner/archives.filename.rules.conf # These are known to be mostly harmless. allow \.j...
by stusmith
25 Feb 2017 16:53
Forum: Introduction
Topic: Hi from Switzerland
Replies: 2
Views: 3188

Re: Hi from Switzerland

I highly recommend it. I'll admit that I get confused where the MTA configuration leaves off and the MailScanner configuration picks up sometimes ( took me a few hours to figure out how to allow compressed attachments through ), but the ability to customize the behavior that you need to to tailor th...
by stusmith
21 Feb 2017 21:48
Forum: How-to
Topic: How to integrate E.F.A with Active Directory on 3.0.0.9
Replies: 40
Views: 345643

Re: How to integrate E.F.A with Active Directory on 3.0.0.9

Okay. LDAPS. Not working for sasl auth yet, but I'll try that next. So, my assumption is that you've got a certificate for your AD DC already. In my case, I've got ADCS running PKI for my domain. I'll assume since you're using Windows that you've got the certificate in .DER format. What you'll want ...
by stusmith
21 Feb 2017 15:00
Forum: Introduction
Topic: Good morning!
Replies: 1
Views: 2627

Good morning!

Hello! I suppose I registered last month but just got around to logging in. I've added some content to the Active Directory integration HOWTO. ( I may have also posted a question in an inappropriate location -- sorry! )
by stusmith
21 Feb 2017 14:58
Forum: How-to
Topic: How to integrate E.F.A with Active Directory on 3.0.0.9
Replies: 40
Views: 345643

Re: How to integrate E.F.A with Active Directory on 3.0.0.9

Okay, I think I've got it. File is /var/www/html/mailscanner/functions.php , line 2610 #/var/www/html/mailscanner/functions.php $ldap_query_sAMAccountName_custom = "(&(objectClass=user)(objectCategory=person)(sAMAccountName=$user)(!(userAccountControl=514))(!(userAccountControl:1.2.840.1135...
by stusmith
21 Feb 2017 14:05
Forum: How-to
Topic: How to integrate E.F.A with Active Directory on 3.0.0.9
Replies: 40
Views: 345643

Re: How to integrate E.F.A with Active Directory on 3.0.0.9

It looks like the relevant file to modify is /var/www/html/mailscanner/functions.conf , starting at line 2610 #/var/www/html/mailscanner/functions.conf //search for $user in LDAP directory if (LDAP_EMAIL_FIELD === 'mail' && strpos($user, '@')) { $ldap_search_results = ldap_search($ds, LDAP_D...
by stusmith
21 Feb 2017 13:51
Forum: How-to
Topic: How to integrate E.F.A with Active Directory on 3.0.0.9
Replies: 40
Views: 345643

Re: How to integrate E.F.A with Active Directory on 3.0.0.9

We are in an interesting scenario in which we have external service that send e-mail notifications on our behalf - sometimes through our server. As such, I needed to require authentication for using our EFA as a relay. I added: #/etc/postfix/main.cf smtpd_sender_restrictions = permit_sasl_authentica...
by stusmith
21 Feb 2017 12:45
Forum: Feature Requests
Topic: DNSBL and stuff
Replies: 17
Views: 18995

Re: DNSBL and stuff

Interesting. I just managed to register on the forums. I've been replacing our current appliance ( a Calyptix Security box ) with the EFA-Project and I've been very happy with it. There are a few things left to do. I had managed to get fail2ban working with postfix. I created two jails, postfix and ...