Perfect Setup - Fedora Core 4 - postfix problem

Discussion in 'Installation/Configuration' started by Median, Feb 1, 2006.

  1. Median

    Median New Member

    Hi.

    Back again with a new server (FC4) and having problems :confused:

    I have followed the Perfect Setup - Fedora Core 4. Got to the part that says
    and keep getting a connection refused error.

    I tried
    Code:
    [root@median ~]# postfix restart
    postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
    [root@median ~]# postfix stop
    postfix/postfix-script: stopping the Postfix mail system
    [root@median ~]# postfix start
    postfix/postfix-script: warning: /var/spool/postfix/etc/services and /etc/services differ
    postfix/postfix-script: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ
    postfix/postfix-script: starting the Postfix mail system
    
    (I have checked /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf and NONE of the ip addresses contained in them are mine. There is a third file though, which is /etc/resolv.conf.original which matches /var/spool/postfix/etc/resolv.conf. Also - I can't find any differences between /var/spool/postfix/etc/services and /etc/services.)


    At this point I get a connection via telnet but can't do anything. The session just doesn't respond to anything at all, even quit.

    I have checked everything I could find in this forum and all seems as it should be but can't

    Can you help with this please?

    Thanks
     
    Last edited: Feb 1, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please execute:

    /etc/init.d/postfix restart

    If you still can not connect to postfix with

    telnet localhost 25

    then post the output of:

    netstat -tap
     
  3. Median

    Median New Member

    Code:
    [root@median ~]# /etc/init.d/postfix restart
    Shutting down postfix:                                     [  OK  ]
    Starting postfix:                                          [FAILED]
    Mail log shows:
    Code:
    Feb  1 17:06:40 MEDIAN postfix/postfix-script: stopping the Postfix mail system
    Feb  1 17:06:40 palmeac1 postfix/master[1558]: terminating on signal 15
    Feb  1 17:06:40 palmeac1 postfix/postalias[1722]: fatal: open /etc/postfix/aliases: No such file or directory
    Code:
    [root@median ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:imaps                     *:*                         LISTEN      1184/xinetd
    tcp        0      0 *:pop3s                     *:*                         LISTEN      1184/xinetd
    tcp        0      0 *:mysql                     *:*                         LISTEN      1274/mysqld
    tcp        0      0 *:pop3                      *:*                         LISTEN      1184/xinetd
    tcp        0      0 *:imap                      *:*                         LISTEN      1184/xinetd
    tcp        0      0 *:http                      *:*                         LISTEN      1316/httpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      1172/sshd
    tcp        0      0 *:smtp                      *:*                         LISTEN      1558/master
    tcp        0      0 *:12121                     *:*                         LISTEN      1374/perl
    tcp        0      0 *:https                     *:*                         LISTEN      1316/httpd
    tcp        0   1040 median.domain.com:ssh my-host-name:3924 ESTABLISHED 1638/0
    tcp       17      0 localhost:smtp              localhost:4383              CLOSE_WAIT  -
     
    Last edited: Feb 1, 2006
  4. falko

    falko Super Moderator ISPConfig Developer

    Does /etc/aliases exist? If so, copy it:
    Code:
    cp /etc/aliases /etc/postfix aliases
    newaliases
    Also do this:
    Code:
    cp -f /etc/services /var/spool/postfix/etc/services
    cp -f /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
    Then restart Postfix.
     
  5. Median

    Median New Member

    Thanks guys - that worked nicely.
     
  6. Median

    Median New Member

    New error has popped up. I got as far as:
    Code:
    perl -MCPAN -e shell
    which went ok, so did
    Code:
    install HTML::Parser
    When I tried to run
    Code:
    install DB_File
    I got the following errors:

    Code:
      CPAN.pm: Going to build P/PM/PMQS/DB_File-1.814.tar.gz
    
    Parsing config.in...
    Looks Good.
    Checking if your kit is complete...
    Looks good
    Note (probably harmless): No library found for -ldb
    Writing Makefile for DB_File
    cp DB_File.pm blib/lib/DB_File.pm
    AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
    gcc -c  -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -e -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wh=i386 -mtune=pentium4 -fasynchronous-unwind-tables   -DVERSION=\"1.814\" -DXS_V6/i386-linux-thread-multi/CORE"  -D_NOT_CORE  -DmDB_Prefix_t=size_t -DmDB_Hash_t
    version.c:30:16: error: db.h: No such file or directory
    make: *** [version.o] Error 1
      /usr/bin/make  -- NOT OK
    Running make test
      Can't test without successful make
    Running make install
      make had returned bad status, install seems impossible
    
    cpan> install DB_File
    Running install for module DB_File
    Running make for P/PM/PMQS/DB_File-1.814.tar.gz
      Is already unwrapped into directory /root/.cpan/build/DB_File-1.814
      Has already been processed within this session
    Running make test
      Can't test without successful make
    Running make install
      make had returned bad status, install seems impossible
    
    cpan>
     
  7. falko

    falko Super Moderator ISPConfig Developer

    The devel files for the Berkeley DB are missing. You can either install these, or you can try to install the DB_File module with yum (yum will resolve all dependencies).
    You can run
    Code:
    yum search perl|grep -i DB
    to find the correct package that you can then install using
    Code:
    yum install <package_name>
     
  8. Median

    Median New Member

    Thanks Falko. I ran
    Code:
    apt-get install db4-devel
    and re-ran the
    Code:
    install DB_File
    with no errors.

    Thanks again for all the help.

    ISPConfig being installed next so knowing my luck I'll see you in that forum lol
     

Share This Page