Linux 15.004 Themen, 106.698 Beiträge

mailserver deaktivieren

ghartl1 / 14 Antworten / Flachansicht Nickles

hallo,

verwende slackware 11 als desktopsystem.

wie und wo kann ich den mailserver deaktivieren?

bei linux wird ja automatisch immer ein mailserver installiert.

da ich keinen server betreiben will, möchte ich diesen deaktivieren. interne mails werden ja e nicht über den mailserver geleitet...

hat da jemand eine idee?
wo sehe ich, was ich für einen mailserver habe
wie schalte ich ihn ab?

gruss günter

bei Antwort benachrichtigen
KarstenW ghartl1 „mailserver deaktivieren“
Optionen

Du mußt den Mailserver nur aus dem Runlevel entfernen.
Ich weiß nicht in welchen Verzeichnissen die Scripte und die Links auf diese Scripte bei Slackware stehen. Bei Debian stehen die Scripte für die Runlevel in den Verzeichnissen:

/etc/

drwxr-xr-x 2 root root 4096 2008-09-09 19:00 rc0.d
drwxr-xr-x 2 root root 4096 2008-09-04 09:32 rc1.d
drwxr-xr-x 2 root root 4096 2008-09-09 19:00 rc2.d
drwxr-xr-x 2 root root 4096 2008-09-09 19:00 rc3.d
drwxr-xr-x 2 root root 4096 2008-09-04 09:32 rc4.d
drwxr-xr-x 2 root root 4096 2008-09-09 19:00 rc5.d
drwxr-xr-x 2 root root 4096 2008-09-09 19:00 rc6.d
-rwxr-xr-x 1 root root 306 2007-09-15 16:20 rc.local
drwxr-xr-x 2 root root 4096 2008-07-27 11:43 rcS.d

Man kann Runlevel 2, 3, 4, 5 konfigurien und mit "init Nummer" den Runlevel wechseln. Das wurde alles von AT&T Unix System V übernommen.
Der Default Runlevel steht in der Datei /etc/inittab:

cat /etc/inittab

## /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

....
Wenn der Standard Runlevel 2 ist (wird in der Datei /etc/inittab festgelegt), dann gehst du in das Verzeichnis /etc/rc2.d rein und löscht den Link auf den Mailserver:

/etc/rc2.d# ls -l
insgesamt 4
lrwxrwxrwx 1 root root 18 2008-09-09 19:00 K08vmware -> /etc/init.d/vmware
-rw-r--r-- 1 root root 556 2008-05-19 18:28 README
lrwxrwxrwx 1 root root 18 2007-09-15 16:20 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root 15 2007-09-15 16:20 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root 17 2007-09-15 15:09 S18portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root 15 2008-02-10 09:02 S19hplip -> ../init.d/hplip
lrwxrwxrwx 1 root root 15 2007-09-15 16:22 S20acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 20 2008-03-29 08:40 S20bittorrent -> ../init.d/bittorrent
lrwxrwxrwx 1 root root 16 2007-09-16 15:50 S20cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root 14 2007-09-15 15:09 S20dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root 13 2007-09-15 14:31 S20gpm -> ../init.d/gpm
lrwxrwxrwx 1 root root 23 2007-09-15 15:34 S20hyperestraier -> ../init.d/hyperestraier
lrwxrwxrwx 1 root root 17 2007-09-15 16:19 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root 27 2008-09-04 09:32 S20nfs-kernel-server -> ../init.d/nfs-kernel-server
lrwxrwxrwx 1 root root 23 2007-09-15 16:20 S20openbsd-inetd -> ../init.d/openbsd-inetd
lrwxrwxrwx 1 root root 17 2007-09-15 15:34 S20postfix -> ../init.d/postfix
lrwxrwxrwx 1 root root 15 2007-09-17 12:51 S20rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root 13 2007-09-17 12:51 S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 18 2007-09-15 15:34 S20stunnel4 -> ../init.d/stunnel4
lrwxrwxrwx 1 root root 13 2007-09-16 14:43 S20xfs -> ../init.d/xfs
lrwxrwxrwx 1 root root 13 2007-09-15 15:09 S21fam -> ../init.d/fam
lrwxrwxrwx 1 root root 20 2007-09-16 15:31 S21nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root 17 2007-09-15 16:08 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 13 2008-01-21 18:46 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 2007-09-15 16:20 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root 24 2008-06-25 16:22 S90binfmt-support -> ../init.d/binfmt-support
lrwxrwxrwx 1 root root 18 2008-09-09 19:00 S90vmware -> /etc/init.d/vmware
lrwxrwxrwx 1 root root 13 2007-09-15 15:10 S99kdm -> ../init.d/kdm
lrwxrwxrwx 1 root root 18 2007-09-15 16:20 S99rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root 19 2007-09-15 16:20 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 23 2007-09-15 16:20 S99stop-bootlogd -> ../init.d/stop-bootlogd

Ich lasse hier im Hintergrund Postfix laufen. Es kann auch sein das bei Slackware Exim verwendet wird.
Bei Debian werden die Runlevel mit dem Programm

update-rc.d (8) - install and remove System-V style init script links


konfiguriert. Aber man kann notfalls auch den symbolischen Link einfach löschen.



Debian GNU/Linux https://www.debian.org/index.de.html
bei Antwort benachrichtigen