Skip to content

Commit

Permalink
make watch-smtp-out: more MX resolution debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdiga committed Apr 28, 2023
1 parent 8df83e9 commit ef5c392
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,20 @@ watch-smtp-out:
if [[ "$$rest" =~ ^.*no\ MX\ host\ for\ ([-a-z.]+).*$$ ]]; then
domain=$${BASH_REMATCH[1]}

echo "--- DEBUG: google.com from host"
nslookup google.com

echo "--- DEBUG: A record from host"
nslookup "$$domain"

echo "--- DEBUG: MX record from host"
nslookup -query=mx "$$domain"

echo "--- DEBUG: A record from inside container"
docker exec smtp-out nslookup "$$domain"

echo "--- DEBUG: MX record from inside container"
docker exec smtp-out nslookup -query=mx "$$domain"
fi
) |
if [ -t 1 ]; then cat; else sleep 1m; ifne ssmtp [email protected]; fi
Expand Down

0 comments on commit ef5c392

Please sign in to comment.