SMTP tcp 25 POP3 tcp 110 IMAP4 tcp 143 MIME
MUA:Mail User Agent outlook mutt
MTA:Mail Transfer Agent (Sendmail-->Postfix, Exim -->MDA:Mail Delivery Agent MAA:Mail Access Agent MTA
SMTPSASL:Simple Authentication Secure Layer
S/MIME POP3S
mail -v jing
echo "how are you" | mail -s "helo" jing
telnet ip 25 (telnet 192.168.0.73 25)
HELO MAIL FROM: jing@station73.example.com
RCPT TO: king@station154.example.com
DATA Subject From To how are you
. QUIT tail /var/log/maillog
mail
m4
/etc/mail/access
---->procmail: sendmailsendmail vim /etc/mail/sendmail.mc
DAEMON_OPTIONS 0.0.0.0
service sendmail restart
sendmail vim /etc/mail/access
Connect:192.168.0 RELAY service sendmail restart
sendmail vim /etc/mail/loacl-host-names example.com 126.com
vim /etc/aliases
terra: jing moket jing, king, kk
newaliases service sendmail restart
windows telnet 192.168.0.124 25
helo
mail from
rept to
outlook
imap4 pops imaps
protocols = imap pop3 service dovecot start
netstat -ntlp | grep 110
telnet 192.168.0.124 110
USER terra
PASS 123456
LIST RETR 2
mutt -f pop://terra@station124.example.com
-f
vim /etc/mail/sendmail.mc
MASSQUERADE_AS(`example.com')dnl FEATURE(masquerade_envelope)dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_entiredomain)dnl
service sendmail restart
192.168.0.0.182 a.com
192.168.0.181 192.168.1.183 yum install bind caching-nameserver
vim /etc/named.conf
zone "a.com" IN {
type master;
file "a.com.zone";
};
zone "0.168.192.in-addr,arpa" {
type master;
file "192.168.0.zone";
};
zone "b.com" { type flowerd;
forwarders { 192.168.1.183; };
};
vim /var/named/a.com.zone
IN NS ns
IN MX mail
ns IN A 192.168.0.182
mail IN A 192.168.0.182
vim /var/named/192.168.0.zone
IN NS ns.a.com
182 IN PTR ns.a.com.
182 IN PTR mail.a.com
chown :named /etc/named.conf /var/named/a.com.zone 192.168.0.zone
service named configtest
service named start
chkconfig named on
hostname mail.a.com
vim /etc/hosts
192.168.0.182 mail.a.com mail
vim /etc/resolv.conf
nameserver 192.168.0.182
dig -t MX a.com
dig -x 192.168.0.182
vim /etc/mail/sendmail.cf
0.0.0.0
vim /etc/mail/localhost
mail.a.com
a.com
vim /etc/mail/access
Connect:192.168.0 RELAY
service sendmail restart
vim /etc/resolv.conf
namesever 192.168.0.182
telnet mail.a.com 25
1 2 stat sendmail.cf
stat sendmail.mc
转载于:https://blog.51cto.com/caogenyingxiong/524920