Sendmail Server

Posted: August 7, 2013 in Uncategorized
  • Packages: sendmail, sendmail-cf, sendmail-doc
  • Daemon: /usr/sbin/sendmail
  • Script: /etc/init.d/sendmail
  • Port: 25 (smtp)
  • Configuration: /etc/mail/, /etc/aliases, and others
  • Related: procmail (MDA), spamassassin, tcp_wrappers, sendmail-doc

configuration of sendmail in redhat linux.
check for required package installation.
# rpm -q sendmail  sendmail-cf  sendmail-doc m4
use package updater ( yum in redhat linux ) for installtion of the required packages.
#yum install sendmail sendmail-cf sendmail-doc m4
Take the backup of your file.
#cp /etc/mail/ /etc/mail/

Now edit file in vi editor:-
comment line no 116 i.e. DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA’)dnl
add dnl # before this line
Now give the localhost as your hostname and localdomain as your domain name of the organisation.
Save and exit the file.
Now create cf file using this mc file, since handediting of cf file is not recommended.
#m4 >
# service sendmail restart
#chkconfig sendmail on
#rpm -q dovecot
#service dovecot restart
#chkconfig dovecot on

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s