This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fill in hostname from info through ISP DHCP lease

Is there any way to set the HOSTNAME based on information collected during DHCP lease renewal on my external interface? or all interfaces for that matter

What scripts update /etc/hostname?

DHCP is based on MAC so OK there, But ISP SMTP is locked down to not accept unless the IP and HOSTNAME match.

Any Ideas?  


This thread was automatically locked due to age.
  • Is the ISP locking down for Outbound SMTP and requires the full hostname that they would hand out in DHCP?  I checked and the info you want is being grabbed and stored in the dhcpcd-.info file.

    I wonder if ASL could have an option to use it where you want to.  You might need it in the SMTP proxy and maybe the main hostname itself if users are going direct vs using the proxy.  Changing the main hostname on the fly might have other issues.  SMTP proxy MX name wouldn't be a problem if it changed on the fly.

    If you mean Inbound SMTP you can do other things without problems.  I use DynDNS to set a static name with dynamic IP.