[Risolto] Errore installazione postfix Ubuntu 20.04 Server

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Avatar utente
Rapture
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 310
Iscrizione: lunedì 15 maggio 2006, 19:51
Contatti:

[Risolto] Errore installazione postfix Ubuntu 20.04 Server

Messaggio da Rapture »

Ciao a tutti,

quando installo postfix mi da questi errori:

Codice: Seleziona tutto

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libevent-core-2.1-7 libevent-pthreads-2.1-7 libgnutls-openssl27 libmecab2 mecab-ipadic mecab-ipadic-utf8 mecab-utils
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up postfix (3.4.13-0ubuntu1) ...
setting myhostname=seshat.192.168.63.104 in /etc/postfix

Postfix (main.cf) is now set up with the changes above.  If you need to make
changes, edit /etc/postfix/main.cf (and others) as needed.  To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'systemctl reload postfix'.

Running newaliases
newaliases: warning: valid_hostname: numeric hostname: 192.168.63.104
newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 192.168.63.104
dpkg: error processing package postfix (--configure):
 installed postfix package post-installation script subprocess returned error exit status 75
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sopratutto questo: numeric hostname: 192.168.63.104 non capsico da dove se lo prenda visto che l'hotname è alfanumerico.
Ogni volta che cerco di isntallarlo scrive:
setting myhostname=seshat.192.168.63.104 in /etc/postfix

Ma chi gli dice che lo deve chiamare in questo modo quando il nome della macchina è solo seshat?

Grazie a tutti!
Ultima modifica di Rapture il giovedì 8 luglio 2021, 15:22, modificato 1 volta in totale.
Avatar utente
iononsbalgiomai
Rampante Reduce
Rampante Reduce
Messaggi: 7398
Iscrizione: martedì 29 novembre 2011, 15:50

Re: Errore installazione postfix Ubuntu 20.04 Server

Messaggio da iononsbalgiomai »

Ciao, non so dirti sulla questione dell'host name.

Per quanto riguarda questo tipo di errore:

Codice: Seleziona tutto

dpkg: error processing package postfix (--configure):
 installed postfix package post-installation script subprocess returned error exit status 75
Generalmente si risolve così:

Codice: Seleziona tutto

sudo rm /var/lib/dpkg/info/postfix.postinst
sudo apt install -f
Non aprire una discussione se prima non hai cercato una soluzione nel Wiki né fatto una ricerca nel forum ;)
Avatar utente
Rapture
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 310
Iscrizione: lunedì 15 maggio 2006, 19:51
Contatti:

Re: Errore installazione postfix Ubuntu 20.04 Server

Messaggio da Rapture »

GRAZIE!

Immagine
Avatar utente
iononsbalgiomai
Rampante Reduce
Rampante Reduce
Messaggi: 7398
Iscrizione: martedì 29 novembre 2011, 15:50

Re: Errore installazione postfix Ubuntu 20.04 Server

Messaggio da iononsbalgiomai »

Di nulla :)

Ricorda di aggiungere [Risolto] all'inizio del titolo del primo messaggio, scritto così, fra parentesi quadre e non tutto maiuscolo.
Non aprire una discussione se prima non hai cercato una soluzione nel Wiki né fatto una ricerca nel forum ;)
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 11 ospiti