postal icon indicating copy to clipboard operation
postal copied to clipboard

The From address is not authorised to send mail from this server

Open akshaychauhan7737 opened this issue 6 years ago • 5 comments

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

akshaychauhan7737 avatar Jul 28 '20 18:07 akshaychauhan7737

Is that the same domain you configured in postal.yml file?

rbashish avatar Jul 29 '20 07:07 rbashish

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.

willpower232 avatar Jul 29 '20 08:07 willpower232

Is that the same domain you configured in postal.yml file?

yes

akshaychauhan7737 avatar Aug 10 '20 12:08 akshaychauhan7737

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

akshaychauhan7737 avatar Aug 10 '20 12:08 akshaychauhan7737

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

akshaychauhan7737 avatar Aug 10 '20 12:08 akshaychauhan7737