Professional Documents
Culture Documents
You will need to make sure that the sendmail, sendmail-cf, and m4 software RPMs are installed.
sendmail-8.12.10-1.1.1.i386.rpm.
#!/bin/bash
cd /etc/mail
make
newaliases
/etc/init.d/sendmail restart
It first runs the make command, which creates a new sendmail.cf file from the sendmail.mc file
and compiles supporting configuration files in the /etc/mail directory according to the
instructions in the file /etc/mail/Makefile. It then generates new e-mail aliases with the
newaliases command, (this will be covered later), and then restarts sendmail.
You'll need to run the script each time you change any of the sendmail configuration files
described in the sections to follow.
The line in the script that restarts sendmail is only needed if you have made changes to the
/etc/mail/sendmail.mc file, but I included it so that you don't forget. This may not be a good idea
in a production system.
Note: When sendmail starts, it reads the file sendmail.cf for its configuration. sendmail.mc is a
more user friendly configuration file and really is much easier to fool around with without
getting burned. The sendmail.cf file is located in different directories depending on the version of
RedHat you use. The /etc/sendmail.cf file is used for versions up to 7.3, and /etc/mail/sendmail.cf
is used for versions 8.0 and higher and Fedora Core.
In most Linux configuration files a # symbol is used at the beginning of a line convert it into a
comment line or to deactivate any commands that may reside on that line.
The sendmail.mc file doesn't use this character for commenting, but instead uses the string "dnl".
Here are some valid examples of comments used with the sendmail.mc configuration file:
# DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
This statement is active:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dovecot-0.99.11-1.FC3.4.i386.rpm.
You can use the chkconfig command to get dovecot configured to start at boot:
[root@bigboy tmp]# chkconfig dovecot on
#
# File /etc/dovecot.conf sample
#
2. You can then use the netstat command to do a simple preliminary test to make sure dovecot is
serving POP3 only.