Forwarding to a gmail account never worked for me. The problem was that the SPF check always failed. However, the problem was not my SPF entry, but that of the sender.
After some research I found the solution: SRS (Sender Rewriting Scheme). The sender is replaced by a temporary sender from my domain and the SPF check passes.
The required daemon was already installed in the container, but unfortunately not activated. With a few lines of code the daemon can be activated, a security key generated and Postfix configured so that now everything works.
My mails now no longer end up as spam \o/.
I ask you to consider the changes and optionally enable SRS in the original branch.
Thank you for your time
Forwarding to a gmail account never worked for me. The problem was that the SPF check always failed. However, the problem was not my SPF entry, but that of the sender. After some research I found the solution: SRS (Sender Rewriting Scheme). The sender is replaced by a temporary sender from my domain and the SPF check passes. The required daemon was already installed in the container, but unfortunately not activated. With a few lines of code the daemon can be activated, a security key generated and Postfix configured so that now everything works. My mails now no longer end up as spam \o/.
I ask you to consider the changes and optionally enable SRS in the original branch. Thank you for your time
SRS