{"id":298,"date":"2014-12-21T00:28:55","date_gmt":"2014-12-20T15:28:55","guid":{"rendered":"http:\/\/yokensaka.com\/centos\/?p=298"},"modified":"2015-01-04T20:42:45","modified_gmt":"2015-01-04T11:42:45","slug":"centos7-smtp%e3%82%b5%e3%83%bc%e3%83%90%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/centos\/?p=298","title":{"rendered":"CentOS 7 postfix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u25a0Postfix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>[root@server1 ~]# yum -y install postfix\r\n\u8aad\u307f\u8fbc\u3093\u3060\u30d7\u30e9\u30b0\u30a4\u30f3:fastestmirror, langpacks, priorities\r\nLoading mirror speeds from cached hostfile\r\n * base: ftp.riken.jp\r\n * centosplus: mirrors.btte.net\r\n * epel: ftp.kddilabs.jp\r\n * extras: ftp.riken.jp\r\n * rpmforge: ftp.kddilabs.jp\r\n * updates: mirrors.btte.net\r\n45 packages excluded due to repository priority protections\r\n\u30d1\u30c3\u30b1\u30fc\u30b8 2:postfix-2.10.1-6.el7.x86_64 \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u304b\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\r\n\u4f55\u3082\u3057\u307e\u305b\u3093<\/pre>\n<p>\u25a0Postfix\u306e\u8a2d\u5b9a<br \/>\nPostfix\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u306f\u3001\/etc\/postfix\/main.cf\u3067\u884c\u3046<\/p>\n<pre>[root@server1 ~]# vi \/etc\/postfix\/main.cf\r\n# The myhostname parameter specifies the internet hostname of this\r\n# mail system. The default is to use the fully-qualified domain name\r\n# from gethostname(). $myhostname is used as a default value for many\r\n# other configuration parameters.\r\n#\r\n#myhostname = host.domain.tld\r\n\u2193\r\nmyhostname = server1.yokensaka.com\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u3092\u8a2d\u5b9a\r\n#myhostname = virtual.domain.tld\r\n# The mydomain parameter specifies the local internet domain name.\r\n# The default is to use $myhostname minus the first component.\r\n# $mydomain is used as a default value for many other configuration\r\n# parameters.\r\n#\r\n#mydomain = domain.tld\r\n\u2193\r\nmydomain = yokensaka.com\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8a2d\u5b9a\r\n# For the sake of consistency between sender and recipient addresses,\r\n# myorigin also specifies the default domain name that is appended\r\n# to recipient addresses that have no @domain part.\r\n#\r\n#myorigin = $myhostname\r\n#myorigin = $mydomain\r\n\u2193\r\nmyorigin = $mydomain\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\r\n\u3000\u3000\u3000\u3000\u3000\u3000\uff08\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u300c@\u300d\u4ee5\u4e0b\u306b\u4ed8\u52a0\u3059\u308b\u6587\u5b57\u5217\u3092\u6307\u5b9a)\r\n# See also the proxy_interfaces parameter, for network addresses that\r\n# are forwarded to us via a proxy or network address translator.\r\n#\r\n# Note: you need to stop\/start Postfix when this parameter changes.\r\n#\r\n\u30e1\u30fc\u30eb\u306e\u53d7\u4fe1\u3092\u8a31\u53ef\u3059\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u8a2d\u5b9a\r\n#inet_interfaces = all\r\n\u2193\u3000#\u3092\u5916\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\uff08\u81ea\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30e1\u30fc\u30eb\u3060\u3051\u3092\u53d7\u4fe1\u3059\u308b\u5834\u5408\u306f\u8a2d\u5b9a\u3057\u306a\u3044\uff09\r\ninet_interfaces = all\r\n#inet_interfaces = $myhostname\r\n#inet_interfaces = $myhostname, localhost\r\ninet_interfaces = localhost\r\n\u2193\u3000\u884c\u982d\u306b#\u3092\u8ffd\u52a0\uff08\u81ea\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30e1\u30fc\u30eb\u3060\u3051\u3092\u53d7\u4fe1\u3059\u308b\u5834\u5408\u306f\u8a2d\u5b9a\u3057\u306a\u3044\uff09\r\n#inet_interfaces = localhost\r\n# Specify a list of host or domain names, \/file\/name or type:table\r\n# patterns, separated by commas and\/or whitespace. A \/file\/name\r\n# pattern is replaced by its contents; a type:table is matched when\r\n# a name matches a lookup key (the right-hand side is ignored).\r\n# Continue long lines by starting the next line with whitespace.\r\n#\r\n# See also below, section \"REJECTING MAIL FOR UNKNOWN LOCAL USERS\".\r\n#\r\n\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u3092\u62d2\u5426\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\r\nmydestination = $myhostname, localhost.$mydomain, localhost\r\n\u2193\r\n#mydestination = $myhostname, localhost.$mydomain, localhost\u3000\u2190\u3000\u884c\u982d\u306b#\u3092\u8ffd\u52a0\r\n#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain\r\n\u2193\r\nmydestination = $myhostname, localhost.$mydomain, localhost, $mydomain\u3000\u2190\u3000#\u3092\u5916\u3059\r\n#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,\r\n#       mail.$mydomain, www.$mydomain, ftp.$mydomain\r\n# Specify \"mynetworks_style = host\" when Postfix should \"trust\"\r\n# only the local machine.\r\n#\r\n#mynetworks_style = class\r\n#mynetworks_style = subnet\r\n\u2193\r\nmynetworks_style = subnet\u3000\u2190\u3000#\u3092\u5916\u3059\r\n#mynetworks_style = host\r\n# You can also specify the absolute pathname of a pattern file instead\r\n# of listing the patterns here. Specify type:table for table-based lookups\r\n# (the value on the table right-hand side is not used).\r\n#\r\n\u5185\u90e8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c9\u30ec\u30b9\u3068\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\r\n#mynetworks = 168.100.189.0\/28, 127.0.0.0\/8\r\n\u2193\r\nmynetworks = 192.168.1.0\/24, 127.0.0.0\/8\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u66f8\u304d\u63db\u3048\u308b\r\n#mynetworks = $config_directory\/mynetworks\r\n#mynetworks = hash:\/etc\/postfix\/network_table\r\n# NOTE: Postfix will not automatically forward mail for domains that\r\n# list this system as their primary or backup MX host. See the\r\n# permit_mx_backup restriction description in postconf(5).\r\n#\r\n#relay_domains = $mydestination\r\n\u2193\r\nrelay_domains = $mydestination\u3000\u2190\u3000#\u3092\u5916\u3059\r\n# DELIVERY TO MAILBOX\r\n#\r\n# The home_mailbox parameter specifies the optional pathname of a\r\n# mailbox file relative to a user's home directory. The default\r\n# mailbox file is \/var\/spool\/mail\/user or \/var\/mail\/user.  Specify\r\n# \"Maildir\/\" for qmail-style delivery (the \/ is required).\r\n#\r\n#home_mailbox = Mailbox\r\n#home_mailbox = Maildir\/\r\n\u2193\r\nhome_mailbox = Maildir\/\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u683c\u7d0d\u5f62\u5f0f\u3092Maildir\u5f62\u5f0f\u306b\u3059\u308b\r\nSMTP Auth\u3092\u6709\u52b9\u306b\u3059\u308b\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u7d42\u884c\u307e\u3067\u79fb\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3002\r\nsmtpd_sasl_auth_enable = yes\r\nsmtpd_sasl_local_domain = $myhostname\r\nsmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination\r\n\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\uff11\u901a\u5f53\u305f\u308a\u306e\u30b5\u30a4\u30ba\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306710MByte\u3001\r\n\u53d7\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u5408\u8a08\u306e\u7dcf\u5bb9\u91cf\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306750MByte\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3002\r\n\u305d\u308c\u305e\u308c5\u500d\u306e50MByte\u3068250MByte\u306b\u5909\u66f4\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u3092\u6700\u7d42\u884c\u3078\u8ffd\u52a0\u3002\r\nmessage_size_limit = 52428800\u3000\u2190\u30001024*1024*50=52428800\r\nmailbox_size_limit = 262144000\u3000\u2190\u30001024*1024*250=262144000\r\n\r\n\u5909\u66f4\u3092\u6709\u52b9\u306b\u3059\u308b\u70ba\u3001postfix\u3092\u518d\u8d77\u52d5\u3002\r\n[root@server1 ~]# systemctl restart postfix<\/pre>\n<p>\u25a0SMTP Auth\u8a2d\u5b9a<br \/>\nSMTP Auth\u3067\u306fCyrus SASL\u3068\u547c\u3070\u308c\u308b\u8a8d\u8a3c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3002 Postfix\u3067Cyrus SASL\u3092\u5229\u7528\u51fa\u6765\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<pre>[root@server1 ~]# vi \/etc\/sasl2\/smtpd.conf\r\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306b\u8ffd\u8a18\r\nmech_list: plain login cram-md5 digest-md5\r\n\r\nsaslauthd\u306e\u8d77\u52d5\r\n[root@server1 ~]# systemctl start saslauthd\r\n\r\nsaslauthd\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\r\n[root@server1 ~]# systemctl enable saslauthd\r\nln -s '\/usr\/lib\/systemd\/system\/saslauthd.service' '\/etc\/systemd\/system\/multi-user.target.wants\/saslauthd.service'<\/pre>\n<p>\u25a0root\u5b9b\u30e1\u30fc\u30eb\u3092\u4e00\u822c\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001<br \/>\n\u30b7\u30b9\u30c6\u30e0\u304b\u3089root\u5b9b\u306b\u9001\u3089\u308c\u3066\u304f\u308b\u30e1\u30fc\u30eb\u3092\u3001\u4e00\u822c\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre>\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u5b9b\u30e1\u30fc\u30eb\u306eroot\u5b9b\u8ee2\u9001\u8a2d\u5b9a\u3092\u89e3\u9664\r\n[root@server1 ~]# sed -i 's\/^webmaster\/#webmaster\/g' \/etc\/aliases\r\n\r\n\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u5b9b\u30e1\u30fc\u30eb\u306eroot\u5b9b\u8ee2\u9001\u8a2d\u5b9a\u89e3\u9664\u3092\u78ba\u8a8d\r\n[root@server1 ~]# grep ^webmaster \/etc\/aliases\u3000\u2190\u3000\u7d50\u679c\u304c\u306a\u306b\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\r\n\r\nroot\u5b9b\u30e1\u30fc\u30eb\u3092\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\r\n[root@server1 ~]# sed -i 's\/^root\/#root\/g' \/etc\/aliases\r\n\r\nroot\u5b9b\u30e1\u30fc\u30eb\u3092\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\r\n[root@server1 ~]# echo \"root: webmaster\" >> \/etc\/aliases\r\n\r\nroot\u5b9b\u30e1\u30fc\u30eb\u304c\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\uff08webmaster\uff09\u5b9b\u3078\u8ee2\u9001\u3055\u308c\u308b\u304b\u306e\u78ba\u8a8d\r\n[root@server1 ~]# grep ^root \/etc\/aliases\r\nroot: webmaster\u3000\u2190\u3000root\u5b9b\u30e1\u30fc\u30eb\u304c\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001\u3055\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\r\n\r\n\u8ee2\u9001\u5148\u3092\u53cd\u6620\u3055\u305b\u308b\r\n[root@server1 ~]# postalias \/etc\/aliases<\/pre>\n<p>\u25a0\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08webmaster\uff09\u306e\u4f5c\u6210<br \/>\nwebmaster\u3078\u30e1\u30fc\u30eb\u304c\u5c4a\u304f\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08webmaster\uff09\u306e\u4f5c\u6210\u304c\u5fc5\u8981\u3002<\/p>\n<pre>\u4e00\u822c\u30e6\u30fc\u30b6(webmaster)\u3092\u8ffd\u52a0\u3002\r\n[root@server1 ~]# useradd webmaster\r\n\r\n\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u305f\u3081\u306b\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\r\n[root@server1 ~]# passwd webmaster\r\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\uff08\u5165\u529b\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u8868\u793a\u3055\u308c\u306a\u3044\r\n\r\n\u30e6\u30fc\u30b6\u30fc webmaster \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3002\r\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9:\u3000\u2190\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\r\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044:\u3000\u2190\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\r\npasswd: \u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u304c\u6b63\u3057\u304f\u66f4\u65b0\u3067\u304d\u307e\u3057\u305f\u3002<\/pre>\n<p>\u25a0Postfix\u306e\u8d77\u52d5<\/p>\n<pre>[root@server1 ~]# systemctl start postfix<\/pre>\n<p>\u25a0Postfix\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/p>\n<pre>[root@server1 ~]# systemctl enable postfix<\/pre>\n<p>\u25a0sendmail\u30d1\u30b9\u306e\u78ba\u8a8d<br \/>\n\u63b2\u793a\u677f\u306a\u3069\u3067\u6295\u7a3f\u304c\u3042\u3063\u305f\u3089\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u6642\u306f CGI\u306esendmail\u30d1\u30b9\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u306a\u3044\u3068\u9001\u4fe1\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n<pre>\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067sendmail\u30d1\u30b9\u306e\u78ba\u8a8d\u3092\u3059\u308b\r\n[root@server1 ~]# su - higo\r\n\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: 2014\/07\/17 (\u6728) 21:48:02 JST 192.168.1.18\u304b\u3089\u958b\u59cb\u65e5\u6642 pts\/0\r\n\r\nsendmail\u30d1\u30b9\u306e\u78ba\u8a8d\r\n[higo@server1 ~]$ which sendmail\r\n\/usr\/sbin\/sendmail\r\n\r\n\u30eb\u30fc\u30c8\u306b\u306a\u308b\r\n[higo@server1 ~]$ su -\r\n\u30d1\u30b9\u30ef\u30fc\u30c9:\u3000\u2190\u3000\u30eb\u30fc\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\r\n\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: 2014\/07\/17 (\u6728) 21:48:31 JST\u65e5\u6642 pts\/0\r\n\r\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u3082sendmail\u30d1\u30b9\u304c\u307f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002\r\n[root@server1 ~]# ln -s \/usr\/sbin\/sendmail \/usr\/bin\/sendmail\r\n\r\n\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u308b\r\n[root@server1 ~]# su - higo\r\n\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: 2014\/07\/17 (\u6728) 22:44:12 JST\u65e5\u6642 pts\/0\r\n\r\nendmail\u30d1\u30b9\u306e\u78ba\u8a8d\r\n[higo@server1 ~]$ which sendmail\r\n\/bin\/sendmail<\/pre>\n<p>root\u5b9b\u306e\u30e1\u30fc\u30eb\u3092\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3078\u8ee2\u9001\u3057\u3066\u306a\u3044\u5834\u5408\u3001root\u306e\u30e1\u30fc\u30eb\u304c\u80a5\u5927\u5316\u3057\u3066\u3044\u304f\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3002\u305d\u3093\u306a\u6642\u306f\u624b\u52d5\u3067root\u5b9b\u306e\u30e1\u30fc\u30eb\u3092\u524a\u9664\u3059\u308b\u3002<\/p>\n<pre>\u30e1\u30fc\u30eb\u5bb9\u91cf\u3092\u78ba\u8a8d\r\n[root@server1 ~]# ls -la \/var\/spool\/mail\/\r\n\u5408\u8a08 288\r\ndrwxrwxr-x.  2 root      mail     54  7\u6708 17 22:06 .\r\ndrwxr-xr-x. 11 root      root   4096  7\u6708 14 23:47 ..\r\n-rw-rw----.  1 higo      mail      0  7\u6708 14 23:56 higo\r\n-rw-------.  1 root      mail 289357  7\u6708 17 06:12 root\r\n-rw-rw----.  1 rpc       mail      0  7\u6708 14 23:37 rpc\r\n-rw-rw----   1 webmaster mail      0  7\u6708 17 22:06 webmaster\r\n\r\nroot\u5b9b\u306e\u30e1\u30fc\u30eb\u3092\u524a\u9664\r\n[root@server1 ~]# cat \/dev\/null > \/var\/mail\/root\r\n\r\n\u518d\u5ea6\u30e1\u30fc\u30eb\u5bb9\u91cf\u3092\u78ba\u8a8d\r\n[root@server1 ~]# ls -la \/var\/spool\/mail\/\r\n\u5408\u8a08 4\r\ndrwxrwxr-x.  2 root      mail   54  7\u6708 17 22:06 .\r\ndrwxr-xr-x. 11 root      root 4096  7\u6708 14 23:47 ..\r\n-rw-rw----.  1 higo      mail    0  7\u6708 14 23:56 higo\r\n-rw-------.  1 root      mail    0  7\u6708 17 22:55 root\r\n-rw-rw----.  1 rpc       mail    0  7\u6708 14 23:37 rpc\r\n-rw-rw----   1 webmaster mail    0  7\u6708 17 22:06 webmaster\r\n\r\n\r\n\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u306e\u30ec\u30dd\u30fc\u30c8\u9001\u4fe1\u5148\u3092\u5909\u66f4\r\n[root@server1 ~]# vi \/etc\/aliases\r\n# Person who should get root's mail\r\n#root:          marc\r\nroot:           hoge@yokensaka.com\u3000\u2192\u3000\u8a2d\u5b9a\u3057\u305f\u3044\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3002\r\n\r\n\u5909\u66f4\u5185\u5bb9\u3092\u6709\u52b9\u5316\r\n[root@server1 ~]# newaliases\r\n\r\nnewaliases \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\/etc\/aliases.db \u304c\u66f4\u65b0\u3055\u308c\u3001\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3002\r\n[root@server1 ~]# ls -l \/etc\/aliases*\r\n-rw-r--r--  1 root root  1560  9\u6708 14 12:22 \/etc\/aliases\r\n-rw-r--r--. 1 root root 12288  9\u6708 14 19:08 \/etc\/aliases.db<\/pre>\n<p>\u203bSMTP\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3046\u306b\u306f\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u306a\u306e\u306725\u756a\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0Postfix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [root@server1 ~]# yum -y &hellip; <a href=\"http:\/\/yokensaka.com\/centos\/?p=298\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-smtppostfix"],"_links":{"self":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":4,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":448,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/448"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}