Re: dovecot lmtp and smtputf8

2023-10-25 Thread Kamil Jońca
"k v"  writes:

> Using the changes described in this pull request 
> https://github.com/dovecot/core/pull/190, you can add SMTPUTF8 capability to 
> the Dovecot LMTP server. Work on the patch is still in progress, and UTF8 
> support is not complete. However, you can use the following trick:
>
> Enable SMTPUTF8 support in Postfix, but make emails with UTF8
> characters as aliases so that the final recipient doesn't have UTF8
> characters. Even in this case, on the LMTP side, you need to announce
> the UTF8 capability, which will be possible if you apply the changes
> from the pull request.

So in short: no, dovecot lmtp does not handle smtputf8.
Thanks for confirmation.
KJ
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: dovecot lmtp and smtputf8

2023-10-24 Thread k v
Using the changes described in this pull request 
https://github.com/dovecot/core/pull/190, you can add SMTPUTF8 capability to 
the Dovecot LMTP server. Work on the patch is still in progress, and UTF8 
support is not complete. However, you can use the following trick:

Enable SMTPUTF8 support in Postfix, but make emails with UTF8 characters as 
aliases so that the final recipient doesn't have UTF8 characters. Even in this 
case, on the LMTP side, you need to announce the UTF8 capability, which will be 
possible if you apply the changes from the pull request.
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


dovecot lmtp and smtputf8

2023-10-23 Thread Kamil Jońca


Does dovecot handle smtputf8?
Last articles regarding this are several years old.
Anything changed?
KJ
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: [ext] What is the state of SMTPUTF8 support?

2022-06-02 Thread Philip Iezzi


> On 15 Mar 2021, at 14:17, Sylvhem  wrote:
> 
> Le dimanche 14 mars 2021 à 21:13 +0100, Benny Pedersen a écrit :
>> On 2021-03-14 17:29, Ralf Hildebrandt wrote:
>>> * Ralf Hildebrandt :
>>>>> I didn’t get any answer. Does somebody know if there was any
>>>>> progress
>>>>> in implementing the RFC 6531?
>>>> 
>>>> http://www.postfix.org/SMTPUTF8_README.html
>>> 
>>> Sorry, I was on the wrong list.
>> 
>> is there hope to see dns server support rfc 6531 ?
>> 
>> how should dovecot and postfix handle both idn and eai maps, postfix
>> is 
>> not ready yet there, its does not matter aslong dns have yet to
>> support 
>> eai aswell
> 
> I’m sorry, but I’m a bit puzzled by your answer.
> What is the relation between RFC 6531 and the DNS? I’m clearly no
> expert, but I thought that RFC only specified an SMTP extension. How
> are DNS servers concerned by that?
> Anyway, Postfix already implemented SMTPUTF8. Having Dovecot do as well
> would allow for mail-stack that rely on both Postfix and Dovecot to
> send e-mail using addresses containing non-ASCII characters. That would
> be a big progress for people who wish to use internationalized e-mail
> addresses.
> And the last time I asked questions about it here, people said to me it
> was being worked on. Hence my question.
> 
> --
> Sylvhem

Hi there

Any update on this? I am running latest Dovecot 2.3.19, but lmtp still doesn't 
seem to support SMTPUTF8. In my mail.log I am getting the following bounces, 
while using `smtputf8_enable = yes` (which nowadays is the default) in Postfix:

status=bounced (SMTPUTF8 is required, but was not offered by host 
mail.example.com[/var/run/dovecot/lmtp])

(Dovecot running on the same server, mail.example.com = localhost, in this 
example)

Cheers,
Philip

Re: [ext] Re: What is the state of SMTPUTF8 support?

2021-03-15 Thread Sylvhem
Le dimanche 14 mars 2021 à 21:13 +0100, Benny Pedersen a écrit :
> On 2021-03-14 17:29, Ralf Hildebrandt wrote:
> > * Ralf Hildebrandt :
> > > > I didn’t get any answer. Does somebody know if there was any
> > > > progress
> > > > in implementing the RFC 6531?
> > > 
> > > http://www.postfix.org/SMTPUTF8_README.html
> > 
> > Sorry, I was on the wrong list.
> 
> is there hope to see dns server support rfc 6531 ?
> 
> how should dovecot and postfix handle both idn and eai maps, postfix
> is 
> not ready yet there, its does not matter aslong dns have yet to
> support 
> eai aswell

I’m sorry, but I’m a bit puzzled by your answer.
What is the relation between RFC 6531 and the DNS? I’m clearly no
expert, but I thought that RFC only specified an SMTP extension. How
are DNS servers concerned by that?
Anyway, Postfix already implemented SMTPUTF8. Having Dovecot do as well
would allow for mail-stack that rely on both Postfix and Dovecot to
send e-mail using addresses containing non-ASCII characters. That would
be a big progress for people who wish to use internationalized e-mail
addresses.
And the last time I asked questions about it here, people said to me it
was being worked on. Hence my question.

--
Sylvhem



Re: [ext] Re: What is the state of SMTPUTF8 support?

2021-03-14 Thread Benny Pedersen

On 2021-03-14 17:29, Ralf Hildebrandt wrote:

* Ralf Hildebrandt :



> I didn’t get any answer. Does somebody know if there was any progress
> in implementing the RFC 6531?

http://www.postfix.org/SMTPUTF8_README.html


Sorry, I was on the wrong list.


is there hope to see dns server support rfc 6531 ?

how should dovecot and postfix handle both idn and eai maps, postfix is 
not ready yet there, its does not matter aslong dns have yet to support 
eai aswell


Re: What is the state of SMTPUTF8 support?

2021-03-14 Thread Benny Pedersen

On 2021-03-14 17:26, Sylvhem wrote:

Le mardi 23 février 2021 à 13:50 +0100, Sylvhem a écrit :



It’s been some time since I last saw a mention of SMTPUTF8 here. Last
time I heard about it, it was worked on.
Does anybody have news about that?



I didn’t get any answer. Does somebody know if there was any progress
in implementing the RFC 6531?


dns servers only support idn, not yet eai, waiting to see the ice break


Re: [ext] Re: What is the state of SMTPUTF8 support?

2021-03-14 Thread Ralf Hildebrandt
* Ralf Hildebrandt :
> > > It’s been some time since I last saw a mention of SMTPUTF8 here. Last
> > > time I heard about it, it was worked on.
> > > Does anybody have news about that?
> > > 
> > 
> > I didn’t get any answer. Does somebody know if there was any progress
> > in implementing the RFC 6531?
> 
> http://www.postfix.org/SMTPUTF8_README.html

Sorry, I was on the wrong list.

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | https://www.charite.de



Re: [ext] Re: What is the state of SMTPUTF8 support?

2021-03-14 Thread Ralf Hildebrandt
> > It’s been some time since I last saw a mention of SMTPUTF8 here. Last
> > time I heard about it, it was worked on.
> > Does anybody have news about that?
> > 
> 
> I didn’t get any answer. Does somebody know if there was any progress
> in implementing the RFC 6531?

http://www.postfix.org/SMTPUTF8_README.html

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | https://www.charite.de



Re: What is the state of SMTPUTF8 support?

2021-03-14 Thread Sylvhem
Le mardi 23 février 2021 à 13:50 +0100, Sylvhem a écrit :
> Hi!
> 
> It’s been some time since I last saw a mention of SMTPUTF8 here. Last
> time I heard about it, it was worked on.
> Does anybody have news about that?
> 

I didn’t get any answer. Does somebody know if there was any progress
in implementing the RFC 6531?

--
Sylvhem



RE: What is the state of SMTPUTF8 support?

2021-02-23 Thread Marc

sendmail is (also) still lacking this. 





> -Original Message-
> From: dovecot  On Behalf Of Sylvhem
> Sent: 23 February 2021 13:50
> To: dovecot@dovecot.org
> Subject: What is the state of SMTPUTF8 support?
> 
> Hi!
> 
> It’s been some time since I last saw a mention of SMTPUTF8 here. Last
> time I heard about it, it was worked on.
> Does anybody have news about that?
> 
> --
> Sylvhem


What is the state of SMTPUTF8 support?

2021-02-23 Thread Sylvhem
Hi!

It’s been some time since I last saw a mention of SMTPUTF8 here. Last
time I heard about it, it was worked on.
Does anybody have news about that?

-- 
Sylvhem


Re: Still interested in SMTPUTF8 support

2020-04-22 Thread Urban Loesch

Hi,

same here, I updated my hole mail infrustructure (postfix, milter, etc.).
Now only dovecot does not support SMTPUTF8, which forced me to disable it 
compleetly on my edgeservers.

Thanks
Urban

Am 17.03.20 um 09:52 schrieb David Bürgin:

I haven’t seen this term on the mailing list for a while. I don’t know
if you’re tracking this somewhere, in any case I’m curious if you are
still planning to add support for SMTPUTF8.

Cheers,



Still interested in SMTPUTF8 support

2020-03-17 Thread David Bürgin
I haven’t seen this term on the mailing list for a while. I don’t know
if you’re tracking this somewhere, in any case I’m curious if you are
still planning to add support for SMTPUTF8.

Cheers,


Re: smtputf8

2019-05-10 Thread @lbutlr via dovecot
On 10 May 2019, at 06:27, Aki Tuomi via dovecot  wrote:
> On 10.5.2019 13.16, Jerry via dovecot wrote:
>> Okay, if I am interpreting that correctly, Dovecot does not support
>> "smtputf8". Are there any plans to make Dovecot fully support it?

> Yes, there are plans to work on this in *near* future.

* are mine

Oo... NEAR future is exciting!


-- 
"I don't care how much melanin you have in your skin nor who you sleep
with, you can't have my cheese."




Re: smtputf8

2019-05-10 Thread Jerry via dovecot
On Fri, 10 May 2019 15:27:03 +0300, Aki Tuomi stated:

>On 10.5.2019 13.16, Jerry via dovecot wrote:
>> On Thu, 9 May 2019 22:25:59 +0200, Admin via dovecot stated:
>>  
>>>> Am 09.05.2019 um 22:15 schrieb Jerry via dovecot
>>>> :
>>>>
>>>> I am trying to find out if Dovecot supports "smtputf8". Obviously,
>>>> I am looking in the wrong places, but I just cannot find a
>>>> definitive answer.  
>>> Have a look at this recent discussion:
>>>
>>> http://dovecot.2317879.n4.nabble.com/SMTPUTF8-support-td67266.html>  
>> Okay, if I am interpreting that correctly, Dovecot does not support
>> "smtputf8". Are there any plans to make Dovecot fully support it?
>>
>> Thanks!
>>  
>Yes, there are plans to work on this in near future.
>
>Aki

Great :)

-- 
Jerry


pgpNPnkgmnyZ9.pgp
Description: OpenPGP digital signature


Re: smtputf8

2019-05-10 Thread Aki Tuomi via dovecot

On 10.5.2019 13.16, Jerry via dovecot wrote:
> On Thu, 9 May 2019 22:25:59 +0200, Admin via dovecot stated:
>
>>> Am 09.05.2019 um 22:15 schrieb Jerry via dovecot :
>>>
>>> I am trying to find out if Dovecot supports "smtputf8". Obviously, I
>>> am looking in the wrong places, but I just cannot find a definitive
>>> answer.
>> Have a look at this recent discussion:
>>
>> http://dovecot.2317879.n4.nabble.com/SMTPUTF8-support-td67266.html>
> Okay, if I am interpreting that correctly, Dovecot does not support
> "smtputf8". Are there any plans to make Dovecot fully support it?
>
> Thanks!
>
Yes, there are plans to work on this in near future.

Aki




signature.asc
Description: OpenPGP digital signature


Re: smtputf8

2019-05-10 Thread Jerry via dovecot
On Thu, 9 May 2019 22:25:59 +0200, Admin via dovecot stated:

>> Am 09.05.2019 um 22:15 schrieb Jerry via dovecot :
>> 
>> I am trying to find out if Dovecot supports "smtputf8". Obviously, I
>> am looking in the wrong places, but I just cannot find a definitive
>> answer.

>Have a look at this recent discussion:
>
>http://dovecot.2317879.n4.nabble.com/SMTPUTF8-support-td67266.html>

Okay, if I am interpreting that correctly, Dovecot does not support
"smtputf8". Are there any plans to make Dovecot fully support it?

Thanks!

-- 
Jerry


pgpncqU73VF3h.pgp
Description: OpenPGP digital signature


Re: smtputf8

2019-05-09 Thread Admin via dovecot
Have a look at this recent discussion:

http://dovecot.2317879.n4.nabble.com/SMTPUTF8-support-td67266.html


> Am 09.05.2019 um 22:15 schrieb Jerry via dovecot :
> 
> I am trying to find out if Dovecot supports "smtputf8". Obviously, I
> am looking in the wrong places, but I just cannot find a definitive
> answer.
> 
> Thanks!
> 
> -- 
> Jerry


smtputf8

2019-05-09 Thread Jerry via dovecot
I am trying to find out if Dovecot supports "smtputf8". Obviously, I
am looking in the wrong places, but I just cannot find a definitive
answer.

Thanks!

-- 
Jerry


pgpvijdRHHK3h.pgp
Description: OpenPGP digital signature


Re: SMTPUTF8 support

2019-04-08 Thread Michael Slusarz via dovecot
Dovecot does not work as the "final mile" delivery host in a fully-compliant 
SMTPUTF8 chain.

This is on the (long) list of things todo.

michael


> On April 6, 2019 at 6:53 AM "@lbutlr via dovecot"  wrote:
> 
> 
> On 5 Apr 2019, at 13:47, André Rodier via dovecot  wrote:
> > 
> >> root@portal:/etc/postfix# postmap -q andré@homebox.space 
> >> ldap:/etc/postfix/ldap-aliases.cf 
> >> andre@homebox.space
> 
> You have a solution that properly maps UTF to a non-UTF namespace. As I 
> understand it, SMTPUTF8 uses a UTF8 namespace.
> 
> So, this would indicate SMTPUTF8
> 
> # postmap -q andré@homebox.space ldap:/etc/postfix/ldap-aliases.cf 
> andré@homebox.space
> 
> It's a hard problem to solve because you have to, as you've already 
> discovered, replace the entire chain with SMTPUTF8 compatible tools all at 
> once.


Re: SMTPUTF8 support

2019-04-06 Thread @lbutlr via dovecot
On 5 Apr 2019, at 13:47, André Rodier via dovecot  wrote:
> 
>> root@portal:/etc/postfix# postmap -q andré@homebox.space 
>> ldap:/etc/postfix/ldap-aliases.cf 
>> andre@homebox.space

You have a solution that properly maps UTF to a non-UTF namespace. As I 
understand it, SMTPUTF8 uses a UTF8 namespace.

So, this would indicate SMTPUTF8

# postmap -q andré@homebox.space ldap:/etc/postfix/ldap-aliases.cf 
andré@homebox.space

It's a hard problem to solve because you have to, as you've already discovered, 
replace the entire chain with SMTPUTF8 compatible tools all at once.


-- 
Is it my imagination, or do buffalo wings taste like chicken?



Re: SMTPUTF8 support

2019-04-06 Thread John Fawcett via dovecot
On 06/04/2019 11:34, André Rodier via dovecot wrote:
> On Sat, 2019-04-06 at 11:19 +0200, John Fawcett via dovecot wrote:
>> On 06/04/2019 10:07, André Rodier via dovecot wrote:
>>> On 05/04/2019 08:57, David Bürgin via dovecot wrote:
>>>> André, are you quite sure you have it working?
>>>>
>>>> In this thread someone from Open-Xchange stated that no, Dovecot doesn’t
>>>> have SMTPUTF8 support implemented, and the same response was given by
>>>> another Dovecot developer last September (it ‘is being considered’ was
>>>> the answer then, see
>>>> https://dovecot.org/pipermail/dovecot/2018-September/112887.html).
>>>>
>>>> I am using LMTP to deliver mail to Dovecot from Postfix, and delivery
>>>> fails with Postfix reporting: ‘SMTPUTF8 is required, but was not offered
>>>> by host mail.my.org[private/dovecot-lmtp]’. I doubt that this can work
>>>> without a change in Dovecot LMTP.
>>>>
>>>> Anyway, I am also interested in SMTPUTF8 support, so +1 from me!
>>>>
>>>>
>>> Hello David et al,
>>>
>>> I have it working with my set up, and I confirm it is not easy.
>>>
>>> If I limit the stack to OpenLDAP, Postfix and Dovecot to their
>>> simplest configuration, it is relatively easy, even with slightly
>>> outdated software in Debian Stretch. 
>> I think you are confusing acceptance of UTF8 in the localpart of the
>> email address (which if I remember correctly worked in the 2.2 branch)
>> with SMTPUTF8 support. As mentioned in the thread above Dovecot does not
>> as yet support SMTPUTF8. Support for SMTPUTF8 would mean among other
>> things changing the source code of Dovecot so that it announces the
>> SMTPUTF8 key word to the upstream MTA.
>>
>> John
> Hello John,
>
> You are probably right.
>
> I am not well aware of the low level details and the terminology.
>
> I confess I am mostly interested in the proper reception of the emails
> with accentuated user names, which is already sometimes difficult to
> achieve.
>
> Is there any link where I can learn the communication rules between
> Dovecot and Postfix and the SMTPUTF8 standard ?
>
> Kind regards,
> André
>
André

Daniel Lange has posted some links to this topic from Postfix and
earlier discussions on the mailing list.

Postfix has this SMTPUTF8 documentation:

http://www.postfix.org/SMTPUTF8_README.html

On that page you can also find links to the relevant standards including
SMTPUTF8 standard.

John




Re: SMTPUTF8 support

2019-04-06 Thread André Rodier via dovecot
On Sat, 2019-04-06 at 11:19 +0200, John Fawcett via dovecot wrote:
> On 06/04/2019 10:07, André Rodier via dovecot wrote:
> > On 05/04/2019 08:57, David Bürgin via dovecot wrote:
> > > André, are you quite sure you have it working?
> > > 
> > > In this thread someone from Open-Xchange stated that no, Dovecot doesn’t
> > > have SMTPUTF8 support implemented, and the same response was given by
> > > another Dovecot developer last September (it ‘is being considered’ was
> > > the answer then, see
> > > https://dovecot.org/pipermail/dovecot/2018-September/112887.html).
> > > 
> > > I am using LMTP to deliver mail to Dovecot from Postfix, and delivery
> > > fails with Postfix reporting: ‘SMTPUTF8 is required, but was not offered
> > > by host mail.my.org[private/dovecot-lmtp]’. I doubt that this can work
> > > without a change in Dovecot LMTP.
> > > 
> > > Anyway, I am also interested in SMTPUTF8 support, so +1 from me!
> > > 
> > > 
> > 
> > Hello David et al,
> > 
> > I have it working with my set up, and I confirm it is not easy.
> > 
> > If I limit the stack to OpenLDAP, Postfix and Dovecot to their
> > simplest configuration, it is relatively easy, even with slightly
> > outdated software in Debian Stretch. 
> 
> I think you are confusing acceptance of UTF8 in the localpart of the
> email address (which if I remember correctly worked in the 2.2 branch)
> with SMTPUTF8 support. As mentioned in the thread above Dovecot does not
> as yet support SMTPUTF8. Support for SMTPUTF8 would mean among other
> things changing the source code of Dovecot so that it announces the
> SMTPUTF8 key word to the upstream MTA.
> 
> John

Hello John,

You are probably right.

I am not well aware of the low level details and the terminology.

I confess I am mostly interested in the proper reception of the emails
with accentuated user names, which is already sometimes difficult to
achieve.

Is there any link where I can learn the communication rules between
Dovecot and Postfix and the SMTPUTF8 standard ?

Kind regards,
André

-- 
André Rodier
HomeBox: https://github.com/progmaticltd/homebox


Re: SMTPUTF8 support

2019-04-06 Thread John Fawcett via dovecot
On 06/04/2019 10:07, André Rodier via dovecot wrote:
> On 05/04/2019 08:57, David Bürgin via dovecot wrote:
>> André, are you quite sure you have it working?
>>
>> In this thread someone from Open-Xchange stated that no, Dovecot doesn’t
>> have SMTPUTF8 support implemented, and the same response was given by
>> another Dovecot developer last September (it ‘is being considered’ was
>> the answer then, see
>> https://dovecot.org/pipermail/dovecot/2018-September/112887.html).
>>
>> I am using LMTP to deliver mail to Dovecot from Postfix, and delivery
>> fails with Postfix reporting: ‘SMTPUTF8 is required, but was not offered
>> by host mail.my.org[private/dovecot-lmtp]’. I doubt that this can work
>> without a change in Dovecot LMTP.
>>
>> Anyway, I am also interested in SMTPUTF8 support, so +1 from me!
>>
>>
>
> Hello David et al,
>
> I have it working with my set up, and I confirm it is not easy.
>
> If I limit the stack to OpenLDAP, Postfix and Dovecot to their
> simplest configuration, it is relatively easy, even with slightly
> outdated software in Debian Stretch. 

I think you are confusing acceptance of UTF8 in the localpart of the
email address (which if I remember correctly worked in the 2.2 branch)
with SMTPUTF8 support. As mentioned in the thread above Dovecot does not
as yet support SMTPUTF8. Support for SMTPUTF8 would mean among other
things changing the source code of Dovecot so that it announces the
SMTPUTF8 key word to the upstream MTA.

John




Re: SMTPUTF8 support

2019-04-06 Thread Daniel Lange via dovecot

Am 05.04.19 um 22:36 schrieb David Bürgin via dovecot:

I’m afraid there is a possibility that your setup only works by chance …
I don’t think Dovecot LMTP is SMTPUTF8-capable according to RFC 6531. It
needs to advertise the SMTPUTF8 extension but doesn’t.

[..]

Dovecot doesn't know anything about SMTPUTF8 as that has not been 
implemented in either LDA or LMTP as of now.


Worse, it will create bounces on postfix accepted UTF8 localpart 
addresses as per

https://www.dovecot.org/pipermail/dovecot/2019-March/115286.html

This one is tracked as DOP-1045 as per Aki's email linked above.

No idea when SMTPUTF8 will be implemented. It will create a big mess as 
Postfix with smtputf8=on defaults are being used _and_ people start 
using UTF8 localparts.

Cf. http://www.postfix.org/COMPATIBILITY_README.html#smtputf8_enable
for postfix info.

You should configure a Postfix that delivers to Dovecot with
smtputf8_enable=no until Dovecot learns SMTPUTF8.
But even in such a defensive setup Dovecot LDA and LMTP can still create 
backscatter spam bounces as explained in the mailinglist thread linked 
above.


Re: SMTPUTF8 support

2019-04-06 Thread André Rodier via dovecot

On 05/04/2019 08:57, David Bürgin via dovecot wrote:

André, are you quite sure you have it working?

In this thread someone from Open-Xchange stated that no, Dovecot doesn’t
have SMTPUTF8 support implemented, and the same response was given by
another Dovecot developer last September (it ‘is being considered’ was
the answer then, see
https://dovecot.org/pipermail/dovecot/2018-September/112887.html).

I am using LMTP to deliver mail to Dovecot from Postfix, and delivery
fails with Postfix reporting: ‘SMTPUTF8 is required, but was not offered
by host mail.my.org[private/dovecot-lmtp]’. I doubt that this can work
without a change in Dovecot LMTP.

Anyway, I am also interested in SMTPUTF8 support, so +1 from me!




Hello David et al,

I have it working with my set up, and I confirm it is not easy.

If I limit the stack to OpenLDAP, Postfix and Dovecot to their simplest 
configuration, it is relatively easy, even with slightly outdated 
software in Debian Stretch.


The trick I am using is to include the internationalised email address 
aside the main one, and to use Postfix LDAP lookup.


For instance, I am using this LDAP schema:
https://tools.ietf.org/html/draft-stroeder-mailboxrelatedobject-07

So, my LDAP lookup table for Postfix looks like this:

# Basic LDAP settings for postfix
server_host = ldap://ldap.rodier.me/
start_tls = yes

search_base = dc=rodier,dc=me
search_scope = sub

# Allow advanced LDAP search with the recipient delimiter
query_filter = (|(mail=%s)(intlMailAddr=%s))
result_attribute = mail

# Force support for UTF8
version = 3

Therefore, postmap query works as expected:

postmap -q andré@rodier.me ldap:/etc/postfix/ldap-aliases.cf
an...@rodier.me

That said, if only one of the milter reject your message, it is breaking 
the whole chain.


For instance, the quota plugin for Dovecot, I had to use DUNNO when the 
user is unknown instead of reject.


I have it working perfectly from Homebox to Homebox, so perhaps Postfix 
to Postfix, but I reckon I still have some bugs.


Some providers are working, others not. Outlook does not seems to work , 
but I am on it. Yahoo does not let you type an accent in the email 
address, only Google allows you to.


However, I made a test yesterday, and realised that the emails from 
GMail are rejected by one of the plugin, and I need to investigate which 
one. The error message is:



Apr  5 10:16:39 portal postfix/smtpd[2566]: Anonymous TLS connection 
established from mail-lf1-f51.google.com[209.85.167.51]: TLSv1.2 with cipher 
ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Apr  5 10:16:39 portal policyd-spf[2574]: prepend Received-SPF: Pass (mailfrom) 
identity=mailfrom; client-ip=209.85.167.51; helo=mail-lf1-f51.google.com; 
envelope-from=andre.rod...@gmail.com; receiver=
Apr  5 10:16:39 portal postfix/smtpd[2566]: EB38240467: 
client=mail-lf1-f51.google.com[209.85.167.51]
Apr  5 10:16:40 portal postfix/cleanup[2576]: EB38240467: 
message-id=
Apr  5 10:16:40 portal opendkim[15477]: EB38240467: mail-lf1-f51.google.com 
[209.85.167.51] not internal
Apr  5 10:16:40 portal opendkim[15477]: EB38240467: not authenticated
Apr  5 10:16:40 portal opendkim[15477]: EB38240467: DKIM verification successful
Apr  5 10:16:40 portal opendkim[15477]: EB38240467: s=20161025 d=gmail.com SSL
Apr  5 10:16:40 portal opendmarc[16548]: implicit authentication service: 
portal.homebox.space
Apr  5 10:16:40 portal opendmarc[16548]: EB38240467: gmail.com pass
Apr  5 10:16:40 portal postfix/cleanup[2576]: EB38240467: milter-reject: END-OF-MESSAGE from 
mail-lf1-f51.google.com[209.85.167.51]: 4.7.1 Try again later; 
from= to= proto=ESMTP 
helo=
Apr  5 10:16:40 portal postfix/smtpd[2566]: disconnect from 
mail-lf1-f51.google.com[209.85.167.51] ehlo=2 starttls=1 mail=1 rcpt=1 data=0/1 
quit=1 commands=6/7


So perhaps it is one of the milter. I will investigate today.

Also, it seems the client is important. I have no problem with SOGo or 
Evolution. Roundcube and Thunderbird, in Debian Stretch, don't support 
this yet.


With Debian Buster coming soon, I am sure this will work better. I will 
create a branch to test this. My preliminary investigations don't show 
major problems in the upgrade.


At one point, I was using the Dovecot packages from backports, but I 
reverted this as there has been an incompatibility.


Happy to answer more questions if you have.

--
André Rodier




























Re: SMTPUTF8 support

2019-04-05 Thread David Bürgin via dovecot
I’m afraid there is a possibility that your setup only works by chance …
I don’t think Dovecot LMTP is SMTPUTF8-capable according to RFC 6531. It
needs to advertise the SMTPUTF8 extension but doesn’t.

# nc -U /var/spool/postfix/private/dovecot-lmtp
220 mail.my.org Dovecot ready.
LHLO mail.my.org
250-mail.my.org
250-STARTTLS
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING


-- 
David


Re: SMTPUTF8 support

2019-04-05 Thread David Bürgin via dovecot
Well, what a puzzle. I will have to investigate. I also tried it with
Gmail, and the failure was definitely between Postfix and Dovecot LMTP,
with Dovecot failing to advertise SMTPUTF8 support. My setup is much
more minimal, I use file-based virtual mailboxes and aliases, and only
OpenDKIM and SpamAssassin milters.

Thank you for your reply, André!


Re: SMTPUTF8 support

2019-04-05 Thread André Rodier via dovecot
On 2019-04-05 08:57, David Bürgin via dovecot wrote:
> André, are you quite sure you have it working?
> 
> In this thread someone from Open-Xchange stated that no, Dovecot 
> doesn’t
> have SMTPUTF8 support implemented, and the same response was given by
> another Dovecot developer last September (it ‘is being considered’ was
> the answer then, see
> https://dovecot.org/pipermail/dovecot/2018-September/112887.html).
> 
> I am using LMTP to deliver mail to Dovecot from Postfix, and delivery
> fails with Postfix reporting: ‘SMTPUTF8 is required, but was not 
> offered
> by host mail.my.org[private/dovecot-lmtp]’. I doubt that this can work
> without a change in Dovecot LMTP.
> 
> Anyway, I am also interested in SMTPUTF8 support, so +1 from me!

Hello David,

Well, it seems to work from one Homebox to another, for instance:

Here the server logs:
--
> Apr 05 19:20:46 portal postfix/qmgr[21470]: 6AC3240807: 
> from=, size=3066, nrcpt=1 (queue active)
> Apr 05 19:20:46 portal clamsmtpd[14542]: 10004D: from=an...@rodier.me, 
> to=andré@homebox.space, status=CLEAN
> Apr 05 19:20:46 portal postfix/smtp[30761]: 1FCA540467: 
> to=, relay=127.0.0.1[127.0.0.1]:34001, delay=1.4, 
> delays=0.73/0.02/0.07/0.59, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued 
> as 6AC3240807)
> Apr 05 19:20:46 portal postfix/smtpd[30763]: disconnect from 
> localhost[127.0.0.1] ehlo=1 xforward=2 mail=1 rcpt=1 data=1 quit=1 
> commands=7
> Apr 05 19:20:46 portal postfix/qmgr[21470]: 1FCA540467: removed
> Apr 05 19:20:46 portal dovecot[12813]: lmtp(30766): Connect from local
> Apr 05 19:20:46 portal dovecot[12813]: lmtp(andre): 
> WGTdAo6qp1wueAAAeNB+QA: sieve: 
> msgid=<7d53-5ca7aa80-1-51005a80@31476855>: stored mail into mailbox 
> 'INBOX'
> Apr 05 19:20:46 portal postfix/lmtp[30765]: 6AC3240807: 
> to=, orig_to=, 
> relay=portal.homebox.space[private/dovecot-lmtp], delay=0.62, 
> delays=0.59/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 
>  WGTdAo6qp1wueAAAeNB+QA Saved)
> Apr 05 19:20:46 portal dovecot[12813]: lmtp(30766): Disconnect from 
> local: Successful quit
> Apr 05 19:20:46 portal postfix/qmgr[21470]: 6AC3240807: removed
--

And the message source:
--
> Return-Path: 
> Delivered-To: andre@homebox.space
> Received: from portal.homebox.space
>   by portal (Dovecot) with LMTP id WGTdAo6qp1wueAAAeNB+QA
>   for ; Fri, 05 Apr 2019 19:20:46 +
> Received: from portal.homebox.space (localhost [127.0.0.1])
>   by portal.homebox.space (Postfix) with ESMTP id 6AC3240807
>   for ; Fri,  5 Apr 2019 19:20:45 + (UTC)
> Authentication-Results: portal.homebox.space;
>   dkim=pass (4096-bit key; unprotected) header.d=rodier.me 
> header.i=@rodier.me header.b="bNaIhJcQ";
>   dkim-atps=neutral
> Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=92.19.253.42; 
> helo=osaka.rodier.me; envelope-from=an...@rodier.me; receiver=
> Received: from osaka.rodier.me (host-92-19-253-42.static.as13285.net 
> [92.19.253.42])
>   by portal.homebox.space (Postfix) with ESMTPS id 1FCA540467
>   for ; Fri,  5 Apr 2019 19:20:44 + (UTC)
> Received: from osaka.rodier.me (localhost [127.0.0.1])
>   by osaka.rodier.me (Postfix) with ESMTP id 68658201DE
>   for ; Fri,  5 Apr 2019 20:20:43 +0100 (BST)
> Received: from localhost (localhost [127.0.0.1])
>   by osaka.rodier.me (Postfix) with ESMTPA id 32C1A200CC
>   for ; Fri,  5 Apr 2019 20:20:43 +0100 (BST)
> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rodier.me; 
> s=main;
>   t=1554492043; bh=ojnzW/eF3u3/ihaSAhQfvUWEX7Blx4fCTTVCC9mfgZE=;
>   h=From:Date:To:Subject:From;
>   b=bNaIhJcQtD7/IbjI/VGUIWpOk1QyYioKsgsCva8sL040L7VDMmLgfbQ5TWFwO/wub
>+8THBgOTWj/39FyoKQJYk0BahQ7Z4LkUrH20Jcq5yDEOC7q/xfwIwUV/sUaj6C3wLZ
>VGUp8Fg2oVDD+ciGEnfa2OuEC/LajvmXoDqUHHtSwTFZvfkh1nRDqxcNd/FSyvYQe8
>frgBySFgzI+xTWVG7Oa07CQPG+HenqwrPyaZD0SNpHnrvH5ICdAriv2UMKgQnsWO80
>aSz4EDySdwMah17kfh4u06GlXd3duQCN8hyxBBDjcI879N/+CQM3Uz1NTbIDe82Lf7
>bSUJzvMczCdZFm5J84hvLd+j85pY7T9052JTcUANUQPnTc1Q3yrQFC3QuKD8Amb8VO
>qHR0q0OP6SYqoQ0g/moMF2FhWaQg3pCRpIEOS73Ncnnf+fJGQJnPi8G8YcLVLZCDCx
>RlSauA/YuF5tiIBHFLdjtlgVgwk38tT8ck+D8kS3BAB4nXBVlreCiK0vMK8HyoCpsC
>LMJ0e5KhBzCDXOPvSLiohn2zcmYpa9DywmWFVTZNx3INzTH7nsa40AYGFl+k+G+pe+
>ej+MRDwmdOePfl3DGGEgpn0JMNiAmECe6gHA+/N1TTk5SbbiKLNh8KXzrZECWVrvUx
>55kqY/LPuQEwxCnA/VZsQbDk=
> Content-Type: multipart/alternative; 
> boundary="=_=-_OpenGroupware_org_NGMime-32083-1554492042.981625-0--"
>  From: =?utf-8?q?Andr=C3=A9_Rodier?= 
> X-Forward: 127.0.0.1
> Date: Fri, 05 Apr 

Re: SMTPUTF8 support

2019-04-05 Thread David Bürgin via dovecot
André, are you quite sure you have it working?

In this thread someone from Open-Xchange stated that no, Dovecot doesn’t
have SMTPUTF8 support implemented, and the same response was given by
another Dovecot developer last September (it ‘is being considered’ was
the answer then, see
https://dovecot.org/pipermail/dovecot/2018-September/112887.html).

I am using LMTP to deliver mail to Dovecot from Postfix, and delivery
fails with Postfix reporting: ‘SMTPUTF8 is required, but was not offered
by host mail.my.org[private/dovecot-lmtp]’. I doubt that this can work
without a change in Dovecot LMTP.

Anyway, I am also interested in SMTPUTF8 support, so +1 from me!


-- 
David


Re: SMTPUTF8 support

2019-04-05 Thread André Rodier via dovecot

On 2019-04-05 02:44, sylvhem--- via dovecot wrote:

Le 2019-04-04 03:28, André a écrit :

I have it working, only with the user part of the email address.

It works well, as long as the whole chain of software is correctly 
configured.


I have not tested with a whole domain in UTF8 yet.

More details and working examples here:
https://github.com/progmaticltd/homebox

Good luck.


Homebox looks quite interesting, but I'm not sure I want to redo my
entire e-mail stack for this.
May I ask what did you do make Dovecot support UTF-8 characters in the
user part of the e-mail address? Did you patch it?

--
Sylvhem


Sorry, I was sending the email quickly, and I did not point you in the 
exact direction.


- Dovecot templates: 
https://github.com/progmaticltd/homebox/tree/master/install/playbooks/roles/dovecot/templates/conf.d
- Postfix templates: 
https://github.com/progmaticltd/homebox/tree/master/install/playbooks/roles/postfix/templates


For Postfix, you will be probably interested in main.cf and master.cf

Give you direct access to the templates is the best I can do, there are 
too many parameters, and I don't remember all of them by heart.


For instance, it can depends on your milters as well.

Good luck!

--
https://github.com/progmaticltd/homebox


Re: SMTPUTF8 support

2019-04-04 Thread sylvhem--- via dovecot

Le 2019-04-04 03:28, André a écrit :

I have it working, only with the user part of the email address.

It works well, as long as the whole chain of software is correctly 
configured.


I have not tested with a whole domain in UTF8 yet.

More details and working examples here:
https://github.com/progmaticltd/homebox

Good luck.


Homebox looks quite interesting, but I'm not sure I want to redo my 
entire e-mail stack for this.
May I ask what did you do make Dovecot support UTF-8 characters in the 
user part of the e-mail address? Did you patch it?


--
Sylvhem


Re: SMTPUTF8 support

2019-04-04 Thread André via dovecot
I have it working, only with the user part of the email address.

It works well, as long as the whole chain of software is correctly configured.

I have not tested with a whole domain in UTF8 yet.

More details and working examples here:
https://github.com/progmaticltd/homebox

Good luck.


On 4 April 2019 07:03:10 BST, sylvhem--- via dovecot  
wrote:
>Le 2019-04-04 01:36, Michael Slusarz a écrit :
>>> On April 3, 2019 at 10:12 PM sylvhem--- via dovecot 
>>>  wrote:
>>> 
>>> I'm currently trying to set up SMTPUTF8 on my mail stack, but I
>can't
>>> find any information on Dovecot's RFC 6531 support. Has it been
>>> implemented yet?
>> 
>> No.
>> 
>> michael
>Thank you for the answer Michael.
>Does anybody know if it's been worked on?
>
>--
>Sylvhem

-- 
André


Re: SMTPUTF8 support

2019-04-04 Thread sylvhem--- via dovecot

Le 2019-04-04 01:36, Michael Slusarz a écrit :
On April 3, 2019 at 10:12 PM sylvhem--- via dovecot 
 wrote:


I'm currently trying to set up SMTPUTF8 on my mail stack, but I can't
find any information on Dovecot's RFC 6531 support. Has it been
implemented yet?


No.

michael

Thank you for the answer Michael.
Does anybody know if it's been worked on?

--
Sylvhem


Re: SMTPUTF8 support

2019-04-03 Thread Michael Slusarz via dovecot
> On April 3, 2019 at 10:12 PM sylvhem--- via dovecot  
> wrote:
> 
> I'm currently trying to set up SMTPUTF8 on my mail stack, but I can't 
> find any information on Dovecot's RFC 6531 support. Has it been 
> implemented yet? 

No.

michael


SMTPUTF8 support

2019-04-03 Thread sylvhem--- via dovecot

Hi,

I'm currently trying to set up SMTPUTF8 on my mail stack, but I can't 
find any information on Dovecot's RFC 6531 support. Has it been 
implemented yet? If so, does anyone know how to activate it?

Regards.

--
Sylvhem


Re: Status of SMTPUTF8?

2018-09-14 Thread Rical Jasan
On 09/13/2018 11:06 PM, Teemu Huovila wrote:
> On 06.09.2018 22:25, kada...@gmail.com wrote:
>> I necro-bump this thread as I have the same problem since I switched to LMTP 
>> from LDA (as the wiki recommend).

Thank you!

>> Any news to make dovecot LMTP postix compliant ?
>>
>> Le 08/11/2016 à 17:13, Noah Tilton a écrit :
>>>
>>> I was wondering whether there is a roadmap for adding SMTPUTF8 support to 
>>> Dovecot?
>>>
>>> My delivery pattern is Postfix -> Dovecot LMTP and it is choking on utf8 
>>> messages.
>>>
>>> I might be able to volunteer some of my time as a developer.
>>>
>>> Another thread about this seemed to go unanswered:
>>> http://dovecot.org/list/dovecot/2016-September/105474.html
>>>
>>> http://unix.stackexchange.com/questions/320091/configure-postfix-and-dovecot-lmtp-to-receive-mail-via-smtputf8
>>>
>>> -Noah
>>
> This is being considered and we have some pretty goof plans already, but it 
> is not in the short term planning yet.
> 
> br,
> Teemu

+1 from me.  I had to reconfigure our MTAs to stop advertising SMTPUTF8
because after investigating complaints of missing mail, it turned out
messages were making it all the way through every hop only to be
rejected right at the mailbox (quite disappointing).  Some senders will
resend or send an alternate non-UTF8 message when SMTPUTF8 isn't
advertised, but I still wonder how many messages are simply never sent
because (a single component of) our mail system can't support it...

Rical


Re: Status of SMTPUTF8?

2018-09-14 Thread Teemu Huovila



On 06.09.2018 22:25, kada...@gmail.com wrote:
> I necro-bump this thread as I have the same problem since I switched to LMTP 
> from LDA (as the wiki recommend).
> Any news to make dovecot LMTP postix compliant ?
> 
> 
> Le 08/11/2016 à 17:13, Noah Tilton a écrit :
>>
>> I was wondering whether there is a roadmap for adding SMTPUTF8 support to 
>> Dovecot?
>>
>> My delivery pattern is Postfix -> Dovecot LMTP and it is choking on utf8 
>> messages.
>>
>> I might be able to volunteer some of my time as a developer.
>>
>> Another thread about this seemed to go unanswered:
>> http://dovecot.org/list/dovecot/2016-September/105474.html
>>
>> http://unix.stackexchange.com/questions/320091/configure-postfix-and-dovecot-lmtp-to-receive-mail-via-smtputf8
>>
>> -Noah
> 
This is being considered and we have some pretty goof plans already, but it is 
not in the short term planning yet.

br,
Teemu


Re: Status of SMTPUTF8?

2018-09-06 Thread kadafax
I necro-bump this thread as I have the same problem since I switched to 
LMTP from LDA (as the wiki recommend).

Any news to make dovecot LMTP postix compliant ?


Le 08/11/2016 à 17:13, Noah Tilton a écrit :


I was wondering whether there is a roadmap for adding SMTPUTF8 support 
to Dovecot?


My delivery pattern is Postfix -> Dovecot LMTP and it is choking on 
utf8 messages.


I might be able to volunteer some of my time as a developer.

Another thread about this seemed to go unanswered:
http://dovecot.org/list/dovecot/2016-September/105474.html

http://unix.stackexchange.com/questions/320091/configure-postfix-and-dovecot-lmtp-to-receive-mail-via-smtputf8 



-Noah




Status of SMTPUTF8?

2016-11-08 Thread Noah Tilton


I was wondering whether there is a roadmap for adding SMTPUTF8 support 
to Dovecot?


My delivery pattern is Postfix -> Dovecot LMTP and it is choking on utf8 
messages.


I might be able to volunteer some of my time as a developer.

Another thread about this seemed to go unanswered:
http://dovecot.org/list/dovecot/2016-September/105474.html

http://unix.stackexchange.com/questions/320091/configure-postfix-and-dovecot-lmtp-to-receive-mail-via-smtputf8

-Noah


Dovecot lmtp support for SMTPUTF8

2016-09-20 Thread Igor Colombi
Hello,

I'm using dovecot lmtp with Postfix.

I'm enabling SMTPUTF8 (EAI), but when Postfix (v 3.1.2) tries to deliver
the message to dovecot-lmtp it receive this error:

status=bounced (SMTPUTF8 is required, but was not offered by host
dlvmx.espsrv.net[private/dovecot-lmtp]

I'm not sure if Dovecot lda and lmpt support EAI and how can I enable it.
I've just found and old thread:

http://www.dovecot.org/list/dovecot/2013-January/087756.html

Thanks for your help.

--
Igor Colombi