Rspamd: Feature: Integrate alterMIME support to Rspamd

Created on 5 May 2018  Â·  23Comments  Â·  Source: rspamd/rspamd

Classification (Please choose one option):

  • [ ] Crash/Hang/Data loss
  • [ ] WebUI/Usability
  • [ ] Serious bug
  • [ ] Other bug
  • [x] Feature
  • [ ] Enhancement

Reproducibility (Please choose one option):

  • [x] Always
  • [ ] Sometimes
  • [ ] Rarely
  • [ ] Unable
  • [ ] I didn’t try
  • [ ] Not applicable

Rspamd version:

Operation system, CPU, memory and environment:

Description (Please provide a descriptive summary of the issue):

Please intergrate alterMIME support into Rspamd like done in AMaViS.

Compile errors (if any):

Steps to reproduce:

Expected results:

Integration of alterMIME.

Actual results:

No possibility to add a Footer on outgoing email before DKIM-signing.

Debugging information (see details here):

Configuration:

Additional information:

enhancement

Most helpful comment

This is now done: Rspamd can add headers, remove headers, add HTML signature, add plain text signature using new rspamadm mime modify routine. It is also clever enough to skip pgp signed parts not to break pgp/smime signatures.

All 23 comments

I don't think it will be supported, I'm afraid. Rspamd is not intended to modify message parts in any way.

Hi Vsevolod,

thank you for your reply.

If you take it exactly, rspamd should not change the e-mail, but only offer the possibility to call "alterMIME".

When adding X-Headers, will the email actually change? Yes, OK not the content or the body, but the header?

What do you think?
Klaus.

Hi,
I am writing just as an rspamd user that would benefit from this feature
for sure.
This would open up a whole set of opportunities.

+1 for me

Marco

On Mon, May 7, 2018 at 8:13 AM, Klaus Tachtler notifications@github.com
wrote:

Hi Vsevolod,

thank you for your reply.

If you take it exactly, rspamd should not change the e-mail, but only
offer the possibility to call "alterMIME".

When adding X-Headers, will the email actually change? Yes, OK not the
content or the body, but the header?

What do you think?
Klaus.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/vstakhov/rspamd/issues/2221#issuecomment-386967370,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQMv6CDfeeaGWKBPYJUK6PWlgM_ZXhcBks5tv-YdgaJpZM4Tzgjj
.

I believe that without this functionality we can’t consider rspamd for wide or commercial use
Pointless
Admin is responsible for domain control ex disclaimer etc
This task can’t be from the user side (through signature example)
Can’t believe that we give up open source idea agains MS solutions just because someone developed great peace of software without any support from the other coders

Why should alterMIME be a task for Rspamd? Why do you not write a small Milter for this?

What the schmuck...

I don’t see this as a function for a spam filter, too.

Hi Christian,

if I were such a gifted programmer like you, but maybe you'll accept this challenge for yourself?

Thank you in advance
Klaus. :1st_place_medal:

Hi Christian,

add a disclaimer after DKIM signing (by rspamd) seems not a really good idea?

Or I'm wrong with the example you google'd?

Thank you
Klaus.

That's a good point. :-)

Hi,

if I had a wish, I would wish for the following:

/etc/postix/master.cf

smtpd     pass  -       -       n       -       -       smtpd
  -o smtpd_milters=${spf_milter},${opendkim_milter},${opendmarc_milter},
      ${altermime_milter_by_christian_roessner},${rspamd_milter}

AND

/etc/postfix/main.cf

# SPF (spf-milter)
spf_milter = inet:192.168.0.70:10011
# OpenDKIM (opendkim-milter)
opendkim_milter = inet:192.168.0.70:10012
# OpenDMARC (opendmarc-milter)
opendmarc_milter = inet:192.168.0.70:10013
# alterMIME (altermime_milter_by_christian_roessner})
altermime_milter_by_christian_roessner}= inet:192.168.070:10014
# RSpamd (rspamd-milter)
rspamd_milter = inet:192.168.070:10015

Thank you "Santa Claus" :1st_place_medal: :+1:
Klaus.

Why do you need spf-milter, opendkim milter and opendmark milter? If you have extra CPU resources you can mine some cryptocurrencies for me and leave the rest on Rspamd.

You could also use multiple hops to first use a content_filter (and maybe default_filter_nexthop to define the milter-activated smtpd as next-hop) or check this out: https://github.com/dploeger/disclaimr

Hi Vsevolod,

it was an example from my existing AMaViS installation, and yes your're right the spf-milter, opendkim_milter and the opendmarc_milter will be obsolet with rspamd.

Thank you
Klaus.

Hi André,

thank you for the link, the project seems to be great, BUT a simple solution without DJANGO-Framework, WEB-GUI, extra WEB-Server etc. will be o.k. for me.

By the way: It is only mentioned that incoming e-mails are provided with a disclaimer, not outgoing? (Maybe they mean incoming to their system?)

Quote: "Add disclaimers to the body of incoming emails or replace tags inside the body with disclaimer texts"

A possible alterMIME-milter will be a resource solving solution for me!

But thank you for the link!
Klaus.

@tachtler, you could ask Patrick and I could write you the Milter for alterMIME.

@patrickbenkoetter trigger

I believe that without this functionality we can’t consider rspamd for wide or commercial use
Pointless
Admin is responsible for domain control ex disclaimer etc
This task can’t be from the user side (through signature example)

Why can't you do that as a client-side "signature" ?

Hi yoshimo,

it was NOT my post, but configure a signature for a few clients o.k - BUT if you have more clients (2.000 or more) you whish to have a solution like alterMIME...

Klaus.

I'm now playing with rspamadm mime tool. Probably, I'll be able to create mime structure from a task. If that goes fine, then there will be couple of small steps to implement MIME modifications functions. The main problem is to restore MIME structure for complex messages.

Hi Vsevolod,

nice to hear that, hope you will be successful!

Thank you!
Klaus.

This is now done: Rspamd can add headers, remove headers, add HTML signature, add plain text signature using new rspamadm mime modify routine. It is also clever enough to skip pgp signed parts not to break pgp/smime signatures.

Hi Vsevolod,

thank you for the implementation!

Klaus.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TPWareHouseManager picture TPWareHouseManager  Â·  6Comments

philfry picture philfry  Â·  4Comments

ashceryth picture ashceryth  Â·  7Comments

Natureshadow picture Natureshadow  Â·  8Comments

AlexeySa picture AlexeySa  Â·  7Comments