-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Postforward configured with Postfix PIPE(8) resulting in bounced (mail forwarding loop) #9
Comments
Hi Dismas,
Postforward indeed submits new mail into the queue (by executing This problem in your configuration that is causing postfix to run into a mail forwarding loop appears to be in the service definition:
The argument to By using If all mail for
|
Hi Zoni, Thank you for your time and answer. I hope you and your family are in good health in this pandemic era. Unfortunately, I have tried it and it does not work. But anyhow, if it would need manual addition on every forwarding email addresses (aliases), then I guess I just have to accept to live with the fact that aliases would be forwarded as unauthenticated and would broke the SPF. The world does not have COVID-19 vaccine yet as I was writing this comment, and so what is the big deal with forwarded emails breaking the SPF ;). Once again, thank you, |
Hello, I am configuring an email server for a company (not a hosting company, but a travel company). And I need help in configuring postforward to work with postfix pipe(8) delivery agents.
THE CONFIGURATION
The domains and mailboxes are stored in the MySQL Database so in /etc/postfix/main.cf:
The daemon postsrsd is running as well, this is the config for postsrsd in /etc/postfix/main.cf:
And also followed your suggestion for the postforward policy when configured in Postfix PIPE(8)
Then in my /etc/postfix/master.cf, I registered the postforward service:
Finally to make this all hooked, I created a transport map file /etc/postfix/transport, and put this line:
And went back to my /etc/postfix/main.cf, I added:
For now I wish the postforward only installs for the branddomainname.com and not other domain names (so other departments don't complain when something happens during this setup).
Of course I did not forget to do this:
AND NOW THE EXECUTION OF THE TEST
I sent an email from iamthesender@gmail.com to order@branddomainname.com, where order@branddomainname.com has only one alias that is to iamthealias@gmail.com.
THE RESULT OF THE TEST AND IT IS THE ISSUE
Unfortunately after many trials, this does not work, In the log, I found out the email which was only sent once has doubled:
And then, I followed both of the MAIL-ID, and here is what I found on the log:
671E024406B7:
AA7D82440708:
If you take a look at the second message with ID AA7D82440708, postforward is working and has rewrote the from to the following:
Now I do not understand where was the first message with ID 671E024406B7 was triggered from or is this how postfix works or postforward sent it again after it rewrote it?
I hope that I could get some answers on this problem.
#Staysafe
Thank you,
Dismas
The text was updated successfully, but these errors were encountered: