Re: Spamtrap email — milter that can still receive, but reject?
On 2022-05-24 17:22, Robert Schetterer wrote: your antispam may simply set mail on hold instead of reject, for human inspection, bounce/delete or forward it then manual later put on hold is fine, just bounce is fails i hope not to see this on common mail servers
Re: Spamtrap email — milter that can still receive, but reject?
On Tue, May 24, 2022 at 04:14:33PM +0200, Dan Mahoney wrote: > Is there a milter of some sort that I can configure to reject (for > some to: addresses) at the end of DATA, but still forward the mail on? > Im dealing with some deleted users who both got a lot of spam, but > also were in the critical path for things and I’m hoping the VERP > bounces trim some of this down. This is also easy with a proxy filter, by passing the message on, but replying with 5XX to "." even when the downstream replied with "2XX". Of course you still need an elementary proxy filter that just stutters all commands and data downstream, but edits the "." reply. Not too hard to write, but I don't have any handy pointers to an off-the-shelf implementation. -- Viktor.
Re: Spamtrap email — milter that can still receive, but reject?
Am 24.05.22 um 16:14 schrieb Dan Mahoney: Hey all, Is there a milter of some sort that I can configure to reject (for some to: addresses) at the end of DATA, but still forward the mail on? Im dealing with some deleted users who both got a lot of spam, but also were in the critical path for things and I’m hoping the VERP bounces trim some of this down. -Dan Sent from my iPad your antispam may simply set mail on hold instead of reject, for human inspection, bounce/delete or forward it then manual later -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG, 80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
Re: Spamtrap email — milter that can still receive, but reject?
On 2022-05-24 09:14, Dan Mahoney wrote: Is there a milter of some sort that I can configure to reject (for some to: addresses) at the end of DATA, but still forward the mail on? Im dealing with some deleted users who both got a lot of spam, but also were in the critical path for things and I’m hoping the VERP bounces trim some of this down. Hi Dan, I think the problem you will encounter is the feature: smtpd_reject_unlisted_recipient. You will have to "undelete" the user before smtpd will accept their mail. If the user does not exist, a milter can't override the smtpd rejection. -- http://rob0.nodns4.us/
Re: Spamtrap email — milter that can still receive, but reject?
> On 05-24-2022 10:14 am, Dan Mahoney wrote: > > configure to reject (for some to: addresses) at the end of DATA, but still > forward the mail on? Not sure I understand, do you mean if a mail is sent to multiple recipients to prevent the mail from being delivered to some of the recipients while allowing the other recipients to still get the mail? If you can code in perl there are two milters you can use that have the ability to add or remove recipients from the mail before it gets handed off. https://mimedefang.org/ https://www.mailmunge.org/ Defang seems to be more popular but I personally prefer mailmunge.