Setting up a new server - Suse 11.1

Discussion in 'Server Operation' started by londonman, Mar 27, 2009.

  1. londonman

    londonman New Member

    Hi Guys
    I am new to suse and embarking on a project to set up a working database server I have recently read the following tutorial at :- http://www.howtoforge.com/perfect-server-opensuse-11.1 - and found it very helpful

    However i have come across an issues at page 3, at 7 DNS Server,
    After running
    chkconfig --add named
    returns
    # unknown

    Any idea what i have done wrong?

    Can you help please?

    Server being setup is
    PIII, 2 Ethernet Cards, Sound Card HDD,40GB sorry cannot find out at present what the system spec says is the full spec of the server.

    I have Tried
    /sbin/lspci
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did
    Code:
    yast2 -i bind bind-chrootenv bind-devel bind-utils
    show any errors?
    What's in /etc/init.d/named?
     
  3. londonman

    londonman New Member

     
  4. falko

    falko Super Moderator Howtoforge Staff

    Can you post the output of
    Code:
    ls -la /etc/init.d/
    ?
     
  5. londonman

    londonman New Member

    Hi Falko
    I have ran the command but unable to save it, for upload.

    I have tried the following to save the output to a floppy without any joy

    Inserted formated Floppy (Msdos)

    #mdir a:
    dir for A
    No files

    check disk empty

    #mcopy /etc/init.d a:/etc/init.d
    no such file or dir

    I have tried to mount this also was unsuccessfull

    #mount /dev/fdo/mnt/floppy
    cant find

    Help please.


    Ok at last i have been able to access the server - using wrong port no.


    Please find as requested results

    :~ # # ls -la /etc/init.d/
    :~ # total 584
    drwxr-xr-x 80 root root 12288 Mar 31 00:48 ..
    -rw-r--r-- 1 root root 1041 Mar 23 16:08 .depend.boot
    -rw-r--r-- 1 root root 536 Mar 23 16:08 .depend.halt
    -rw-r--r-- 1 root root 877 Mar 23 16:08 .depend.start
    -rw-r--r-- 1 root root 503 Mar 23 16:08 .depend.stop
    -rw-r--r-- 1 root root 8924 Dec 3 05:08 README
    -rwxr-xr-x 1 root root 1468 Dec 3 05:06 SuSEfirewall2_init
    -rwxr-xr-x 1 root root 1576 Dec 3 05:06 SuSEfirewall2_setup
    -rwxr-xr-x 1 root root 3412 Dec 3 12:15 aaeventd
    -rwxr--r-- 1 root root 3755 Dec 3 05:14 acpid
    -rwxr-xr-x 1 root root 3955 Dec 3 06:45 atd
    -rwxr-xr-x 1 root root 6933 Dec 9 19:21 auditd
    -rwxr-xr-x 1 root root 5778 Dec 3 07:27 autofs
    -rwxr-xr-x 1 root root 2989 Aug 15 2008 autoyast
    -rwxr-xr-x 1 root root 7486 Oct 15 11:56 boot
    -rwxr-xr-x 1 root root 2880 Dec 3 12:15 boot.apparmor
    -rwxr-xr-x 1 root root 1242 Dec 3 12:06 boot.blktrace
    -rwxr-xr-x 1 root root 2944 Nov 17 01:55 boot.cleanup
    -rwxr-xr-x 1 root root 3812 Nov 20 16:16 boot.clock
    -rwxr-xr-x 1 root root 2510 Dec 3 06:33 boot.crypto
    -rwxr-xr-x 1 root root 2410 Dec 3 06:33 boot.crypto-early
    -rwxr-xr-x 1 root root 2029 Dec 3 04:54 boot.cycle
    drwxr-xr-x 2 root root 4096 Mar 23 16:08 boot.d
    -rwxr--r-- 1 root root 819 Dec 9 19:20 boot.device-mapper
    -rwxr--r-- 1 root root 1417 Dec 3 05:59 boot.dmraid
    -rwxr-xr-x 1 root root 3453 Aug 11 2008 boot.ipconfig
    -rwxr-xr-x 1 root root 1781 Aug 11 2008 boot.klog
    -rwxr-xr-x 1 root root 1735 Jul 22 2008 boot.ldconfig
    -rwxr-xr-x 1 root root 1017 Jul 22 2008 boot.loadmodules
    -rwxr--r-- 1 root root 395 Dec 9 21:58 boot.local
    -rwxr-xr-x 1 root root 9303 Nov 17 13:17 boot.localfs
    -rwxr-xr-x 1 root root 1593 Aug 18 2008 boot.localnet
    -rwxr-xr-x 1 root root 1408 Dec 3 06:00 boot.lvm
    -rwxr-xr-x 1 root root 5726 Dec 3 06:17 boot.md
    -rwxr-xr-x 1 root root 3584 Dec 3 05:58 boot.multipath
    -rwxr-xr-x 1 root root 1615 Aug 8 2008 boot.proc
    -rwxr-xr-x 1 root root 4543 Dec 3 06:45 boot.quota
    -bash: total: command not found
    nemisis:~ # drwxr-xr-x 11 root root 4096 Mar 23 16:08 .
    x 2 root root 4096 Mar 2
    -bash: drwxr-xr-x: command not found
    nemisis:~ # drwxr-xr-x 80 root root 12288 Mar 31 00:48 ..
    -bash: drwxr-xr-x: command not found
    drwxr-xr-x 2 root root 4096 Mar 23 15:13 rc
    nemisis:~ # -rw-r--r-- 1 root root 1041 Mar 23 16:08 .depend.boot
    -bash: -rw-r--r--: command not found
    drwxr-xr-x 2 root root 4096 Dec 9 21:58 rc6.d
    drwxr-nemisis:~ # -rw-r--r-- 1 root root 536 Mar 23 16:08 .depend.halt
    xr-x 2 root root 4096 Dec 9 21:59 rcS.d
    lrwxrwxrwx 1-bash: -rw-r--r--: command not found
    nemisis:~ # -rw-r--r-- 1 root root 877 Mar 23 16:08 .depend.start
    -bash: -rw-r--r--: command not found
    root root 4 Mar 23 14:48 reboot -> halt
    -rwxr-xr-x nemisis:~ # -rw-r--r-- 1 root root 503 Mar 23 16:08 .depend.stop
    1 root root 3771 Dec 3 07:14 rpasswdd
    -rwxr-xr-x 1 ro-bash: -rw-r--r--: command not found
    nemisis:~ # -rw-r--r-- 1 root root 8924 Dec 3 05:08 README
    -bash: -rw-r--r--: command not found
    ot root 1793 Dec 3 06:18 rpcbind
    -rwxr-xr-x 1 rnemisis:~ # -rwxr-xr-x 1 root root 1468 Dec 3 05:06 SuSEfirewall2_init
    oot root 2492 Dec 3 01:41 rpmconfigcheck
    -rwxr-xr-x 1 root -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 1576 Dec 3 05:06 SuSEfirewall2_setup
    -bash: -rwxr-xr-x: command not found
    root 3874 Dec 3 12:01 rsyncd
    -rwxr-xr-x 1 root root 9645 Denemisis:~ # -rwxr-xr-x 1 root root 3412 Dec 3 12:15 aaeventd
    c 3 05:02 setserial
    -rwxr-xr-x 1 root root 1431 O-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr--r-- 1 root root 3755 Dec 3 05:14 acpid
    ct 15 11:52 single
    -rwxr-xr-x 1 root root 10645 -bash: -rwxr--r--: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 3955 Dec 3 06:45 atd
    Jul 23 2008 skeleton
    -rwxr-xr-x 1 root root 1-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 6933 Dec 9 19:21 auditd
    -bash: -rwxr-xr-x: command not found
    2744 Jul 23 2008 skeleton.compat
    -rwxr-xr-x 1 ronemisis:~ # -rwxr-xr-x 1 root root 5778 Dec 3 07:27 autofs
    ot root 15946 Dec 3 06:33 smartd
    -rwxr-xr-x 1 ro-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 2989 Aug 15 2008 autoyast
    -bash: -rwxr-xr-x: command not found
    ot root 3066 Dec 3 09:19 splash
    -rwxr-xr-x 1 rootnemisis:~ # -rwxr-xr-x 1 root root 7486 Oct 15 11:56 boot
    root 460 Dec 3 09:19 splash_early
    -rwxr-xr-x-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 2880 Dec 3 12:15 boot.apparmor
    -bash: -rwxr-xr-x: command not found
    1 root root 3878 Aug 21 2007 sshd
    -rwxr-xr-x 1 root nemisis:~ # -rwxr-xr-x 1 root root 1242 Dec 3 12:06 boot.blktrace
    root 1044 Dec 3 12:06 stopblktrace
    -rwxr-xr-- 1 root r-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 2944 Nov 17 01:55 boot.cleanup
    oot 6035 Dec 3 05:13 syslog
    -rwxr--r-- 1 root root 1-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 3812 Nov 20 16:16 boot.clock
    818 Dec 3 06:18 uuidd
    -rwxr-xr-x 1 root root 1037 D-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 2510 Dec 3 06:33 boot.crypto
    ec 3 12:06 waitfornm
    -rwxr-xr-x 1 root root 4323 Dec-bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 2410 Dec 3 06:33 boot.crypto-early
    -bash: -rwxr-xr-x: command not found
    3 06:18 xinetd
    -rwxr-xr-x 1 root root 5363 Dec 3 06:58 ynemisis:~ # -rwxr-xr-x 1 root root 2029 Dec 3 04:54 boot.cycle
    pbind
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # drwxr-xr-x 2 root root 4096 Mar 23 16:08 boot.d
    -bash: drwxr-xr-x: command not found
    nemisis:~ # -rwxr--r-- 1 root root 819 Dec 9 19:20 boot.device-mapper
    -bash: -rwxr--r--: command not found
    nemisis:~ # -rwxr--r-- 1 root root 1417 Dec 3 05:59 boot.dmraid
    -bash: -rwxr--r--: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 3453 Aug 11 2008 boot.ipconfig
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 1781 Aug 11 2008 boot.klog
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 1735 Jul 22 2008 boot.ldconfig
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 1017 Jul 22 2008 boot.loadmodules
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr--r-- 1 root root 395 Dec 9 21:58 boot.local
    -bash: -rwxr--r--: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 9303 Nov 17 13:17 boot.localfs
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 1593 Aug 18 2008 boot.localnet
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 1408 Dec 3 06:00 boot.lvm
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 5726 Dec 3 06:17 boot.md
    -bash: -rwxr-xr-x: command not found
    nemisis:~ # -rwxr-xr-x 1 root root 3584 Dec 3 05:58 boot.multipath
    ^C
    nemisis:~ # clear
    nemisis:~ # ls -la /etc/init.d/
    total 584
    drwxr-xr-x 11 root root 4096 Mar 23 16:08 .
    drwxr-xr-x 80 root root 12288 Mar 31 00:48 ..
    -rw-r--r-- 1 root root 1041 Mar 23 16:08 .depend.boot
    -rw-r--r-- 1 root root 536 Mar 23 16:08 .depend.halt
    -rw-r--r-- 1 root root 877 Mar 23 16:08 .depend.start
    -rw-r--r-- 1 root root 503 Mar 23 16:08 .depend.stop
    -rw-r--r-- 1 root root 8924 Dec 3 05:08 README
    -rwxr-xr-x 1 root root 1468 Dec 3 05:06 SuSEfirewall2_init
    -rwxr-xr-x 1 root root 1576 Dec 3 05:06 SuSEfirewall2_setup
    -rwxr-xr-x 1 root root 3412 Dec 3 12:15 aaeventd
    -rwxr--r-- 1 root root 3755 Dec 3 05:14 acpid
    -rwxr-xr-x 1 root root 3955 Dec 3 06:45 atd
    -rwxr-xr-x 1 root root 6933 Dec 9 19:21 auditd
    -rwxr-xr-x 1 root root 5778 Dec 3 07:27 autofs
    -rwxr-xr-x 1 root root 2989 Aug 15 2008 autoyast
    -rwxr-xr-x 1 root root 7486 Oct 15 11:56 boot
    -rwxr-xr-x 1 root root 2880 Dec 3 12:15 boot.apparmor
    -rwxr-xr-x 1 root root 1242 Dec 3 12:06 boot.blktrace
    -rwxr-xr-x 1 root root 2944 Nov 17 01:55 boot.cleanup
    -rwxr-xr-x 1 root root 3812 Nov 20 16:16 boot.clock
    -rwxr-xr-x 1 root root 2510 Dec 3 06:33 boot.crypto
    -rwxr-xr-x 1 root root 2410 Dec 3 06:33 boot.crypto-early
    -rwxr-xr-x 1 root root 2029 Dec 3 04:54 boot.cycle
    drwxr-xr-x 2 root root 4096 Mar 23 16:08 boot.d
    -rwxr--r-- 1 root root 819 Dec 9 19:20 boot.device-mapper
    -rwxr--r-- 1 root root 1417 Dec 3 05:59 boot.dmraid
    -rwxr-xr-x 1 root root 3453 Aug 11 2008 boot.ipconfig
    -rwxr-xr-x 1 root root 1781 Aug 11 2008 boot.klog
    -rwxr-xr-x 1 root root 1735 Jul 22 2008 boot.ldconfig
    -rwxr-xr-x 1 root root 1017 Jul 22 2008 boot.loadmodules
    -rwxr--r-- 1 root root 395 Dec 9 21:58 boot.local
    -rwxr-xr-x 1 root root 9303 Nov 17 13:17 boot.localfs
    -rwxr-xr-x 1 root root 1593 Aug 18 2008 boot.localnet
    -rwxr-xr-x 1 root root 1408 Dec 3 06:00 boot.lvm
    -rwxr-xr-x 1 root root 5726 Dec 3 06:17 boot.md
    -rwxr-xr-x 1 root root 3584 Dec 3 05:58 boot.multipath
    -rwxr-xr-x 1 root root 1615 Aug 8 2008 boot.proc
    -rwxr-xr-x 1 root root 4543 Dec 3 06:45 boot.quota
    -rwxr-xr-x 1 root root 5336 Nov 19 11:48 boot.rootfsck
    -rwxr-xr-x 1 root root 1972 Jul 22 2008 boot.sched
    -rwxr-xr-x 1 root root 1554 Dec 3 07:47 boot.scpm
    -rwxr-xr-x 1 root root 2947 Jul 22 2008 boot.swap
    -rwxr-xr-x 1 root root 1084 Dec 3 05:56 boot.sysctl
    -rwxr-xr-x 1 root root 2214 Dec 3 05:56 boot.udev
    -rwxr-xr-x 1 root root 817 Dec 3 05:56 boot.udev_retry
    -rwxr--r-- 1 root root 4363 Dec 3 06:49 cron
    -rwxr-xr-x 1 root root 4852 Dec 9 19:43 cups
    -rwxr-xr-x 1 root root 3162 Dec 9 19:36 dbus
    -rwxr-xr-- 1 root root 2171 Dec 3 05:13 earlysyslog
    -rwxr-xr-x 1 root root 2963 Dec 3 12:06 earlyxdm
    -rwxr-xr-x 1 root root 5402 Dec 3 05:02 fbset
    -rwxr-xr-x 1 root root 4310 Dec 9 19:24 gpm
    -rwxr-xr-x 1 root root 6421 Dec 7 20:49 haldaemon
    -rwxr-xr-x 1 root root 6266 Oct 15 11:49 halt
    -rwxr--r-- 1 root root 360 Dec 9 21:58 halt.local
    -rwxr-xr-x 1 root root 13041 Dec 3 05:56 kbd
    -rwxr-xr-x 1 root root 1596 Dec 4 07:13 kexec
    -rwxr-xr-x 1 root root 3962 Dec 3 06:17 mdadmd
    -rwxr-xr-x 1 root root 1210 Dec 3 05:10 microcode.ctl
    -rwxr-xr-x 1 root root 2801 Dec 3 05:58 multipathd
    -rwxr-xr-x 1 root root 29206 Dec 3 06:00 network
    -rwxr-xr-x 1 root root 2559 Dec 3 06:00 network-remotefs
    -rwxr--r-- 1 root root 7277 Dec 3 07:21 nfs
    -rwxr-xr-x 1 root root 3279 Dec 3 02:25 nscd
    -rwxr-xr-x 1 root root 6444 Dec 3 07:22 ntp
    -rwxr-xr-x 1 root root 2860 Dec 3 08:04 openct
    -rwxr-xr-x 1 root root 1588 Dec 3 07:58 pcscd
    -rwxr-xr-x 1 root root 1672 Dec 3 04:59 pm-profiler
    -rwxr-xr-x 1 root root 5402 Dec 3 08:12 postfix
    -rwxr--r-- 1 root root 1335 Dec 3 05:55 powerd
    -rwxr-xr-x 1 root root 2390 Sep 1 2003 powerfail
    -rwxr-xr-x 1 root root 1785 Oct 15 11:46 random
    -rwxr--r-- 1 root root 1264 Dec 3 06:47 raw
    -rwxr-xr-x 1 root root 9374 Oct 15 11:47 rc
    drwxr-xr-x 2 root root 4096 Dec 9 21:58 rc0.d
    drwxr-xr-x 2 root root 4096 Dec 9 21:59 rc1.d
    drwxr-xr-x 2 root root 4096 Mar 23 14:51 rc2.d
    drwxr-xr-x 2 root root 4096 Mar 23 15:13 rc3.d
    drwxr-xr-x 2 root root 4096 Mar 23 15:13 rc4.d
    drwxr-xr-x 2 root root 4096 Mar 23 15:13 rc5.d
    drwxr-xr-x 2 root root 4096 Dec 9 21:58 rc6.d
    drwxr-xr-x 2 root root 4096 Dec 9 21:59 rcS.d
    lrwxrwxrwx 1 root root 4 Mar 23 14:48 reboot -> halt
    -rwxr-xr-x 1 root root 3771 Dec 3 07:14 rpasswdd
    -rwxr-xr-x 1 root root 1793 Dec 3 06:18 rpcbind
    -rwxr-xr-x 1 root root 2492 Dec 3 01:41 rpmconfigcheck
    -rwxr-xr-x 1 root root 3874 Dec 3 12:01 rsyncd
    -rwxr-xr-x 1 root root 9645 Dec 3 05:02 setserial
    -rwxr-xr-x 1 root root 1431 Oct 15 11:52 single
    -rwxr-xr-x 1 root root 10645 Jul 23 2008 skeleton
    -rwxr-xr-x 1 root root 12744 Jul 23 2008 skeleton.compat
    -rwxr-xr-x 1 root root 15946 Dec 3 06:33 smartd
    -rwxr-xr-x 1 root root 3066 Dec 3 09:19 splash
    -rwxr-xr-x 1 root root 460 Dec 3 09:19 splash_early
    -rwxr-xr-x 1 root root 3878 Aug 21 2007 sshd
    -rwxr-xr-x 1 root root 1044 Dec 3 12:06 stopblktrace
    -rwxr-xr-- 1 root root 6035 Dec 3 05:13 syslog
    -rwxr--r-- 1 root root 1818 Dec 3 06:18 uuidd
    -rwxr-xr-x 1 root root 1037 Dec 3 12:06 waitfornm
    -rwxr-xr-x 1 root root 4323 Dec 3 06:18 xinetd
    -rwxr-xr-x 1 root root 5363 Dec 3 06:58 ypbind
    :~ #


    Sorry for the delay
     
    Last edited: Mar 31, 2009
  6. falko

    falko Super Moderator Howtoforge Staff

    /etc/init.d/named doesn't exist. Did you maybe accidentally delete it?
     
  7. londonman

    londonman New Member

    No, I have followed the examples.

    What do i do now - start all over again?
     
    Last edited: Mar 31, 2009
  8. londonman

    londonman New Member


    OK! got the message. Reinstall.

    I have started again an lo an behold things have progressed further for me. Yes.

    1. However have run into a few more issues at the telnet section :-
    # telnet 127.0.0.0
    Trying 127.0.0.0...
    telnet: connect to address 127.0.0.0: Connection refused

    continued with install

    2. I have now had to stop at Page 5 - 11 Apache = PHP 5
    first section ran ok.
    second section only the first command ran all the other 6 commands in this seq. returned the following:-

    # yast2 -i apache2 apache2-devel apache2-mod_perl apache2-mod_php5 apache2-prefork perl-HTML-Parser perl-HTML-Tagset perl-Tie-IxHash perl-URI perl-libwww-perl php5 php5-devel zlib zlib-devel
    # yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl
    # php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp
    -bash: php5-dbase: command not found
    # php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp
    -bash: php5-dbase: command not found
    # php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql
    -bash: php5-iconv: command not found
    # php5-ncurses php5-odbc php5-openssl php5-pcntl php5-pgsql
    -bash: php5-ncurses: command not found
    # php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite
    -bash: php5-posix: command not found
    # php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl
    -bash: php5-sysvsem: command not found
    # php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl
    -bash: php5-zlib: command not found
    #
    It looks bad yet again - such a straightforward install giving me a head bashing time.

    But we learn from our mistakes - any idea what i have missed this time?

    Dont think it wise going on any further,Ill wait a reply.
    Thanks
     
  9. deconectat

    deconectat New Member

    This should all be on the same line:
    yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-ncurses php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl
     
  10. falko

    falko Super Moderator Howtoforge Staff

    It's
    Code:
    telnet 127.0.0.1 25
    BTW, you can connect to the server with an SSH client such as PuTTY. With PuTTY, you can simply copy&paste all commands from the tutorial.
     
  11. londonman

    londonman New Member


    Many Thank for that - just did not see it.
     
  12. londonman

    londonman New Member

    Ok. Thanks.

    I have started again and been halted at the same place details are as follows:-
    # cd /etc/postfix/ssl
    :/etc/postfix/ssl # vi /etc/postfix/master.cf
    :/etc/postfix/ssl # /etc/init.d/postfix restart
    Shutting down mail service (Postfix) done
    Starting mail service (Postfix) done
    :/etc/postfix/ssl # telnet localhost 25
    Trying ::1...
    telnet: connect to address ::1: Connection refused
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
     
  13. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log?
     
  14. londonman

    londonman New Member

    Ok. continuing.
    Got this far not sure what has gone wrong.

    Starting SuSEconfig, the SuSE Configuration Tool...
    Running in full featured mode.
    Reading /etc/sysconfig and updating the system...
    Executing /sbin/conf.d/SuSEconfig.glib2...
    Executing /sbin/conf.d/SuSEconfig.groff...
    Executing /sbin/conf.d/SuSEconfig.permissions...
    Executing /sbin/conf.d/SuSEconfig.postfix...
    *** WARNING ***
    Found /etc/postfix/master.cf.SuSEconfig, exiting...
    *** WARNING ***
    Executing /sbin/conf.d/SuSEconfig.scpm...
    Finished.
     
  15. londonman

    londonman New Member

    I have done the following, this is the result

    # /var/log/mail
    -bash: /var/log/mail: Permission denied

    is this the wrong command? or have i set it up wrong thus far.
     
  16. falko

    falko Super Moderator Howtoforge Staff

    Use
    Code:
    vi /var/log/mail
    or
    Code:
    cat /var/log/mail
    To check the last 100 lines, you can use
    Code:
    tail -n100 /var/log/mail
     
  17. londonman

    londonman New Member

    Thanks for that

    I have ran the following commands and her are the results:-

    xxxxxx:~ # /var/log/mail
    -bash: /var/log/mail: Permission denied

    xxxxxx:~ # cat /var/log/mail
    Apr 2 21:55:54 linux postfix/postfix-script[3861]: fatal: the Postfix mail system is not running
    Apr 2 21:56:44 linux-9cln postfix/postfix-script[6092]: fatal: the Postfix mail system is not running
    Apr 2 21:57:01 linux-9cln postfix/postfix-script[6782]: fatal: the Postfix mail system is not running
    Apr 2 21:57:13 linux-9cln postfix/postfix-script[7156]: fatal: the Postfix mail system is not running
    Apr 2 21:57:17 linux-9cln postfix/postfix-script[7409]: fatal: the Postfix mail system is not running
    Apr 2 21:57:30 linux-9cln postfix/postfix-script[9439]: starting the Postfix mail system
    Apr 2 21:57:30 linux-9cln postfix/master[9440]: daemon started -- version 2.5.5, configuration /etc/postfix
    Apr 2 23:12:47 linux-9cln postfix/postfix-script[26238]: refreshing the Postfix mail system
    Apr 2 23:12:47 linux-9cln postfix/master[9440]: reload configuration /etc/postfix
    Apr 2 23:12:59 linux-9cln postfix/postfix-script[27757]: refreshing the Postfix mail system
    Apr 2 23:12:59 linux-9cln postfix/master[9440]: reload configuration /etc/postfix
    Apr 2 23:14:50 linux-9cln postfix/postfix-script[28090]: refreshing the Postfix mail system
    Apr 2 23:14:50 linux-9cln postfix/master[9440]: reload configuration /etc/postfix
    Apr 2 23:15:00 linux-9cln postfix/postfix-script[29385]: refreshing the Postfix mail system
    Apr 2 23:15:00 linux-9cln postfix/master[9440]: reload configuration /etc/postfix
    Apr 2 23:21:30 linux-9cln postfix/master[9440]: terminating on signal 15
    Apr 2 23:24:00 xxxxxx postfix/postfix-script[2950]: starting the Postfix mail system
    Apr 2 23:24:01 xxxxxx postfix/master[2951]: daemon started -- version 2.5.5, configuration /etc/postfix
    Apr 2 23:59:47 xxxxxx postfix/postfix-script[3649]: refreshing the Postfix mail system
    Apr 2 23:59:47 xxxxxx postfix/master[2951]: reload configuration /etc/postfix
    Apr 3 00:01:05 xxxxxx postfix/postfix-script[3961]: refreshing the Postfix mail system
    Apr 3 00:01:05 xxxxxx postfix/master[2951]: reload configuration /etc/postfix
    Apr 3 00:19:13 xxxxxx postfix/postfix-script[4315]: refreshing the Postfix mail system
    Apr 3 00:19:13 xxxxxx postfix/master[2951]: reload configuration /etc/postfix
    Apr 3 00:24:04 xxxxxx postfix/postfix-script[4677]: refreshing the Postfix mail system
    Apr 3 00:24:04 xxxxxx postfix/master[2951]: reload configuration /etc/postfix
    Apr 3 00:31:02 xxxxxx postfix/postfix-script[5228]: refreshing the Postfix mail system
    Apr 3 00:31:02 xxxxxx postfix/master[2951]: reload configuration /etc/postfix
    Apr 3 00:31:30 xxxxxx postfix/postfix-script[5457]: refreshing the Postfix mail system
    Apr 3 00:31:30 xxxxxx postfix/master[2951]: reload configuration /etc/postfix
    Apr 3 02:50:21 xxxxxx postfix/master[2951]: terminating on signal 15
    Apr 3 02:50:22 xxxxxx postfix/postfix-script[5878]: starting the Postfix mail system
    Apr 3 02:50:22 xxxxxx postfix/master[5879]: fatal: /etc/postfix/master.cf: line 23: missing "transport type" field
    Apr 3 01:51:23 xxxxxx postfix/postqueue[6014]: fatal: Cannot flush mail queue - mail system is down
    Apr 3 03:21:47 xxxxxx postfix/postfix-script[6139]: starting the Postfix mail system
    Apr 3 03:21:47 xxxxxx postfix/master[6140]: fatal: /etc/postfix/master.cf: line 23: missing "transport type" field
    Apr 3 02:22:48 xxxxxx postfix/postqueue[6275]: fatal: Cannot flush mail queue - mail system is down
    Apr 3 11:35:25 xxxxxx postfix/postfix-script[3111]: starting the Postfix mail system
    Apr 3 11:35:25 xxxxxx postfix/master[3112]: fatal: /etc/postfix/master.cf: line 23: missing "transport type" field
    Apr 3 10:36:27 xxxxxx postfix/postqueue[3322]: fatal: Cannot flush mail queue - mail system is down
    Apr 3 11:57:56 xxxxxx postfix/postfix-script[3664]: fatal: the Postfix mail system is not running
    Apr 3 12:00:05 xxxxxx authdaemond: modules="authuserdb authpam authpgsql authldap authmysql authcustom authpipe", daemons=5
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthuserdb
    Apr 3 12:00:05 xxxxxx authdaemond: file not found
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthpam
    Apr 3 12:00:05 xxxxxx authdaemond: Installation complete: authpam
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthpgsql
    Apr 3 12:00:05 xxxxxx authdaemond: file not found
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthldap
    Apr 3 12:00:05 xxxxxx authdaemond: file not found
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthmysql
    Apr 3 12:00:05 xxxxxx authdaemond: file not found
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthcustom
    Apr 3 12:00:05 xxxxxx authdaemond: Installation complete: authcustom
    Apr 3 12:00:05 xxxxxx authdaemond: Installing libauthpipe
    Apr 3 12:00:05 xxxxxx authdaemond: file not found
    Apr 4 01:35:11 xxxxxx authdaemond: stopping authdaemond children
    Apr 4 15:38:11 xxxxxx authdaemond: modules="authuserdb authpam authpgsql authldap authmysql authcustom authpipe", daemons=5
    Apr 4 15:38:11 xxxxxx authdaemond: Installing libauthuserdb
    Apr 4 15:38:11 xxxxxx authdaemond: file not found
    Apr 4 15:38:11 xxxxxx authdaemond: Installing libauthpam
    Apr 4 15:38:12 xxxxxx authdaemond: Installation complete: authpam
    Apr 4 15:38:12 xxxxxx authdaemond: Installing libauthpgsql
    Apr 4 15:38:12 xxxxxx authdaemond: file not found
    Apr 4 15:38:12 xxxxxx authdaemond: Installing libauthldap
    Apr 4 15:38:12 xxxxxx authdaemond: file not found
    Apr 4 15:38:12 xxxxxx authdaemond: Installing libauthmysql
    Apr 4 15:38:12 xxxxxx authdaemond: file not found
    Apr 4 15:38:12 xxxxxx authdaemond: Installing libauthcustom
    Apr 4 15:38:12 xxxxxx authdaemond: Installation complete: authcustom
    Apr 4 15:38:12 xxxxxx authdaemond: Installing libauthpipe
    Apr 4 15:38:12 xxxxxx authdaemond: file not found
    Apr 4 15:38:22 xxxxxx postfix/postfix-script[3344]: starting the Postfix mail system
    Apr 4 15:38:23 xxxxxx postfix/master[3345]: fatal: /etc/postfix/master.cf: line 23: missing "transport type" field
    Apr 4 14:39:23 xxxxxx postfix/postqueue[3557]: fatal: Cannot flush mail queue - mail system is down

    Then i ran the following:-

    xxxxxx:~ # /etc/init.d/postfix restart
    Shutting down mail service (Postfix) done
    Starting mail service (Postfix)

    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused

    Sorry still no joy
     
  18. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/postfix/master.cf?
     
  19. londonman

    londonman New Member

    I have ran the following commands results below:-

    xxxxxx:~ # /etc/postfix/master.cf
    -bash: /etc/postfix/master.cf: Permission denied

    xxxxxx:/etc/postfix # ls
    access main.cf post-install ssl
    access.db main.cf.default relay_ccerts TLS_LICENSE
    bounce.cf.default main.cf.SuSEconfig relay_ccerts.db transport
    canonical makedefs.out relocated transport.db
    canonical.db master.cf relocated.db virtual
    dynamicmaps.cf master.cf.SuSEconfig sasl_passwd virtual.db
    generic openssl_postfix.conf.in sasl_passwd.db
    header_checks postfix-files sender_canonical
    LICENSE postfix-script sender_canonical.db

    xxxxxx:/etc/postfix # cd /master.cf
    -bash: cd: /master.cf: No such file or directory

    xxxxxx:/etc/postfix # cat /master.cf
    cat: /master.cf: No such file or directory

    xxxxxx:/etc/postfix # tail -n100 /master.cf
    tail: cannot open `/master.cf' for reading: No such file or directory
     
  20. londonman

    londonman New Member

    Ok following my previous post i have rebooted the system and the following was displayed with errors, dos this help you any:-

    Starting name server BIND done
    Starting service MySQL done
    /etc/sysconfig/apache2: line 86: [...]: command not found
    /etc/sysconfig/apache2: line 115: [...]: command not found
    /etc/sysconfig/apache2: line 117: [...]: command not found
    /etc/sysconfig/apache2: line 86: [...]: command not found
    /etc/sysconfig/apache2: line 115: [...]: command not found
    /etc/sysconfig/apache2: line 117: [...]: command not found
    /etc/sysconfig/apache2: line 86: [...]: command not found
    /etc/sysconfig/apache2: line 115: [...]: command not found
    /etc/sysconfig/apache2: line 117: [...]: command not found
    Starting httpd2 (prefork) Syntax error on line 11 of /etc/apache2/mod_log_config.conf:
    Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration

    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL


    ok found a command that works and re ran your request - display as follows:-

    xxxxxx:/ # cat /etc/postfix/master.cf
    #
    # Postfix master process configuration file. For details on the format
    # of the file, see the Postfix master(5) manual page.
    #
    # ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    # ==========================================================================
    smtp inet n - n - - smtpd
    #submission inet n - n - - smtpd
    # -o smtpd_etrn_restrictions=reject
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
    # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
    #submission inet n - n - - smtpd
    # -o smtpd_etrn_restrictions=reject
    # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
    #628 inet n - n - - qmqpd
    pickup fifo n - n 60 1 pickup
    cleanup unix n - n - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - n 300 1 oqmgr
    [...]
    tlsmgr unix - - n 1000? 1 tlsmgr
    [...]
    rewrite unix - - n - - trivial-rewrite
    bounce unix - - n - 0 bounce
    defer unix - - n - 0 bounce
    trace unix - - n - 0 bounce
    verify unix - - n - 1 verify
    flush unix n - n 1000? 0 flush
    proxymap unix - - n - - proxymap
    smtp unix - - n - - smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay unix - - n - - smtp
    -o fallback_relay=
    # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - n - - showq
    error unix - - n - - error
    discard unix - - n - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - n - 1 anvil
    #localhost:10025 inet n - n - - smtpd -o content_filter=
    scache unix - - n - 1 scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent. See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    cyrus unix - n n - - pipe
    user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    uucp unix - n n - - pipe
    flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    ifmail unix - n n - - pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp unix - n n - - pipe
    flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    procmail unix - n n - - pipe
    flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
    retry unix - - n - - error
    proxywrite unix - - n - 1 proxyma

    thanks
     

Share This Page