Open ezp-matt opened 2 months ago
Maybe you have a plugin overwriting the zone? Most of the plugin hooks only run for messages submitted through SMTP.
Maybe, I'm using the stock zone-mta-template
configuration (just installed it for the first time yesterday). I definitely don't have any custom plugins. I'll try disabling the plugins it comes with installed and see if it makes a difference.
Hmm, to my knowledge the default template setup doesn't have anything that overwrites the zone. Sorry, don't know in that case!
I just disabled all the built-in plugins and tried again and got the same result. Thanks for the suggestion, though!
I'm attempting to forward transactional emails to Postmark's SMTP service if the email has a
X-PM-Message-Stream
header set. I've set up a zone calledtransactional
withroutingHeaders
like so:and I'm testing with this email:
When I upload this email using the "Upload Message" function of the
zmta-webadmin
package (which I'm assuming uses the API), it works fine, and is routed to my transactional zone properly. However if I send the exact same message via SMTP using curl, it is always sent through the default zone.Am I missing something? I set
allowRoutingHeaders: [ 'api', 'bounce', 'feeder' ]
in thecore/default-headers
plugin settings, but from what I can gather from reading the source code, that only applies to theX-Sending-Zone
header.Any advice would be appreciated.