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.

-- 
    Viktor.

Reply via email to