-
Notifications
You must be signed in to change notification settings - Fork 165
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
Overwrite Sender Header #67
Comments
PR welcome. |
Have you tried using ENV: This was introduced on 11 Oct 2021 maybe you haven't already the newest release? 99a2397 For me this is working. best regards |
Since this issue is still marked 'open', I felt okay with adding my 2 cents. I am relaying email from a Linux box (Debian 11, Postfix as smarthost relay) to docker-postfix. With my previous email provider, that worked like a charm. All the email sent from the Linux box was delivered. However, the new email provider I am using does not accept the emails docker-postfix relays to it. The log show the famous "Sender address rejected: not owned by user". Apparently the
That log line does not show up when I send an email from the Linux box. I did some digging around and I found that Postfix does not use the
If using that configuration, the I also noticed that the header provided in Any comments? |
Hello!
I ran into the problem of sending mail via smtp.yandex.ru. This service requires the From and Sender headers to match. For example i get: "Sender: root@e379890e3f75" and "550 5.7.0 Sender or From header address rejected: not owned by authorized user". Now I am creating my dockerfile based on your image. I add this line run.sh:
echo -e "/^Sender:.*$/ REPLACE Sender: $OVERWRITE_FROM" >> /etc/postfix/smtp_header_checks
Can you add a variable to duplicate the From and Sender headers?
The text was updated successfully, but these errors were encountered: