No SMTP servers were available for mydomain.com
. No hosts to try.
#3252
-
Hello everyone, I have some problems setting up A bit of context: The problem:
I suppose that this should be translated like this: "When I (postal) receive an email with the The only useful information from UI is a strange I don't have DNS problems because, as said before, each container can reach the others. I use a FQDN for the mailserver (mapped in I hope that I have been clear, any suggestion/help to fix the problem would be very appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
This is the biggest clue, I think this means that either there are no working MX records for the domain you're trying to send to or your server provider is blocking your SMTP connections outbound. postal/app/senders/smtp_sender.rb Lines 46 to 47 in fd3c7cc |
Beta Was this translation helpful? Give feedback.
I solved the issue. The problem was with DNS resolution. While
/etc/hosts
was correctly configured andtelnet
could reachmyserver.com
, it seems thatPostal
does not handle IP addresses well (theendpoint
variable was empty). I decided to use a public FQDN instead, and the logs showed thatPostal
attempted to reach that host (unsuccessfully, as it was not an SMTP server). However, this time, theendpoint
variable was printed correctly.To address the issue, I installed
dnsmasq
and configuredsystemd-resolved
to usednsmasq
as the upstream server. This setup ensures that only the DNS queries for the VPN domain are sent todnsmasq
.Thank you for the support!