postal should not ignore routing table when using smtp relays ? #3282
Replies: 4 comments 3 replies
-
the relay configuration is always the last step in the process
Surely you're just sending mail straight to mailhog and this should be set to the scaleway one? |
Beta Was this translation helpful? Give feedback.
-
I'm happy to see I'm not the only one ;-) We have noticed this behavior in two internal domains (not accessible from internet). Depending on the order list of the email addresses in To: the delivery is attempted or delegated to the relay host. After any address not in the routing table, no delivery is attempted and it's forwarded directly to the relay host. Example:
|
Beta Was this translation helpful? Give feedback.
-
To add a bit of more information. Logs of the worker when we send an email with the following To: list. (example 1 of the above list) mutt -s "Test email" "[email protected]; [email protected]; [email protected]"
Logs of the worker when we send an email with the following To: list. (example 3 of the above list) mutt -s "Test email" "[email protected]; [email protected]; [email protected]"
We have tested with : and also with : |
Beta Was this translation helpful? Give feedback.
-
@cvillabrille can you confirm that you are also using relay configuration ? |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
We have setup postal version 3.3.4 in a kubernetes cluster, following the documentation. This cluster is hosted on a managed infrastructure operated by our cloud provide (scaleway, france).
As the mail providers are becoming more and more sensitive about who is sending e-mails to them we noticed that for delivery we are more or less obliged to send our emails trough a whitelisted relay server offered by our cloud provider (smtp.tem.scaleway.com).
The idea is to match the following pattern :
So we created on a bare new postal installation :
What we were expecting was that postal will use the relay server in order to send the e-mail
What we are experiencing is that postal is relaying the email without considering the routing defined
We confirmed it by using mailhog project as a relay, so we could see all the e-mails headers and none of them was mentionning [email protected]
Below is the env vars we used (not using any config file, just vars) :
To Reproduce
Expected behaviour
We would expect that relaying is actually using routing table or thta there is an env var that allow to control this behavior (like RELAY_UNMODIFIED=false or something meaningful)
Screenshots
Environment details
Additional information/context
If this is not an issue but rather a feature, can you point us to the right direction in order to achieve what we are trying to do ?
Feel free to ask any missing details
Beta Was this translation helpful? Give feedback.
All reactions