Help! cannot send email from local PHP applications, i.e opencart
warning: hostname server.abc.com does not resolve to address aa.bb.cc.dd
tried with both my official SSL, and with lets encrypt
my server does not use local BIND, i have an external registra with all records for the DNS, inc server.abc.com
externally, when i ping my hostname, i.e ping server.abc.com, it correctly gets response from aa.bb.cc.dd
when i do the same from the local server, i get a response from 127.0.0.1 â
errors:
Aug 11 15:23:13 server postfix/smtpd[5600]: warning: hostname server.abc.com does not resolve to address aa.bb.cc.dd
Aug 11 15:23:13 server postfix/smtpd[5600]: connect from unknown[aa.bb.cc.dd]
Aug 11 15:23:13 server postfix/smtpd[5600]: SSL_accept error from unknown[aa.bb.cc.dd]: -1
Aug 11 15:23:13 server postfix/smtpd[5600]: warning: TLS library problem: error:0A000418:SSL routines::tlsv1 alert unknown ca:âŠ/ssl/record/rec_layer_s3.cSSL alert number 48:
Aug 11 15:23:13 server postfix/smtpd[5600]: lost connection after CONNECT from unknown[aa.bb.cc.dd]
Aug 11 15:23:13 server postfix/smtpd[5600]: disconnect from unknown[aa.bb.cc.dd] commands=0/0
could it be the main.cf line:
smtp_host_lookup = dns ?
SMTP Client Restrictions = allow all
my postfix/main.cf:
See /usr/share/postfix/main.cf.dist for a commented, more complete version
Debian specific: Specifying a file name will cause the first
line of that file to be used as the name. The Debian default
is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
appending .domain is the MUAâs job.
append_dot_mydomain = no
Uncomment the next line to generate âdelayed mailâ warnings
note, is this a setup issue in resolve.conf ?
i have a standard install, without BIND (as external registra & DNS), so surprised if this is wrong as should be as default
but, i see DNS server 127.0.0.53
should this be an external DNS like google ?
if so, why did the install not set this ?
and how to i set this permanently so it doesnât get overwritten on reboot ?
g 11 16:18:16 server postfix/smtpd[19224]: warning: hostname server.abc.com does not resolve to address aa.bb.cc.dd
Aug 11 16:18:16 server postfix/smtpd[19224]: connect from unknown[aa.bb.cc.dd]
Aug 11 16:18:16 server postfix/smtpd[19224]: SSL_accept error from unknown[aa.bb.cc.dd]: -1
Aug 11 16:18:16 server postfix/smtpd[19224]: warning: TLS library problem: error:0A000418:SSL routines::tlsv1 alert unknown ca:âŠ/ssl/record/rec_layer_s3.c:1584:SSL alert number 48:
Aug 11 16:18:16 server postfix/smtpd[19224]: lost connection after CONNECT from unknown[aa.bb.cc.dd]
Aug 11 16:18:16 server postfix/smtpd[19224]: disconnect from unknown[aa.bb.cc.dd] commands=0/0
argh!!! warning: hostname server.abc.com does not resolve to address aa.bb.cc.dd
If you are running your own dns then the local address should be OK I think.
try this command:
root@main:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
123.456.789.123 main.tadmin.com main
123.456.789.123 main.tadmin.com main
1234:f1c0:812:6a00::f:5673 main.tadmin.com main
yes, i do have a public IP address which is resolved externally, if you ping the hostname, it resolves correctly to the right IP. so the external DNS is doing its job correctly and is correct.
the issue here must be a postfix settingâŠ, or virtualmin config.
we really need Joe here to tell us the config for remote DNS
i do not have BIND for any virtual server OR the server.domain.com (System settings â Features and Plugins)
Are you logging into the VM panel remotely or directly on the machine? Iâve seen ICMP answer on hung machines. It is a much lower level protocol. I just donât see any IPV4 addresses that are network accessible in your configuration.
I donât know how this got setup without an IPV4 address. Usually the system will put some special address there if nothing is found. Iâm starting to think what got pinged wasnât this box but something in front of it.
What is the content of the /etc/network/interfaces file? if it receives the address via DHCP, it is obvious that it is not communicating with the server, hence the lack of the IPv4 address. Then we go ahead and install the isc-dhcp-client package and run dhclient. Thereâs no way it wonât get an IPv4 address after that. I encountered this situation recently when it could not be connected externally and I had to use the installation DVD to use the mentioned package.
Addresses in the range 169.254.0.0 to 169.254.255.255 are used automatically by most network devices when they are configured to use IP, do not have a static IP Address assigned and are unable to obtain an IP address using DHCP.
I managed not getting an IPv4 address in Debian 12 after playing around deleting packages that were part of Virtualmin. There was listed only IPv6 and nothing else and localhost and ens33 as interfaces. Letâs see what the file I requested contains.
auto venet0
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add default dev venet0
dns-nameservers 8.8.8.8 8.8.4.4
dns-domain .
auto venet0:0
iface venet0:0 inet static
address aa.bb.cc.dd {changed for this post, is correct}
netmask 255.255.255.0
also:
ip route show
default dev venet0 scope link
aa.bb.cc.0/24 dev venet0 proto kernel scope link src aa.bb.cc.dd {changed by me for thsi post, is correct}
so the server has the correct address! so why can postfix not see this ??
also, did not make any change, still the same error:
Aug 11 21:10:10 server postfix/smtpd[2027]: warning: hostname server.abc.com does not resolve to address aa.bb.cc.dd
Aug 11 21:10:10 server postfix/smtpd[2027]: connect from unknown[aa.bb.cc.dd]
Aug 11 21:10:10 server postfix/smtpd[2027]: SSL_accept error from unknown[aa.bb.cc.dd]: -1
Aug 11 21:10:10 server postfix/smtpd[2027]: warning: TLS library problem: error:0A000418:SSL routines::tlsv1 alert unknown ca:âŠ/ssl/record/rec_layer_s3.c:1584:SSL alert number 48:
Aug 11 21:10:10 server postfix/smtpd[2027]: lost connection after CONNECT from unknown[aa.bb.cc.dd]
Aug 11 21:10:10 server postfix/smtpd[2027]: disconnect from unknown[aa.bb.cc.dd] commands=0/0