sendmail
sendmail:send mail
1.sh Build
2.配置
限制机器转送邮件的IP范围
|| /etc/mail/relay-domains (新建档)
example:
211.91.2 ->帮211.91.2.*送信
cnpeople.net ->帮*.cnpeople.net 送信
信件储存位置 /var/mail
信件退信位置 /var/spool/mqueue/
系统信件设定 /etc/aliases
example: vi /etc/aliases
root: zjs@cnpeople.net
MAILER-DAEMON:postmaster
postmaster:root
* 系统信件的转寄问题 最后全部转到root->zjs@cnpeople.net
启动:newaliases
3.sendmail 启动
/usr/sbin/sendmail -bd 30q
*表示每30分钟取一次信件
POP3
在 /usr/ports/mail/cucipop/
make install
make clean
启动: /usr/local/libexec/cucipop -YaSE 2M
可以在 /usr/local/etc/rc.d/下建立启动文件
########################
# filename: cucipop.sh
# sh script
########################
#!/bin/sh
/usr/local/libexec/cucipop -YaSE 2M
# end
chmod 700 cucipop.sh
使用 ./cucipop.sh 启动
用户添加
/usr/sbin/useradd username mail
passwd username
chsh username /bin/true
*[更新用户的shells]