Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st February 2006, 17:26
Median Median is offline
Member
 
Join Date: Jan 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default Perfect Setup - Fedora Core 4 - postfix problem

Hi.

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

I have followed the Perfect Setup - Fedora Core 4. Got to the part that says
Quote:
telnet localhost 25
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 by Median; 1st February 2006 at 17:38.
Reply With Quote
Sponsored Links
  #2  
Old 1st February 2006, 17:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st February 2006, 18:12
Median Median is offline
Member
 
Join Date: Jan 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Please execute:

/etc/init.d/postfix restart
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
Quote:
then post the output of:

netstat -tap
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 by Median; 1st February 2006 at 18:16.
Reply With Quote
  #4  
Old 1st February 2006, 21:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by Median
Code:
Feb  1 17:06:40 palmeac1 postfix/postalias[1722]: fatal: open /etc/postfix/aliases: No such file or directory
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 2nd February 2006, 00:54
Median Median is offline
Member
 
Join Date: Jan 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks guys - that worked nicely.
Reply With Quote
  #6  
Old 2nd February 2006, 01:51
Median Median is offline
Member
 
Join Date: Jan 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
Reply With Quote
  #7  
Old 2nd February 2006, 09:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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>
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 2nd February 2006, 12:21
Median Median is offline
Member
 
Join Date: Jan 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perfect Setup - Fedora Core 3 - saslauthd problem Median Installation/Configuration 28 29th January 2006 18:51
Fedora Core 4 - The Perfect Setup nandhu HOWTO-Related Questions 27 10th January 2006 12:23
Few questions about Fedora core 4 perfect setup + mantasman HOWTO-Related Questions 3 9th January 2006 22:22
The Perfect Setup - Fedora Core 4 amdserver HOWTO-Related Questions 42 9th November 2005 13:48
The Perfect Setup Fedora Core 4 Proftpd error Nu2Linux HOWTO-Related Questions 3 29th October 2005 20:26


All times are GMT +2. The time now is 23:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.