Skip to contentSkip to conversation

access::Deny seems to have stopped working ?

mlmmj Per Jessen 3 participants 10 messages Jun 14, 2020 – Jun 16, 2020

lore
Share & tools
lore

Per Jessen

author
#0 lore raw

For years we have had a standard set of access rules, the previous list manager at openSUSE set them up. Somehow those rules seems to have stopped working - example:

deny ^Content-Type:.*image/png

simply does not deny a mail with a png attached. I was just wondering if anybody else had observed this?

We're on mlmmj 1.2.19.

thanks
Per

Signature · 2 lines
Per Jessen, Zürich (18.2°C)
Member, openSUSE Heroes
#1 lore raw

Have you checked the source of mails going through that it actually matches?

Maybe with. Hex editor.

Quoted 23 lines · Per Jessen

For years we have had a standard set of access rules, the previous list manager at openSUSE set them up. Somehow those rules seems to have stopped working - example:

deny ^Content-Type:.*image/png

simply does not deny a mail with a png attached. I was just wondering if anybody else had observed this?

We're on mlmmj 1.2.19.

thanks
Per

Signature · 2 lines
Per Jessen, Zürich (18.2°C)
Member, openSUSE Heroes
author
#2 lore raw
In reply to Per Jessen
Quoted 3 lines · Mads Martin Jørgensen

Have you checked the source of mails going through that it actually matches?

Maybe with. Hex editor.

Oh yes, it matches just fine. That's the weird thing. I've tested with standard emails from Thunderbird. Other people have noticed the same because we suddenly had emails with e.g. pngs turning up on our mailing lists.

brgds
Per

Signature · 2 lines
Per Jessen, Zürich (17.7°C)
Member, openSUSE Heroes
author
#3 lore raw
In reply to Per Jessen
Quoted 8 lines · Per Jessen

For years we have had a standard set of access rules, the previous list manager at openSUSE set them up. Somehow those rules seems to have stopped working - example:

deny ^Content-Type:.*image/png

simply does not deny a mail with a png attached. I was just wondering if anybody else had observed this?

This morning I added some debug output to mlmmj-process - the reason the "deny" above isn't working is simply that MIME headers in the email body are not being tested :-)

I guess our many 'deny' rules (to refuse various attachments) quite simply _never_ worked.

Signature · 2 lines
Per Jessen, Zürich (17.4°C)
Member, openSUSE Heroes
#4 lore raw
In reply to Per Jessen
Quoted 6 lines · Per Jessen

This morning I added some debug output to mlmmj-process - the reason the "deny" above isn't working is simply that MIME headers in the email body are not being tested :-)

I guess our many 'deny' rules (to refuse various attachments) quite simply _never_ worked.

Is that really the case? Is there the functionality to test the body of a mail, here MIME headers of an attachment? I read in README.access only:

"""
Each header in the mail is tested against each rule, rule by rule. That is, all headers are first tested against the first rule, then all headers are tested against the second rule, and so on. """"

Rodrigo

author
#5 lore raw
In reply to Per Jessen
Quoted 10 lines · Roderick
Quoted 6 lines · Per Jessen

This morning I added some debug output to mlmmj-process - the reason the "deny" above isn't working is simply that MIME headers in the email body are not being tested :-)

I guess our many 'deny' rules (to refuse various attachments) quite simply _never_ worked.

Is that really the case?

As far as I can tell from the source code and my debugging, yes - headers are only collected until the empty line between header and body.

I don't know if there is any other way.

Signature · 2 lines
Per Jessen, Zürich (19.2°C)
Member, openSUSE Heroes
#6 lore raw
In reply to Per Jessen

That's because it's kind of headers, in the body. IIRC you're right Per. Only headers are checked.

Quoted 3 lines · Per Jessen

As far as I can tell from the source code and my debugging, yes - headers are only collected until the empty line between header and body.

Signature · 2 lines
Mads Martin Jørgensen
“Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?” - A. P. J
#7 lore raw
In reply to Per Jessen
Quoted 2 lines · Per Jessen

As far as I can tell from the source code and my debugging, yes - headers are only collected until the empty line between header and body.

And that corresponds to what I read in README.access. That is what I wanted to say: no bug. The OP expects a feature neither implemented nor documented: to filter according to contents in the body. For trateing headers in attachments with RE one needs perhaps something like a variable in it with the boundary.

Rodrigo

author
#8 lore raw
In reply to Per Jessen
Quoted 3 lines · Mads Martin Jørgensen

That's because it's kind of headers, in the body. IIRC you're right Per. Only headers are checked.

Thanks for confirming it, Mads.

Signature · 2 lines
Per Jessen, Zürich (19.2°C)
Member, openSUSE Heroes
author
#9 lore raw
In reply to Per Jessen
Quoted 8 lines · Roderick
Quoted 3 lines · Per Jessen

As far as I can tell from the source code and my debugging, yes - headers are only collected until the empty line between header and body.

And that corresponds to what I read in README.access. That is what I wanted to say: no bug.

Oh yes, I agree. If anything, the bug is on our side, that we have expected it to work for more than 13 years :-)

Signature · 2 lines
Per Jessen, Zürich (19.1°C)
Member, openSUSE Heroes