Re: Web Server Using Postfix #networking


David Ranch <dranch@...>
 


Hello Don,

My email client will set up just fine using the local ip address for the server 192.168.1 using ports 110 and 25 ---- and there is not a problem sending and receiving emails.

Is the Raspberry Pi the email client or the email server?


However, if I use my full address, w9jun.ampr.org, the client will not set up. (no sending or receiving)

Are you saying that if you configure the email client to use the IP address vs. DNS name, that's the difference?  Or is the issue that one is the Internal IP address and the other is the external IP?


On the email client machine, what do the following commands give you?

   dig w9jun.ampr.org | grep w9jun.ampr.org

   dig w9jun.ampr.org mx | grep w9jun.ampr.org

I see the following:

   $ dig w9jun.ampr.org | grep w9jun.ampr.org
   ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.1 <<>> w9jun.ampr.org
   ;w9jun.ampr.org.                        IN      A
   w9jun.ampr.org.         3584    IN      A       44.48.210.1


   $ dig w9jun.ampr.org mx | grep w9jun.ampr.org
   ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.1 <<>> w9jun.ampr.org mx
   ;w9jun.ampr.org.                        IN      MX
   w9jun.ampr.org.         3600    IN      MX      5 w9jun.ampr.org.
   w9jun.ampr.org.         3578    IN      A       44.48.210.1



From my AMPR station, I can ping and connect to your host on ports 25 and 110:

   $ ping 44.48.210.1
   PING 44.48.210.1 (44.48.210.1) 56(84) bytes of data.
   64 bytes from 44.48.210.1: icmp_seq=1 ttl=64 time=78.7 ms
   ^C
   --- 44.48.210.1 ping statistics ---
   1 packets transmitted, 1 received, 0% packet loss, time 0ms
   rtt min/avg/max/mdev = 78.757/78.757/78.757/0.000 ms

   $ telnet 44.48.210.1 25
   Trying 44.48.210.1...
   Connected to 44.48.210.1.
   Escape character is '^]'.
   220 w9jun.ampr.org ESMTP Postfix (Debian/GNU)
   ^]close

   $ telnet 44.48.210.1 110
   Trying 44.48.210.1...
   Connected to 44.48.210.1.
   Escape character is '^]'.
   +OK Qpopper (version 4.1.0) at w9jun.ampr.org starting.
   ^]close
   telnet> close

   $ telnet 44.48.210.1 465
   Trying 44.48.210.1...
   Connected to 44.48.210.1.
   Escape character is '^]'.
   220 w9jun.ampr.org ESMTP Postfix (Debian/GNU)
   ^]close


Can you also do those same tests to confirm you're getting DNS resolution and IP forwarding?


--David
KI6ZHD

Join RaspberryPi-4-HamRadio@groups.io to automatically receive all group messages.