Published 1 week ago by ekpono
Connection could not be established with host smtp.mailtrap.io [Connection refused #111] on live server. Here is my credentials
MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=my-username MAIL_PASSWORD=mypassword
Please help out it is urgent. Have cleared config. Have also optimize:clear
you can test if the port is available through your firewall using
nmap from the command line on your server
nmap -Pn -pT:2525 my-domain-name.com Starting Nmap 7.01 ( https://nmap.org ) at 2018-10-11 18:56 BST Nmap scan report for my-domain-name.com (18.104.22.168) Host is up. Other addresses for my-domain-name.com (not scanned): 22.214.171.124 rDNS record for 126.96.36.199: ec2-52-55-164-156.compute-1.amazonaws.com PORT STATE SERVICE 2525/tcp filtered ms-v-worlds Nmap done: 1 IP address (1 host up) scanned in 8.16 seconds
You need to see the STATE as open and not filtered or closed.
Obviously replace the my-domain-name.com with your real domain name
You just need to install it. How to do that depends on the os you're using, but here's how on CentOS/Debian/Ubuntu. Most others will also use one of those depending on what linux it was based off of:
I want to receive the mail in [email protected]
You might also want to clarify that statement.
Mailtrap is for testing only. You can't send mail to a specific domain, like "my-domain-name.com". All email sent from your app will go to mailtrap, and you'll need to login to mailtrap to see them. It's not a real full blown email server. You can't use 3rd party tools to access it (like Thunderbird, Apple Mail, the email app on your phone, etc). It won't alert you when you receive a new email. You can't send emails
from it. You can only receive emails, and you have to manually login to see if there are any. It doesn't sound like this is what you want to do from your quote? I'd hate to see you spending a bunch of time getting mailtrap to work if it won't actually do what you need it to do. It's just meant to test whether your app can send email out specifically to your mailtrap account (not some other domain). Nothing more.
Starting Nmap 7.70 ( https://nmap.org ) at 2018-10-11 22:09 W. Central Africa Standard Time Nmap scan report for www.koboaccountant.com (188.8.131.52) Host is up. rDNS record for 184.108.40.206: server239-2.web-hosting.com PORT STATE SERVICE 2525/tcp filtered ms-v-worlds Nmap done: 1 IP address (1 host up) scanned in 16.55 seconds