簡單設定 exim4 以不同身份郵寄,不用 root

psad 要以 root 身份郵寄端口入侵通知,

但我的郵件服務器不能讓不同寄件者身份郵寄,

所以這博文

man exim4

改 /etc/mailname

mailserver.茶刹诧.com.tw

改 /etc/aliases

# /etc/aliases
mailer-daemon: postmaster
postmaster: root 
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: me

改 /etc/email-addresses

# This is /etc/email-addresses. It is part of the exim package
#
# This file contains email addresses to use for outgoing mail. Any local
# part not in here will be qualified by the system domain as normal.
#
# It should contain lines of the form:
#
#user: [email protected]
#otheruser: [email protected]

root: 小弟@叉插茶.com.tw
postmaster: 小弟@叉插茶.com.tw
me: 小弟@叉插茶.com.tw

重新啟動

/etc/init.d/exim4 restart

 

 

你可能感兴趣的:(linux,Debian,gnu,EXIM4,psad)