I'm trying to send email with Laravel using mailtrap for testing in a local homestead server.
The firewall shows no rules blocking port 2525.
Mail driver config:
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=$USERNAME
MAIL_PASSWORD=$PASSWORD
MAIL_ENCRYPTION=null
Error returned:
Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host mailtrap.io [Connection timed out #110]'
telnet mailtrap.io 2525
does it work? – Rockymailtrap.io
is handled by Google for the mail and has 5 MX records. – RockyOn 8 March 2018 Mailtrap blocked the traffic from “mailtrap.io”
Switching to the new host and restarting the system solved the DNS problem. – Photoreceptor