2

Qmail and Postfix support address extensions like [email protected] where emails will be delivered to username, if the delimiter is configured to -.

Users can handle mails with .forward files in their home directory by default. (Or .qmail for Qmail.)

Emails to [email protected] are handled by the .forward-ext1 file if it exists, otherwise .forward is used as fallback.

For [email protected] Qmail tries .qmail-ext1-ext2, then .qmail-ext1 and finally .qmail.

Postfix tries .forward-ext1-ext2 and then directly .forward without caring about .forward-ext1.

How can I get Postfix to handle multiple address extensions? I want to catch all mails to username-ext1-*@example.com without parsing headers myself in .forward. – Did I miss something?

(This would also be useful for users who want to have multiple VERP-style mailing lists with simple separate configurations.)

Robert Siemer
  • 1,885
  • 1
  • 23
  • 29

1 Answers1

-1

yes, according to http://www.postfix.org/postconf.5.html#recipient_delimiter

# Handle both Postfix and qmail extensions (Postfix 2.11 and later).
recipient_delimiter = +-

HTH

StefanKaerst
  • 279
  • 2
  • 7
  • Neither the link, nor your TLA have any insights on addresses with multiple delimiter characters. – Robert Siemer Mar 15 '23 at 15:28
  • the main question was about plus and/or dash as delimiter in postfix .. and my answer was yes to that question. AFAIK only the first delimiter will be be used, that is + OR - !! there is no second sub-sub-extension. that is why username-ext1-ext2 and username+ext1-ext2 are the same if you configure +- as recipient_delimiter. – StefanKaerst Mar 16 '23 at 20:50
  • You misunderstood the question. – Robert Siemer Mar 17 '23 at 00:18
  • I'm not sure if postfix can actually handle multiple extensions in a row. at least it is able to use more than one delimiter making it able to handle two extensions (hence to word multiple). therefore I cannot simply answer no the the main question. whats the point of you answering me rather that Robert? whats the point of trying to use postfix if Qmail does what he wants? I just tried to give _some_ answer as a starting point for you guys. Hope This Helps – StefanKaerst Mar 17 '23 at 09:38