[pfx] Re: simple content filter for outgoing message

2023-04-06 Thread Wietse Venema via Postfix-users
Corey Hickman via Postfix-users: > Hello buddies, > > I just want to make some simple filters for outgoing messages. > for example, the message content has some keywords (like "VPN sale") > included, it will be rejected by the system. > > I know there are the software Rspamd and Spamassassin, bu

[pfx] Re: simple content filter for outgoing message

2023-04-06 Thread Scott Kitterman via Postfix-users
On April 6, 2023 11:39:10 AM UTC, Corey Hickman via Postfix-users wrote: >Hello buddies, > >I just want to make some simple filters for outgoing messages. >for example, the message content has some keywords (like "VPN sale") included, >it will be rejected by the system. > >I know there are th

[pfx] simple content filter for outgoing message

2023-04-06 Thread Corey Hickman via Postfix-users
Hello buddies, I just want to make some simple filters for outgoing messages. for example, the message content has some keywords (like "VPN sale") included, it will be rejected by the system. I know there are the software Rspamd and Spamassassin, but they are too heavy for my simple usage.

Re: Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-20 Thread Yanko Hernández Álvarez
On Tue, Dec 20, 2022 at 9:46 AM Yanko Hernández Álvarez wrote: > > That's a good one > > It seems possible. Let me check. The problem is the ldap query now. > I'm not sure if I can do that with ldap. mailfilter does two ldap > queries, one to lookup the "main" group/role and another to get the

Re: Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-20 Thread Yanko Hernández Álvarez
That's a good one It seems possible. Let me check. The problem is the ldap query now. I'm not sure if I can do that with ldap. mailfilter does two ldap queries, one to lookup the "main" group/role and another to get the email address of that role. Kind of a sql join, but in two parts. Let me s

Re: Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-20 Thread raf
On Mon, Dec 19, 2022 at 12:21:02PM -0500, Yanko Hernández Álvarez wrote: > On Mon, Dec 19, 2022 at 11:36 AM Matus UHLAR - fantomas > wrote: > > >#!/bin/sh > > > > > >/usr/bin/cat | /var/spool/filter/scripts/mailfilter | > > >/usr/sbin/sendmail -G -i "$@" > > > > > >exit $? > > > > t

Re: Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-19 Thread Yanko Hernández Álvarez
On Mon, Dec 19, 2022 at 11:36 AM Matus UHLAR - fantomas wrote: > >#!/bin/sh > > > >/usr/bin/cat | /var/spool/filter/scripts/mailfilter | > >/usr/sbin/sendmail -G -i "$@" > > > >exit $? > > this means that the always_bcc is executed again. > usually the content_filter is supposed to inj

Re: Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-19 Thread Jaroslaw Rafa
Dnia 19.12.2022 o godz. 11:00:38 Yanko Hernández Álvarez pisze: > > The problem is, when I send an email, it delivers two copies to > seccopies@mydomain.example as seen in the logs, not one copy as > expected. [...] > Any idea of how I can fix it? Bear in mind that when you use a post-queue conte

Re: Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-19 Thread Matus UHLAR - fantomas
o set up a very low traffic postfix mail server using: - A Simple content filter (http://www.postfix.org/FILTER_README.html#simple_filter). It's way simpler than the advanced one and the traffic is low. - dovecot as a delivery agent. (Because of maildir quotas and sieve filters) - `always_bcc`

Duplicate message delivery to always_bcc with dovecot and Simple Content Filter (Postfix)

2022-12-19 Thread Yanko Hernández Álvarez
sing: - A Simple content filter (http://www.postfix.org/FILTER_README.html#simple_filter). It's way simpler than the advanced one and the traffic is low. - dovecot as a delivery agent. (Because of maildir quotas and sieve filters) - `always_bcc` to keep copies of every mail sent. (Bussiness rule

Re: Simple content filter

2012-05-18 Thread mouss
Le 18/05/2012 07:22, Stan Hoeppner a écrit : > On 5/17/2012 11:44 PM, /dev/rob0 wrote: >> [snip] >> Note that you must disable restrictions on the reinjection from >> content_filter. You do NOT want to reject at that point, because it >> is risking backscatter. > > Of course. But this is mostly

Re: Simple content filter

2012-05-18 Thread DTNX Postmaster
On May 18, 2012, at 07:22, Stan Hoeppner wrote: > A little OT, but I'd like to ask, as I've not been able to find real > information via Google. What's the memory consumption of a single spamd > process using the default SA configuration? Maybe a better question is > how much real RAM is SA eati

Re: Simple content filter

2012-05-17 Thread Stan Hoeppner
On 5/17/2012 11:44 PM, /dev/rob0 wrote: > On Thu, May 17, 2012 at 11:22:04PM -0500, Stan Hoeppner wrote: >> From: http://www.postfix.org/FILTER_README.html >> >> /etc/postfix/master.cf: >> # = >> # service type private unpriv chroot

Re: Simple content filter

2012-05-17 Thread /dev/rob0
On Thu, May 17, 2012 at 11:22:04PM -0500, Stan Hoeppner wrote: > From: http://www.postfix.org/FILTER_README.html > > /etc/postfix/master.cf: > # = > # service type private unpriv chroot wakeup maxproc command > #

Simple content filter

2012-05-17 Thread Stan Hoeppner
From: http://www.postfix.org/FILTER_README.html /etc/postfix/master.cf: # = # service type private unpriv chroot wakeup maxproc command # (yes) (yes) (yes) (never) (100) # =