• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux OS Service ‘sendmail’

by admin

Service Name

sendmail

Description

This executes Mail Server Daemon which runs as a daemon in the background, listening for incoming mail from other machines. Sendmail can handle both incoming and outgoing mail. Sendmail eliminates some of the confusion caused by multiple mail delivery programs. It does this by routing mail for the user to the proper delivery program based on the email address. It accepts mail from a user’s mail program, interprets the mail address, rewrites the address into the proper form for the delivery program, and routes the mail to the correct delivery program. Sendmail insulates the end user from these details. If the mail is properly addressed, sendmail will see that it is properly passed on for delivery. Likewise, for incoming mail, sendmail interprets the address and either delivers the mail to a user’s mail program or forwards it to another system.

Service Control

To manage the sendmail service for future shutdowns and reboots, use the chkconfig service:

# chkconfig sendmail on
# chkconfig --list sendmail
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off

To control the sendmail service immediately, use the service command or the init scripts:

# /etc/init.d/sendmail
Usage: /etc/init.d/sendmail {start|stop|restart|condrestart|status}

Example command usage is shown below:
Start this daemon:

# service sendmail start

Stop this daemon:

# service sendmail stop

Filed Under: Linux, Linux Services

Some more articles you might also be interested in …

  1. Basic Commands to Troubleshoot Performance Issues in Linux
  2. tar Command Examples in Linux
  3. dolphin Command Examples in Linux
  4. How to add Source, Services and Ports to Firewall Zone in CentOS/RHEL 7 and 8
  5. How to Create/Format/Extend Virtual Data Optimizer(VDO) Volumes using Cockpit Web Console in CentOS/RHEL 8
  6. lvdisplay Command Examples in Linux
  7. How to use ‘yum’ to connect ULN on CentOS/RHEL/OEL 6
  8. CentOS / RHEL 7 : How to set udev rules for ASM on multipath disks
  9. lcov: command not found
  10. How to Transfer files securely using SCP Command in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright