Sendmail Server

Posted: August 7, 2013 in Uncategorized
  • SENDMAIL
  • Packages: sendmail, sendmail-cf, sendmail-doc
  • Daemon: /usr/sbin/sendmail
  • Script: /etc/init.d/sendmail
  • Port: 25 (smtp)
  • Configuration: /etc/mail/sendmail.mc, /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 senmail.mc file.
#cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.back

Now edit sendmail.mc file in vi editor:-
comment line no 116 i.e. DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, 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 sendmail.mc > sendmail.cf
# service sendmail restart
#chkconfig sendmail on
#rpm -q dovecot
#service dovecot restart
#chkconfig dovecot on
Advertisements

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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