curl --user jobs:jobs2024 -H 'Content-Type: application/json' 'https://api.XXX.org/api/inject/v1' -d '{
"envelope_sender": "test@erlangjobs.com",
"content": {
"text_body": "This is the plain text part",
"html_body": "<p>This is the <b>HTML</b> part</p>",
"from": {
"email": "test@erlangjobs.com",
"name": "Jobs"
},
"subject": "This is the subject",
"reply_to": {
"email": "test@erlangjobs.com",
"name": "Help"
}
},
"recipients": [
{
"email": "kazanlug@gmail.com"
}
]
}'
This is my curl request and I can see webhooks from this request, 2 messages: reception + delivered.
But after that I’m receiving like 5-10 webhooks with no data and about Rejection event.
Hey there @dapper-yeti, thanks for posting. Please read the “Troubleshooting” and “How to Ask for Help” buttons below. If you would like a 1:1 support session from the KumoMTA team, details are at the “Book a Support Session” button below.
Hmm, sorry I’m not following, for me it looks like unrelated, like my message was delivered with success state, but why I’m receiving like 5-10 messages with rejection after?
Yes, it’s exposed, is that the some sort of anti pattern right? Should I use only trusted hosts option or something like that? The idea is - provide SMTP/API access to some companies.
# relay to anywhere, so long as the sender domain is auth-send.example.com
# and the connected peer has authenticated as any of the authorization identities
# listed below using SMTP AUTH
relay_from_authz = [ 'username1', 'username2' ]