Uberspace / manual

This manual documents how to use the basic features of Uberspace 7.
https://manual.uberspace.de/
Other
51 stars 108 forks source link

qmail migration: handle forwared mails better #555

Open apfelchips opened 3 months ago

apfelchips commented 3 months ago

address :matches, doesn't work with forwarded mails from other servers, using the Delivered-To header ensures the same behaviour as the .qmail-shops-default config.

This sholud also fix a potential problem with casing, since the Delivered-To: header is generated by the uberspace server and therefore always lowercase.

I couldn't get ^[\w]+ to correctly match the uberspace username so now I'm simply matching every non '-' character in the beginning.

SalocinHB commented 3 months ago

I wouldn't use To or Delivered-To here and instead use the envelope extension. That way, you can check for the actual SMTP RCPT TO used in this delivery.

https://www.rfc-editor.org/rfc/rfc5228.html#section-5.4