java中的接口是类吗
318
2022-10-28
yum install bind -y vim /etc/name.confoptions {// listen-on port 53 { 127.0.0.1; };// listen-on-v6 port 53 { ::1; };// allow-query { localhost; };vim /etc/named.rfc1912.zoneszone "timo.com" IN { type master; file "timo.com.zone"; allow-update { none; };};zone "rito.com" IN { type master; file "rito.com.zone"; allow-update { none; };};cp -p name.localhost timo.com.zonecp -p name.localhost rito.com.zonevim timo.com.zone$TTL 1D@ IN SOA dns.timo.com. root.timo.com. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum NS dns.timo.com.dns A 172.25.254.124timo.com. MX 1 172.25.254.124.~ vim rito.com.zone$TTL 1D@ IN SOA dns.rito.com. root.rito.com. ( 0 ; serial 1D ; refresh$TTL 1D@ IN SOA dns.rito.com. root.rito.com. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum NS dns.rito.com.dns A 172.25.254.124rito.com. MX 1 172.25.254.224. 1H ; retry 1W ; expire 3H ) ; minimum NS dns.rito.com.dns A 172.25.254.124rito.com. MX 1 172.25.254.224.主机和客户端都改为DNS服务端的ipvim /etc/resolve.confnameserver 172.25.254.124dig -t MX timo.comdig -t MX rito.com主客都改,发送接受都改vim /etc/postfix/main.cf75 myhostname = mailtimo.timo.com#主机名83 mydomain = timo.com #域99 myorigin = $mydomain #邮件后缀域名113 inet_interfaces = all #开放所有端口116 #inet_interfaces = localhost #注释掉164 mydestination = $myhostname, $mydomain, localhost#本机能接受的邮件类型systemctl restart postfix.server发送不出去的两个原因:systemctl stop firewalld.service #关闭防火墙netstat -antlpe | grep 25 #查看端口是否开放mail root@rito.com#写邮件abcdef.EOTmail #查看邮件mail -u root #查看有关root的邮件mailq #查看排队邮件postsuper -d QUEUE-ID #删除排队的邮件postqueue -f #刷新postconf -d | grep * #查看默认设置postconf -e#设置postconf -n#查看当前设置邮件接受方vim /etc/aliases ## Person who should get root's mail#root: marctimo: root #timo是虚拟名,指代rootmore: :include:/etc/timo postalias /etc/aliasessystemctl restart postfix.service邮件发送方mail more@rito.com发送地址转换包装发送方vim /etc/postfix/generic root@timo.com 739944675@qq.com#前面是真实域名,后面为虚假域名postmap generic #文件加密postconf -d | grep generic查看设置postconf -e "smtp_generic_maps =hash:/etc/postfix/generic" #编辑设置systemctl restart postfix.service mail root@rito.com接收方[root@mailrito mail]# mailHeirloom Mail version 12.5 7/5/10. Type ? for help."/var/spool/mail/root": 4 messages 1 new 3 unread 1 root Sun Nov 27 01:55 23/728 "abc" U 2 root Sun Nov 27 03:08 23/727 "iop" U 3 root Sun Nov 27 03:10 26/851 "vbn">N 4 root Sun Nov 27 03:39 21/722 "fgh"& 4Message 4:From 739944675@qq.com Sun Nov 27 03:39:34 2016 ##发送方已改变Return-Path: <739944675@qq.com>X-Original-To: root@rito.comDelivered-To: root@rito.comDate: Sun, 27 Nov 2016 03:39:32 -0500To: root@rito.comSubject: fghUser-Agent: Heirloom mailx 12.5 7/5/10Content-Type: text/plain; charset=us-asciiFrom: 739944675@qq.com (root)Status: Rjkl& 远程发送[kiosk@foundation24 Desktop]$ telnet 172.25.254.124 25 #邮件连接 ip的25端口Trying 172.25.254.124...Connected to 172.25.254.124.Escape character is '^]'.220 mailtimo.timo.com ESMTP Postfixehlo hello #检测250-mailtimo.timo.com250-PIPELINING250-SIZE 10240000250-VRFY250-ETRN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSNmail from:root@timo.com250 2.1.0 Okrcpt to:root@rito.com250 2.1.5 Okdata354 End data with
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~