When installing 24.04 postfix is now part of the required packages. In a non-interactive installation, this can cause problems as the default values try to populate $myhostname using dns. To get a working installation, I used debconf-get-selections | grep postfix after installing postfix with the "no configuration" option.
postfix postfix/main_mailer_type select No configuration postfix postfix/mailbox_limit string 0 postfix postfix/procmail boolean postfix postfix/main_cf_conversion_warning boolean true postfix postfix/compat_conversion_warning boolean true postfix postfix/mailname string /etc/mailname postfix postfix/recipient_delim string + postfix postfix/not_configured error postfix postfix/root_address string postfix postfix/relayhost string postfix postfix/bad_recipient_delimiter error postfix postfix/dynamicmaps_conversion_warning boolean postfix postfix/rfc1035_violation boolean false postfix postfix/destinations string postfix postfix/newaliases boolean false postfix postfix/protocols select postfix postfix/chattr boolean false postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 This ensures no aliases are created for postfix and hence the installation goes through. Best regards Balder Lindblom ________________________________ Registered Office Göteborg Sweden Registration No. 559228-9358 Confidentiality note: This e-mail (including any attachments) is intended only for the recipient(s) named above. Zenseact accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please contact the sender and delete the e-mail from your system. By communicating with Zenseact, your personal data will be processed in accordance with applicable laws. Read our privacy policy at www.zenseact.com for further information.