Skip to content

Commit 5492da2

Browse files
committed
Centos guide to be on par with official guide
1 parent 5066e95 commit 5492da2

File tree

3 files changed

+277
-254
lines changed

3 files changed

+277
-254
lines changed

e-mail/configure_email.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Centos - Sendmail
2+
3+
su -
4+
yum -y install sendmail-cf
5+
cd /etc/mail
6+
vim /etc/mail/sendmail.mc
7+
8+
Add a line with the smtp gateway hostname
9+
10+
define(`SMART_HOST', `smtp.example.com')dnl
11+
12+
Then replace this line:
13+
14+
EXPOSED_USER(`root')dnl
15+
16+
with:
17+
18+
dnl EXPOSED_USER(`root')dnl
19+
20+
Now enable these settings with:
21+
22+
make
23+
chkconfig sendmail on
24+
25+
### Forwarding all emails
26+
27+
Now we want all logging of the system to be forwarded to a central email address:
28+
29+
su -
30+
echo [email protected] > /root/.forward
31+
chown root /root/.forward
32+
chmod 600 /root/.forward
33+
restorecon /root/.forward
34+
35+
echo [email protected] > /home/git/.forward
36+
chown git /home/git/.forward
37+
chmod 600 /home/git/.forward
38+
restorecon /home/git/.forward

0 commit comments

Comments
 (0)