Thursday, February 7, 2013

Linux send email server setting

Ubuntu / Debian

With these flavors of Linux the commands are different. Try installing the sysv-rc-conf and sysvinit-utils DEB packages as they provide commands that simplify the process. (For help on downloading and installing the packages, see Chapter 6, Installing Linux Software). You can use the sysv-rc-conf command to get sendmail configured to start at boot:

user@ubuntu:~$ sudo sysv-rc-conf sendmail on
To start, stop, and restart sendmail after booting the service command is the same:

user@ubuntu:~$ sudo service sendmail start
user@ubuntu:~$ sudo service sendmail stop
user@ubuntu:~$ sudo service sendmail restart
To determine whether sendmail is running you can issue either of these two commands. The first will give a status message. The second will return the process ID numbers of the sendmail daemons.

user@ubuntu:~$ sudo service sendmail status
user@ubuntu:~$ pgrep sendmail

No comments:

Post a Comment