postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
https://postalserver.io
MIT License
14.66k stars 1.04k forks source link

can't send emails [soft fail] #541

Closed khalidelmerrah closed 4 years ago

khalidelmerrah commented 6 years ago

hello team i can't send emails even that port 25 is open, and the routing settings are set the smtp credentials are set and i set them up on postal.yml i'm running out of ideas what to do to fix this ? where can i find log to understand the situation .. all i get is this

image

willpower232 commented 6 years ago

You mentioned in another issue that you were using Google Cloud. It may well be that they block all connections using port 25 so even though you are running on a different port, you still can't connect to other email servers on the internet.

khalidelmerrah commented 6 years ago

i just bought a digital ocean vps and checked that port 25 is open. what else could be wrong ?

willpower232 commented 6 years ago

Might be worth restarting the server to make sure everything is running smoothly. Do you have any issues emailing other domains?

khalidelmerrah commented 6 years ago

i restarted the server and got a new problem, it use to say it's soft fail, now it won't even try, just stay on pending, this is the changes i made to postal.yml and postal.defaults.yml are they correct ?

on the postal.yml file smtp: host: postal.nasdaily.us port: 25 username: nasdaily/nasdailyserver #got this from the smtp credentials that was generated password: hJ0seph2zKCOxTNSUlrQ**** # password dones't contain stars it's just to hide it from_name: NasDaily from_address: mailling@nasdaily.us

same thing on the postal.defaults.yml file smtp: host: postal.nasdaily.us port: 25 username: nasdaily/nasdailyserver password: hJ0seph2zKCOxTNSUlrQ*** from_name: NasDaily from_address: mailing@nasdaily.us

should it be like this or what ?

willpower232 commented 6 years ago

The credentials in postal.yml are only for when Postal wants to send emails (e,g. password reset). You should not change postal.defaults.yml as it can be overwritten by future updates.

Make sure that all of Postal is running with postal status.

khalidelmerrah commented 6 years ago

hey will,

the postal status shows everything running => web.1 Running => worker.2 Running => cron.2 Running => smtp.1 Running => requeuer.2 Running

but i still can't send a test email it pop a message says : message was queued successfully.

willpower232 commented 6 years ago

If the message was queued successfully, does the UI tell you what happened to the message?

khalidelmerrah commented 6 years ago

it just keeps pending for few seconds, then make it soft fail.. i just found out that the fu*** digital ocean doesn't allow sending emails and they are blocking outgoing requests through port 25.. can you refer a good vps company .. thanks Will

willpower232 commented 6 years ago

It appears Digital Ocean block SMTP on new accounts unless you open a ticket with them and explain your need for it.

I'd say most reputable VPS companies would have some kind of SMTP policy so you'd have to double check with them what was available. We use AWS but we had to contact them to arrange Reverse DNS.

khalidelmerrah commented 6 years ago

i tried AWS but they didn't accept to get my account out of the sandbox, i will be using postal for promotional emails and transnational emails and will send them to only who subscribed through our website .. i requested a 1000 emails a day increase but they just didn't accept it .. what you think i did wrong ?

willpower232 commented 6 years ago

That sounds more like SNS than EC2, the only thing we did with AWS was ask for Reverse DNS.

aliyenidede commented 2 months ago

"v=spf1 ip4:XX.XX.XX.XX ip6:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX ~all"

try to use spf like this