Hi!
On 2020-10-14 9:29 p.m., Viktor Dukhovni wrote:
On Thu, Oct 15, 2020 at 01:09:33PM +1300, Peter wrote:
On 15/10/20 8:20 am, Nick wrote:
Is it possible to have more than one "+" sign in the email address, what
does Postfix do when it sees that, does it stop at the first one and
considers everything that follow a sub-addres?
Yes. Postfix uses the strcspn() C function to do the split which
explicitly looks for the first matching character in the string, so the
rest is considered to be the extension and is not looked at further.
I'm not sure if this is documented anywhere and if it isn't then it
means that this could be subject to change in future versions.
The documentation of the recipient delimiter is in the
"recipient_delimiter" section of postconf(5). It could be more
clear, but it does strongly suggest that the first (leftmost)
delimiter is the one and only. This is also implicit in all
the descriptions of how address lookups happen, first with
the full localpart then with just the bare name without
*the* extension. There is only one extension.
Thank you both!
So any additional occurrences of the characters(s) put in
recipient_delimiter are considered to be part of the extension and MUA
are free to do any processing of it they want to...
There's probably some special handling of the situation where the
delimiter would be the first character of the full localpart, that most
probably bounces if not otherwise remapped...
Thank you very much and have a nice day!
Nick