Re: Sieve vacation :addresses match only case-sensitive?

2019-11-11 Thread Philipp Faeustlin via dovecot

Am 11.09.19 um 22:09 schrieb Stephan Bosch via dovecot:



On 02/09/2019 15:05, Philipp Faeustlin via dovecot wrote:
The recipients in the vacation :addresses String list are matched 
case-sensitive.


If the recipient gets a mail with wrong case, the message is discarded 
with:
"discarding vacation response for implicitly delivered message; no 
known (envelope) recipient address found in message headers"


I think the matching should be case-insensitive.

Is this a bug or do I miss some option?

I'm using Dovecot 2.3.7.2, Pigeonhole version 0.5.7.2.


We're looking into this. Tracking internally as DOP-1424.

Regards,

Stephan.
Hello Stephan,


are there some news about this topic?
What happened to this BUG tracked by you internally as DOP-1424?

Regards,

Philipp




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Bug] Sieve vacation :addresses match only,>, case-sensitive?

2019-09-20 Thread Klaus Steinberger via dovecot
Hi,

>> I never saw any mail system in which the local Part ist Case sensitive!
> 
> Every Unix/Linux system (I?d say that represents the majority of mail 
> systems) has a case sensitive local part. Most mail admins have set their 
> systems up to normalize all users on lowercase names, but that is not and has 
> not always been the case.

at least in every large installation LDAP User Backend's (or AD or
similar) are used, and they are definitly case insensitive for the CN or
UID attributes. Really nobody who cares about his systems and users uses
mailboxnames which just differ in case (too much danger of confusion!)

At least sieve must reflect the same settings as the MDA, so if the MDA
is set to downcase (which in my opionion is the only valuable setting)
sieve must also downcase.

Sincerly,
Klaus

<>

signature.asc
Description: OpenPGP digital signature


Re: [Bug] Sieve vacation :addresses match only,> case-sensitive?

2019-09-12 Thread @lbutlr via dovecot
On Sep 11, 2019, at 1:25 PM, Klaus Steinberger 
 wrote:
> I never saw any mail system in which the local Part ist Case sensitive!

Every Unix/Linux system (I’d say that represents the majority of mail systems) 
has a case sensitive local part. Most mail admins have set their systems up to 
normalize all users on lowercase names, but that is not and has not always been 
the case.



-- 
Belief is one of the most powerful organic forces in the multiverse. It
may not be able to move mountains, exactly. But it can create someone
who can.



Re: [Bug] Sieve vacation :addresses match only,> case-sensitive?

2019-09-11 Thread Eray Aslan via dovecot
On Wed, Sep 11, 2019 at 04:43:48PM -0400, Hendrik Boom via dovecot wrote:
> Isn't the user name in the original Unix mail system (and presumably 
> most of its descentants) case sensitive?  In which case it has to 
> distinguish between mail sent to bob and to Bob?

Message handling systems MUST preserve case, systems delivering messages
to a mailbox SHOULD ignore case.

RFCs, especially earlier ones, require local-part to be case senstive
but that was a poorly thought out directive and the world largely
ignored it.

-- 
Eray


Re: [Bug] Sieve vacation :addresses match only,> case-sensitive?

2019-09-11 Thread Bernd Petrovitsch via dovecot
On 11/09/2019 22:43, Hendrik Boom via dovecot wrote:
> On Wed, Sep 11, 2019 at 09:25:54PM +0200, Klaus Steinberger via dovecot wrote:
>>> I want to have it case-insensitive again, like in Pigeonhole version 0.4.24
>>
>> i would also plea for making it case-insensitive again! We were hit by this 
>> too,
>> and I never saw any mail system in which the local Part ist Case sensitive!

E.g.
https://stackoverflow.com/questions/9807909/are-email-addresses-case-sensitive
discusses this - including quotes from RFCs ...

> Isn't the user name in the original Unix mail system (and presumably 
> most of its descentants) case sensitive?  In which case it has to 
> distinguish between mail sent to bob and to Bob?

The local part of an email domain has absolutely nothing to do with any
(local or non-local) user account - and who says that there are any user
accounts/logins (apart from root and so-called system users) on the mail
system?
Yes, it *could* have something to do, and yes it actually may often be
the case but that's just a - intended or not intended - coincidence 

MfG,
Bernd
-- 
Bernd Petrovitsch  Email : be...@petrovitsch.priv.at
 LUGA : http://www.luga.at


Re: [Bug] Sieve vacation :addresses match only,> case-sensitive?

2019-09-11 Thread Hendrik Boom via dovecot
On Wed, Sep 11, 2019 at 09:25:54PM +0200, Klaus Steinberger via dovecot wrote:
> > I want to have it case-insensitive again, like in Pigeonhole version 0.4.24
> 
> i would also plea for making it case-insensitive again! We were hit by this 
> too,
> and I never saw any mail system in which the local Part ist Case sensitive!

Isn't the user name in the original Unix mail system (and presumably 
most of its descentants) case sensitive?  In which case it has to 
distinguish between mail sent to bob and to Bob?

- hendrik


Re: Sieve vacation :addresses match only case-sensitive?

2019-09-11 Thread Stephan Bosch via dovecot




On 02/09/2019 15:05, Philipp Faeustlin via dovecot wrote:
The recipients in the vacation :addresses String list are matched 
case-sensitive.


If the recipient gets a mail with wrong case, the message is discarded 
with:
"discarding vacation response for implicitly delivered message; no 
known (envelope) recipient address found in message headers"


I think the matching should be case-insensitive.

Is this a bug or do I miss some option?

I'm using Dovecot 2.3.7.2, Pigeonhole version 0.5.7.2.


We're looking into this. Tracking internally as DOP-1424.

Regards,

Stephan.



Re: [Bug] Sieve vacation :addresses match only,> case-sensitive?

2019-09-11 Thread Stephan Bosch via dovecot




On 11/09/2019 21:25, Klaus Steinberger via dovecot wrote:

I want to have it case-insensitive again, like in Pigeonhole version 0.4.24

i would also plea for making it case-insensitive again! We were hit by this too,
and I never saw any mail system in which the local Part ist Case sensitive!


We're looking into this. Tracking internally as DOP-1424.

Regards,

Stephan.


Re: [Bug] Sieve vacation :addresses match only,> case-sensitive?

2019-09-11 Thread Klaus Steinberger via dovecot
> I want to have it case-insensitive again, like in Pigeonhole version 0.4.24

i would also plea for making it case-insensitive again! We were hit by this too,
and I never saw any mail system in which the local Part ist Case sensitive!

Sincerly,
Klaus Steinberger


-- 
Rechnerbetriebsgruppe / IT, Fakultät für Physik
Klaus Steinberger
FAX: +49 89 28914280
Tel: +49 89 28914287



signature.asc
Description: OpenPGP digital signature


Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-09 Thread Philipp Faeustlin via dovecot



Am 09.09.19 um 15:58 schrieb Sami Ketola:




On 9 Sep 2019, at 16.17, Philipp Faeustlin via dovecot  
wrote:


It is not recommended to rely on local-part case, but it is indeed
case-sensitive.
And this is to avoid such issues that postfix supports address
cleanup/canonicalisation before forwarding mails to dovecot.
--
RFC 5321:
"Local-part = Dot-string / Quoted-string ; MAY be case-sensitive
[…]
While the above definition for Local-part is relatively permissive,
for maximum interoperability, a host that expects to receive mail
SHOULD avoid defining mailboxes where the Local-part requires (or
uses) the Quoted-string form or where the Local-part is case-sensitive."
And therefore “receive liberally” policy that wants to assume 
case-insensitivity should single-case the address IN THE COMPARISON.

The local-part MAY be case-sensitive, but in general I don't know any mail 
addresses where the case matters.
Thus it is hard for me to understand, why this comparison of the vacation 
address is case-sensitive. Whether the final recipients address is also treated 
case-insensitive.

If this has to be case-sensitive to be RFC compliant, then please create an 
option for admins or users to change the behavior to an case-insensitive 
comparison.



Just change auth_username_format = %Lu to make all addresses lowercase. That 
should solve your problem.
Or if you REALLY REALLY want to have case-sensitive userpart, then use 
auth_username_format = %n@%Ld

Sami

It seems there is a misunderstanding. In Pigeonhole Sieve version 
0.5.7.2, the vacation module compares the additional :addresses 
case-sensitive.

I want to have it case-insensitive again, like in Pigeonhole version 0.4.24

Philipp




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-09 Thread Sami Ketola via dovecot



> On 9 Sep 2019, at 16.17, Philipp Faeustlin via dovecot  
> wrote:
> 
>>It is not recommended to rely on local-part case, but it is indeed
>>case-sensitive.
>>And this is to avoid such issues that postfix supports address
>>cleanup/canonicalisation before forwarding mails to dovecot.
>>--
>>RFC 5321:
>>"Local-part = Dot-string / Quoted-string ; MAY be case-sensitive
>>[…]
>>While the above definition for Local-part is relatively permissive,
>>for maximum interoperability, a host that expects to receive mail
>>SHOULD avoid defining mailboxes where the Local-part requires (or
>>uses) the Quoted-string form or where the Local-part is case-sensitive."
>> And therefore “receive liberally” policy that wants to assume 
>> case-insensitivity should single-case the address IN THE COMPARISON.
> The local-part MAY be case-sensitive, but in general I don't know any mail 
> addresses where the case matters.
> Thus it is hard for me to understand, why this comparison of the vacation 
> address is case-sensitive. Whether the final recipients address is also 
> treated case-insensitive.
> 
> If this has to be case-sensitive to be RFC compliant, then please create an 
> option for admins or users to change the behavior to an case-insensitive 
> comparison.
> 

Just change auth_username_format = %Lu to make all addresses lowercase. That 
should solve your problem.
Or if you REALLY REALLY want to have case-sensitive userpart, then use 
auth_username_format = %n@%Ld

Sami



Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-09 Thread Philipp Faeustlin via dovecot

It is not recommended to rely on local-part case, but it is indeed
case-sensitive.

And this is to avoid such issues that postfix supports address
cleanup/canonicalisation before forwarding mails to dovecot.

--
RFC 5321:

"Local-part     = Dot-string / Quoted-string ; MAY be case-sensitive
[…]
While the above definition for Local-part is relatively permissive,
for maximum interoperability, a host that expects to receive mail
SHOULD avoid defining mailboxes where the Local-part requires (or
uses) the Quoted-string form or where the Local-part is case-sensitive."




And therefore “receive liberally” policy that wants to assume 
case-insensitivity should single-case the address IN THE COMPARISON.



The local-part MAY be case-sensitive, but in general I don't know any 
mail addresses where the case matters.
Thus it is hard for me to understand, why this comparison of the 
vacation address is case-sensitive. Whether the final recipients address 
is also treated case-insensitive.


If this has to be case-sensitive to be RFC compliant, then please create 
an option for admins or users to change the behavior to an 
case-insensitive comparison.




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-04 Thread Roger Klorese via dovecot
>
> It is not recommended to rely on local-part case, but it is indeed
> case-sensitive.
>
> And this is to avoid such issues that postfix supports address
> cleanup/canonicalisation before forwarding mails to dovecot.
>
> --
> RFC 5321:
>
> "Local-part = Dot-string / Quoted-string ; MAY be case-sensitive
> […]
> While the above definition for Local-part is relatively permissive, for
> maximum interoperability, a host that expects to receive mail SHOULD avoid
> defining mailboxes where the Local-part requires (or uses) the
> Quoted-string form or where the Local-part is case-sensitive."
>
>



And therefore “receive liberally” policy that wants to assume
case-insensitivity should single-case the address IN THE COMPARISON.

>
>


Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-04 Thread Jean-Daniel via dovecot


> Le 4 sept. 2019 à 19:37, Roger Klorese via dovecot  a 
> écrit :
> 
> 
> 
> On Wed, Sep 4, 2019 at 8:25 AM Philipp Faeustlin via dovecot 
> mailto:dovecot@dovecot.org>>
> Further investigation showed me that it has to be a bug.
> 
> I tested with Dovecot 2.2.36.3 (a7d78f5a2), Pigeonhole version 0.4.24 
> (5a7e9e62):
> 
> In this version the additional addresses in vacation :addresses 
> ["t...@example.com "] are handled case-insensitive.
> 
> In the new version: Dovecot 2.3.7.2 (3c910f64b), Pigeonhole version 
> 0.5.7.2 (7372921a) installed via https://repo.dovecot.org/ 
> , (same sieve, 
> same configuration) these addresses are handled case-sensitive.
> 
> The case-sensitive matching of mail addresses, doesn't make any sense to me.
> 
> Could someone confirm this behavior?
> 
> 
> Isn’t RFC-compliant behavior to treat the local part as case-sensitive and 
> the domain-part as case-insensitive?

It is not recommended to rely on local-part case, but it is indeed 
case-sensitive.

And this is to avoid such issues that postfix supports address 
cleanup/canonicalisation before forwarding mails to dovecot.

--
RFC 5321:

"Local-part = Dot-string / Quoted-string ; MAY be case-sensitive
[…]
While the above definition for Local-part is relatively permissive, for maximum 
interoperability, a host that expects to receive mail SHOULD avoid defining 
mailboxes where the Local-part requires (or uses) the Quoted-string form or 
where the Local-part is case-sensitive."
 



Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-04 Thread Roger Klorese via dovecot
On Wed, Sep 4, 2019 at 8:25 AM Philipp Faeustlin via dovecot <
dovecot@dovecot.org>

> Further investigation showed me that it has to be a bug.
>
> I tested with Dovecot 2.2.36.3 (a7d78f5a2), Pigeonhole version 0.4.24
> (5a7e9e62):
>
> In this version the additional addresses in vacation :addresses
> ["t...@example.com"] are handled case-insensitive.
>
> In the new version: Dovecot 2.3.7.2 (3c910f64b), Pigeonhole version
> 0.5.7.2 (7372921a) installed via https://repo.dovecot.org/, (same sieve,
> same configuration) these addresses are handled case-sensitive.
>
> The case-sensitive matching of mail addresses, doesn't make any sense to
> me.
>
> Could someone confirm this behavior?
>
>
Isn’t RFC-compliant behavior to treat the local part as case-sensitive and
the domain-part as case-insensitive?


Re: [Bug] Sieve vacation :addresses match only case-sensitive?

2019-09-04 Thread Philipp Faeustlin via dovecot

Am 02.09.19 um 15:05 schrieb Philipp Faeustlin via dovecot:
The recipients in the vacation :addresses String list are matched 
case-sensitive.


If the recipient gets a mail with wrong case, the message is discarded 
with:
"discarding vacation response for implicitly delivered message; no known 
(envelope) recipient address found in message headers"


I think the matching should be case-insensitive.

Is this a bug or do I miss some option?

I'm using Dovecot 2.3.7.2, Pigeonhole version 0.5.7.2.



Further investigation showed me that it has to be a bug.

I tested with Dovecot 2.2.36.3 (a7d78f5a2), Pigeonhole version 0.4.24 
(5a7e9e62):


In this version the additional addresses in vacation :addresses 
["t...@example.com"] are handled case-insensitive.


In the new version: Dovecot 2.3.7.2 (3c910f64b), Pigeonhole version 
0.5.7.2 (7372921a) installed via https://repo.dovecot.org/, (same sieve, 
same configuration) these addresses are handled case-sensitive.


The case-sensitive matching of mail addresses, doesn't make any sense to me.

Could someone confirm this behavior?

Kind regards

Philipp



smime.p7s
Description: S/MIME Cryptographic Signature


Sieve vacation :addresses match only case-sensitive?

2019-09-02 Thread Philipp Faeustlin via dovecot
The recipients in the vacation :addresses String list are matched 
case-sensitive.


If the recipient gets a mail with wrong case, the message is discarded with:
"discarding vacation response for implicitly delivered message; no known 
(envelope) recipient address found in message headers"


I think the matching should be case-insensitive.

Is this a bug or do I miss some option?

I'm using Dovecot 2.3.7.2, Pigeonhole version 0.5.7.2.

--
Philipp Fäustlin



smime.p7s
Description: S/MIME Cryptographic Signature