After ‘scripts/cmdeploy run’ during Postfix installation I got an error:
‘’’
→ Starting operation: Install Postfix
[deltachat.kz] Reading package lists…
[deltachat.kz] Building dependency tree…
[deltachat.kz] Reading state information…
[deltachat.kz] postfix is already the newest version (3.7.11-0+deb12u1).
[deltachat.kz] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[deltachat.kz] 1 not fully installed or removed.
[deltachat.kz] After this operation, 0 B of additional disk space will be used.
[deltachat.kz] Setting up postfix (3.7.11-0+deb12u1) …
[deltachat.kz]
[deltachat.kz] Postfix (main.cf) configuration was untouched. If you need to make changes,
[deltachat.kz] edit /etc/postfix/main.cf (and others) as needed. To view Postfix
[deltachat.kz] configuration values, see postconf(1).
[deltachat.kz]
[deltachat.kz] After modifying main.cf, be sure to run ‘systemctl reload postfix’.
[deltachat.kz]
[deltachat.kz] Running newaliases
[deltachat.kz] newaliases: warning: valid_hostname: numeric hostname: 29756
[deltachat.kz] newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: 29756
[deltachat.kz] dpkg: error processing package postfix (–configure):
[deltachat.kz] installed postfix package post-installation script subprocess returned error exit status 75
[deltachat.kz] Errors were encountered while processing:
[deltachat.kz] postfix
[deltachat.kz] E: Sub-process /usr/bin/dpkg returned an error code (1)
[deltachat.kz] Error: executed 0 commands
→ Disconnecting from hosts…
→ pyinfra error: No hosts remaining!
Deploy failed
‘’’
Fixed.
To fix the error I did sudo nano /etc/postfix/main.cf and changed myhostname value to deltachat.kz (my chatmail relay address), and now everything works.
Created an issue at GitHub: