Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qmail migration: handle forwared mails better #555

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apfelchips
Copy link

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.

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants