Sendmail restart

Aus HS Syswiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
Zeile 29: Zeile 29:
 
  telnet localhost 25
 
  telnet localhost 25
  
 
+
tail -f /var/log/mail | grep Sent
  
 
[[Category:E-Mail‏‎]]
 
[[Category:E-Mail‏‎]]

Aktuelle Version vom 17. Juni 2014, 15:55 Uhr

[Bearbeiten] Beispiel Anhand von tux203:

tux203:~ # /etc/init.d/sendmail stop

Shutting down SMTP port done

tux203:~ # killall -9 sendmail

sendmail: no process killed

tux203:~ # killall -9 sendmail

sendmail: no process killed

tux203:~ # /etc/init.d/sendmail restart

Shutting down SMTP port done Initializing SMTP port (sendmail) done

tux203:~ # telnet localhost 25

Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 tux203.hoststar.ch ESMTP Sendmail 8.13.8/8.12.11; Mon, 21 May 2012 10:06:44 +0200


Damit Sendmail sauber neu gestartet wird müssen alle Sendmail Prozesse vorher beendet werden. Daher folgendes ausführen:

/etc/init.d/sendmail stop
/etc/init.d/sendmail stop
/etc/init.d/sendmail stop
killall -9 sendmail
killall -9 sendmail
killall -9 sendmail      
/etc/init.d/sendmail restart
telnet localhost 25
tail -f /var/log/mail | grep Sent
Meine Werkzeuge
Namensräume

Varianten
Aktionen
Navigation
Werkzeuge