LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hostname error installing postfix (https://www.linuxquestions.org/questions/linux-software-2/hostname-error-installing-postfix-250931/)

Moebius 11-04-2004 01:51 AM

hostname error installing postfix
 
when I try to install postfix with apt-get on my debian system I get this error:

Code:

Setting up postfix (2.1.4-5) ...

Postfix configuration was not changed.  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 '/etc/init.d/postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: invalid character 123(decimal): {MTA_HOSTNAME}
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: {MTA_HOSTNAME}
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of sensible-mda:
 sensible-mda depends on sendmail-bin | mail-transport-agent; however:
  Package sendmail-bin is not installed.
  Package mail-transport-agent is not installed.
  Package exim which provides mail-transport-agent is not installed.
  Package sendmail-bin which provides mail-transport-agent is not installed.
  Package postfix which provides mail-transport-agent is not configured yet.
dpkg: error processing sensible-mda (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-tls:
 postfix-tls depends on postfix; however:
  Package postfix is not configured yet.
 postfix-tls depends on postfix (= 2.1.4-5); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-tls (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of webmin-postfix:
 webmin-postfix depends on postfix | postfix-tls; however:
  Package postfix is not configured yet.
  Package postfix-tls is not configured yet.
dpkg: error processing webmin-postfix (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 postfix
 sensible-mda
 postfix-tls
 webmin-postfix

installation script returned error exit status 100.

my /etc/hosts currently looks like this:
Code:

debian:/etc/apache2# cat /etc/hosts
127.0.0.1      localhost
127.0.0.1      debian

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1    ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Any ideas?

Moebius 11-09-2004 05:18 PM

OK I changed my hostname and domain, which took care of the hostname problem, but its still complaining about anything like {MTA_ANYTHING} in the curly brackets. I changed the main.cf to put actual values in to the hostname and domain fields, but there's a whole lot of those MTA entries in there and I don't know what most of them are. Whats up with it not knowing what to do with those entries? Smells like an unsatisfied dependancy to me, but what? I should also note that I am trying to install VHCS and this might be the VHCS version of main.cf? I dunno what the norm is. Here is what I currently am getting:

Code:

debian:~# dpkg --pending --configure
Setting up postfix (2.1.4-5) ...

Postfix configuration was not changed.  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 '/etc/init.d/postfix reload'.

Running newaliases
postalias: fatal: open {MTA_LOCAL_ALIAS_HASH}: No such file or directory
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postfix-tls:
 postfix-tls depends on postfix; however:
  Package postfix is not configured yet.
 postfix-tls depends on postfix (= 2.1.4-5); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-tls (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 postfix
 postfix-tls

Any one know whats up?


All times are GMT -5. The time now is 11:34 PM.