OpenIndiana sendmailの停止

2020年1月6日
OpenIndiana

 OpenIndiana Hipster 2019.10は、インストール直後からデフォルトでメールサーバーsendmailが起動している。特に利用していないので停止する。
 参考にしたのは、以下のページ。

このドキュメントは、Oracle Solaris 10 リリースが稼働しているシステムの管理者を対象としています。リモートファイルシステム、メール、SLP、PP…
docs.oracle.com

$ ps ax | grep sendmail
  1942 ?        S  0:00 /usr/lib/smtp/sendmail/sendmail -Ac -q15m
  2018 ?        S  0:00 /usr/lib/smtp/sendmail/sendmail -bl -q15m
  9116 pts/1    S  0:00 grep sendmail
$ sudo svcadm disable network/smtp:sendmail
$ ps ax | grep sendmail
  1942 ?        S  0:00 /usr/lib/smtp/sendmail/sendmail -Ac -q15m

 まだ、sendmailプロセスが残っているのでサービス設定リポジトリに記録されているサービスインスタンスに関する情報を表示させるsvcsコマンドでsendmailのサービスを確認する。

$ svcs -a
STATE          STIME    FMRI
legacy_run     15:52:54 lrc:/etc/rc2_d/S20sysetup
legacy_run     15:52:54 lrc:/etc/rc2_d/S47pppd
legacy_run     15:52:54 lrc:/etc/rc2_d/S89PRESERVE
disabled       15:52:50 svc:/system/device/mpxio-upgrade:default
disabled       15:52:50 svc:/system/svc/global:default
disabled       15:52:50 svc:/network/install:default
disabled       15:52:50 svc:/network/physical:default
disabled       15:52:50 svc:/system/install/config:default
disabled       15:52:50 svc:/network/ipsec/policy:default
disabled       15:52:50 svc:/network/ipsec/manual-key:default
disabled       15:52:50 svc:/network/ipsec/ike:default
disabled       15:52:50 svc:/network/dns/install:default
disabled       15:52:50 svc:/network/nis/client:default
disabled       15:52:50 svc:/network/ldap/client:default
disabled       15:52:50 svc:/network/nfs/status:default
disabled       15:52:50 svc:/network/nfs/nlockmgr:default
disabled       15:52:50 svc:/network/nfs/cbd:default
disabled       15:52:50 svc:/system/idmap:default
disabled       15:52:50 svc:/network/nfs/mapid:default
disabled       15:52:50 svc:/network/rpc/keyserv:default
disabled       15:52:50 svc:/network/inetd-upgrade:default
disabled       15:52:50 svc:/network/nfs/client:default
disabled       15:52:50 svc:/network/smb/client:default
disabled       15:52:50 svc:/system/auditd:default
disabled       15:52:51 svc:/system/vtdaemon:default
disabled       15:52:51 svc:/system/console-login:vt2
disabled       15:52:51 svc:/system/console-login:vt3
disabled       15:52:51 svc:/system/console-login:vt4
disabled       15:52:51 svc:/system/console-login:vt5
disabled       15:52:51 svc:/system/console-login:vt6
disabled       15:52:51 svc:/network/smb/server:default
disabled       15:52:51 svc:/system/filesystem/reparse:default
disabled       15:52:51 svc:/network/nfs/server:default
disabled       15:52:51 svc:/application/time-slider:default
disabled       15:52:51 svc:/application/time-slider/plugin:rsync
disabled       15:52:51 svc:/application/time-slider/plugin:zfs-send
disabled       15:52:51 svc:/application/security/tcsd:default
disabled       15:52:51 svc:/system/freeipmi/ipmiseld:default
disabled       15:52:51 svc:/network/ntp:default
disabled       15:52:51 svc:/application/pkg/server:default
disabled       15:52:51 svc:/application/pkg/system-repository:default
disabled       15:52:51 svc:/network/dns/multicast:default
disabled       15:52:51 svc:/application/pkg/dynamic-mirror:default
disabled       15:52:51 svc:/application/pkg/repositories-setup:default
disabled       15:52:51 svc:/application/pkg/mirror:default
disabled       15:52:51 svc:/application/pkg/zones-proxyd:default
disabled       15:52:51 svc:/application/management/net-snmp:default
disabled       15:52:51 svc:/system/freeipmi/ipmidetectd:default
disabled       15:52:51 svc:/network/routing/rdisc:default
disabled       15:52:51 svc:/network/routing/legacy-routing:ipv4
disabled       15:52:51 svc:/network/routing/legacy-routing:ipv6
disabled       15:52:51 svc:/network/ipv6-forwarding:default
disabled       15:52:51 svc:/network/routing/ripng:default
disabled       15:52:51 svc:/network/device-discovery/printers:snmp
disabled       15:52:51 svc:/network/ipqos:default
disabled       15:52:51 svc:/network/ipmievd:default
disabled       15:52:51 svc:/network/ibd-post-upgrade:default
disabled       15:52:52 svc:/network/proftpd:default
disabled       15:52:52 svc:/network/ldap/server:openldap_24
disabled       15:52:52 svc:/network/slp:default
disabled       15:52:52 svc:/network/rsyncd:default
disabled       15:52:52 svc:/network/ipv4-forwarding:default
disabled       15:52:52 svc:/network/socket-filter:kssl
disabled       15:52:52 svc:/network/security/krb5kdc:default
disabled       15:52:52 svc:/network/security/kadmin:default
disabled       15:52:52 svc:/network/http:apache24
disabled       15:52:52 svc:/network/nfs/log:default
disabled       15:52:52 svc:/system/filesystem/zfs/auto-snapshot:daily
disabled       15:52:52 svc:/system/filesystem/zfs/auto-snapshot:frequent
disabled       15:52:52 svc:/system/filesystem/zfs/auto-snapshot:hourly
disabled       15:52:52 svc:/platform/i86pc/acpihpd:default
disabled       15:52:52 svc:/system/filesystem/zfs/auto-snapshot:monthly
disabled       15:52:52 svc:/system/filesystem/zfs/auto-snapshot:weekly
disabled       15:52:52 svc:/system/consadm:default
disabled       15:52:52 svc:/system/device/allocate:default
disabled       15:52:52 svc:/system/pools:default
disabled       15:52:52 svc:/system/pools/dynamic:default
disabled       15:52:52 svc:/system/extended-accounting:process
disabled       15:52:53 svc:/system/fcoe_target:default
disabled       15:52:53 svc:/system/stmf:default
disabled       15:52:53 svc:/system/sar:default
disabled       15:52:53 svc:/system/extended-accounting:flow
disabled       15:52:53 svc:/system/extended-accounting:net
disabled       15:52:53 svc:/system/extended-accounting:task
disabled       15:52:53 svc:/system/avahi-bridge-dsd:default
disabled       15:52:53 svc:/system/fm/notify-params:default
disabled       15:52:53 svc:/system/process-security:default
disabled       15:52:53 svc:/system/hotplug:default
disabled       15:52:53 svc:/system/xvm/ipagent:default
disabled       15:52:54 svc:/network/rpc/rstat:default
disabled       15:52:54 svc:/application/x11/xvnc-inetd:default
disabled       15:52:54 svc:/application/cups/in-lpd:default
disabled       15:52:54 svc:/network/login:eklogin
disabled       15:52:54 svc:/network/login:klogin
disabled       15:52:54 svc:/network/login:rlogin
disabled       15:52:54 svc:/network/rexec:default
disabled       15:52:54 svc:/network/tftp/udp6:default
disabled       15:52:54 svc:/network/finger:default
disabled       15:52:54 svc:/network/shell:default
disabled       15:52:54 svc:/network/shell:kshell
disabled       15:52:54 svc:/network/comsat:default
disabled       15:52:54 svc:/network/rpc/spray:default
disabled       15:52:54 svc:/network/rpc/wall:default
disabled       15:52:54 svc:/network/rpc/rusers:default
disabled       15:52:54 svc:/network/talk:default
disabled       15:52:54 svc:/network/nfs/rquota:default
disabled       15:53:00 svc:/network/ipfilter:default
disabled       16:27:24 svc:/pkgsrc/dbus:default
disabled       16:27:37 svc:/pkgsrc/avahi:default
disabled       20:54:37 svc:/network/smtp:sendmail
online         15:52:48 svc:/system/svc/restarter:default
online         15:52:50 svc:/system/early-manifest-import:default
online         15:52:50 svc:/network/datalink-management:default
online         15:52:50 svc:/system/filesystem/root:default
online         15:52:50 svc:/system/scheduler:default
online         15:52:50 svc:/network/netcfg:default
online         15:52:50 svc:/network/ip-interface-management:default
online         15:52:50 svc:/system/boot-archive:default
online         15:52:50 svc:/system/cryptosvc:default
online         15:52:50 svc:/network/loopback:default
online         15:52:50 svc:/system/filesystem/usr:default
online         15:52:51 svc:/system/device/local:default
online         15:52:51 svc:/system/keymap:default
online         15:52:51 svc:/network/ipsec/ipsecalgs:default
online         15:52:51 svc:/system/filesystem/minimal:default
online         15:52:51 svc:/network/initial:default
online         15:52:51 svc:/system/identity:node
online         15:52:51 svc:/network/physical:nwam
online         15:52:51 svc:/system/power:default
online         15:52:51 svc:/system/sysevent:default
online         15:52:51 svc:/network/service:default
online         15:52:51 svc:/network/iptun:default
online         15:52:51 svc:/system/rmtmpfiles:default
online         15:52:51 svc:/system/rbac:default
online         15:52:51 svc:/network/npiv_config:default
online         15:52:51 svc:/network/iscsi/initiator:default
online         15:52:51 svc:/system/device/fc-fabric:default
online         15:52:51 svc:/milestone/devices:default
online         15:52:51 svc:/system/dbus:default
online         15:52:51 svc:/system/device/audio:default
online         15:52:51 svc:/application/opengl/ogl-select:default
online         15:52:51 svc:/application/font/fc-cache:default
online         15:52:51 svc:/application/desktop-cache/gio-module-cache:default
online         15:52:51 svc:/system/hal:default
online         15:52:51 svc:/network/netmask:default
online         15:52:52 svc:/milestone/single-user:default
online         15:52:52 svc:/application/print/service-selector:default
online         15:52:52 svc:/system/filesystem/local:default
online         15:52:52 svc:/system/cron:default
online         15:52:52 svc:/application/desktop-cache/dconf-update:default
online         15:52:52 svc:/network/shares/group:zfs
online         15:52:52 svc:/application/x11/x11-init:default
online         15:52:52 svc:/network/shares/group:default
online         15:52:52 svc:/application/desktop-cache/pixbuf-loaders-installer:default
online         15:52:52 svc:/system/consolekit:default
online         15:52:52 svc:/application/desktop-cache/input-method-cache:default
online         15:52:52 svc:/system/hostid:default
online         15:52:52 svc:/system/filesystem/rmvolmgr:default
online         15:52:52 svc:/system/boot-archive-update:default
online         15:52:52 svc:/system/pfexec:default
online         15:52:53 svc:/system/auditset:default
online         15:52:53 svc:/system/zones-monitoring:default
online         15:52:53 svc:/system/logadm-upgrade:default
online         15:52:53 svc:/system/pkgserv:default
online         15:52:53 svc:/system/ca-certificates:default
online         15:52:53 svc:/network/routing-setup:default
online         15:52:53 svc:/system/resource-mgmt:default
online         15:52:53 svc:/network/rpc/bind:default
online         15:52:53 svc:/system/sysding:system
online         15:52:53 svc:/milestone/sysconfig:default
online         15:52:53 svc:/system/upower:default
online         15:52:53 svc:/system/picl:default
online         15:52:53 svc:/network/routing/route:default
online         15:52:53 svc:/system/fcoe_initiator:default
online         15:52:53 svc:/system/utmp:default
online         15:52:53 svc:/network/inetd:default
online         15:52:53 svc:/application/desktop-cache/gconf-cache:default
online         15:52:53 svc:/system/sac:default
online         15:52:54 svc:/system/console-login:default
online         15:52:54 svc:/system/system-log:default
online         15:52:54 svc:/system/dumpadm:default
online         15:52:54 svc:/system/xvm/vnc-config:default
online         15:52:54 svc:/network/rpc/gss:default
online         15:52:54 svc:/network/rpc/smserver:default
online         15:52:54 svc:/network/security/ktkt_warn:default
online         15:52:54 svc:/network/ssh:default
online         15:52:54 svc:/milestone/multi-user:default
online         15:52:54 svc:/application/graphical-login/lightdm:default
online         15:52:54 svc:/system/intrd:default
online         15:52:54 svc:/system/boot-config:default
online         15:52:54 svc:/milestone/multi-user-server:default
online         15:52:54 svc:/system/zones:default
online         15:52:56 svc:/application/cups/scheduler:default
online         15:52:56 svc:/system/fmd:default
online         15:52:58 svc:/network/routing/ndp:default
online         15:52:59 svc:/network/location:default
online         15:52:59 svc:/network/dns/client:default
online         15:52:59 svc:/system/name-service-cache:default
online         15:52:59 svc:/system/identity:domain
online         15:52:59 svc:/milestone/name-services:default
online         15:52:59 svc:/system/filesystem/autofs:default
online         15:52:59 svc:/network/sendmail-client:default
online         15:52:59 svc:/system/update-man-index:default
online         15:53:00 svc:/milestone/network:default
online         16:21:31 svc:/system/coreadm:default
online         17:26:41 svc:/application/texinfo-update:default
online         17:26:43 svc:/application/desktop-cache/mime-types-cache:default
online         17:54:27 svc:/application/vlc-cache-gen:default
online         17:54:28 svc:/system/manifest-import:default
online         18:00:11 svc:/application/desktop-cache/desktop-mime-cache:default
online         18:00:12 svc:/application/desktop-cache/icon-cache:default

 残っているsendmailプロセスは、sendmail-client:defaultが起動したものなのでsvcadmコマンドで停止させる。

$ sudo  svcadm disable svc:/network/sendmail-client:default
$ ps ax | grep sendmail
  9138 pts/1    S  0:00 grep sendmail