The From address is not authorised to send mail from this server
can you please send me curl request for send email api.
tryping
curl --location --request POST 'https://139.59.70.136/api/v1/send/raw'
--header 'X-Server-API-Key:
--header 'Content-Type: application/json'
--data-raw '{
"mail_from" : "[email protected]",
"rcpt_to" : ["[email protected]"],
"data" : "aGV5IGhvdyBhcmUgeW91"
}'
response : { "status": "error", "time": 0.0, "flags": {}, "data": { "code": "UnauthenticatedFromAddress", "message": "The From address is not authorised to send mail from this server" } }
NOTE : I have verified domain. Not able to send email from panel.
No SMTP servers were available for gmail.com. Tried gmail-smtp-in.l.google.com, alt1.gmail-smtp-in.l.google.com, alt2.gmail-smtp-in.l.google.com, alt3.gmail-smtp-in.l.google.com, and alt4.gmail-smtp-in.l.google.com
Technical specification execution expired
Is that the same domain you configured in postal.yml file?
The From address is not authorised to send mail from this server
This means that the credential you are using doesn't have primebachat.com as a domain in the same mail server so you will need to add it there.
No SMTP servers were available
As per https://github.com/postalhq/postal/issues/369#issuecomment-665154718, your server provider is likely blocking port 25 or email sending so you should consult them to see if this is something that can be allowed for your server.
Is that the same domain you configured in
postal.ymlfile?
yes
The From address is not authorised to send mail from this server
This means that the credential you are using doesn't have primebachat.com as a domain in the same mail server so you will need to add it there.
No SMTP servers were available
As per #369 (comment), your server provider is likely blocking port 25 or email sending so you should consult them to see if this is something that can be allowed for your server.
i have added this email as i can send emails through smtp but not through api. I can send email using panel also
The From address is not authorised to send mail from this server
This means that the credential you are using doesn't have primebachat.com as a domain in the same mail server so you will need to add it there.
No SMTP servers were available
As per #369 (comment), your server provider is likely blocking port 25 or email sending so you should consult them to see if this is something that can be allowed for your server.
i have added this email as i can send emails through smtp but not through api. I can send email using panel also