{"id":73,"date":"2008-05-16T23:33:00","date_gmt":"2008-05-16T14:33:00","guid":{"rendered":"http:\/\/yokensaka.com\/fedora\/?p=73"},"modified":"2008-05-16T23:33:00","modified_gmt":"2008-05-16T14:33:00","slug":"smtp%e3%82%b5%e3%83%bc%e3%83%90postfix","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/fedora\/?p=73","title":{"rendered":"SMTP\u30b5\u30fc\u30d0(Postfix)"},"content":{"rendered":"<p><b>\u25a0\u3000FC2\uff5eFC6 \/ Fedora7 \/ Fedora8 \/ Fedora9<\/b><br \/>\n\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u30e1\u30fc\u30eb\u914d\u9001\u3092\u884c\u3046\u305f\u3081\u306eSMTP\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002 SMTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u4ee3\u8868\u7684\u306a\u3082\u306e\u306b\u306fPostfix\u3001sendmail\u3001qmail\u304c\u3042\u308a\u307e\u3059\u3002 Postfix\u306fsendmail\u3084qmail\u3088\u308a\u5f8c\u306b\u958b\u767a\u3055\u308c\u305f\u305f\u3081\u3001\u305d\u308c\u305e\u308c\u306e\u826f\u3044\u90e8\u5206\u3092\u53cd\u6620\u3057\u3066\u958b\u767a\u3055\u308c\u3066\u304a\u308a\u3001\u7c21\u5358\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306fsendmail\u3068\u306e\u4e92\u63db\u6027\u304c\u512a\u308c\u3066\u3044\u308bPostfix\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n<b>\u25a0sendmail\u3092\u505c\u6b62\u3059\u308b<\/b><br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bsendmail\u3092Postfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b\u505c\u6b62\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# \/etc\/rc.d\/init.d\/sendmail stop\nsendmail \u3092\u505c\u6b62\u4e2d:                                         [  OK  ]\nsm-client \u3092\u505c\u6b62\u4e2d:                                        [  OK  ]<\/pre>\n<p><b>\u25a0Postfix\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><\/p>\n<pre>[root@linux ~]# yum -y install postfix<\/pre>\n<p><b>\u25a0sendmail\u74b0\u5883\u304b\u3089Postfix\u74b0\u5883\u3078\u79fb\u884c\u3059\u308b<\/b><br \/>\nFedora core\u3067\u306f\u3001\u5229\u7528\u3059\u308bMTA\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u9078\u629e\u306balternatives\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001\u3053\u306ealternatives\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u7c21\u5358\u306bsendmail\u74b0\u5883\u304b\u3089Postfix\u74b0\u5883\u3078\u79fb\u884c\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# alternatives --config mta\n2 \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a 'mta' \u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\n\u9078\u629e       \u30b3\u30de\u30f3\u30c9\n-----------------------------------------------\n*+ 1           \/usr\/sbin\/sendmail.sendmail\n2           \/usr\/sbin\/sendmail.postfix\nEnter \u3092\u62bc\u3057\u3066\u73fe\u5728\u306e\u9078\u629e [+] \u3092\u4fdd\u6301\u3059\u308b\u304b\u3001\u9078\u629e\u756a\u53f7\u3092\u5165\u529b\u3057\u307e\u3059:2\npostfix\u3092\u4f7f\u3046\u306e\u3067\u9078\u629e\u756a\u53f7[2]\u3092\u5165\u529b\u3057\u307e\u3059<\/pre>\n<p><b>\u25a0Postfix\u306e\u8a2d\u5b9a<\/b><br \/>\nPostfix\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u306f\u3001\/etc\/postfix\/main.cf\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# vi \/etc\/postfix\/main.cf\u3000\u2190\u3000vi\u30a8\u30c7\u30a3\u30bf\u3067main.cf\u3092\u958b\u304d\u307e\u3059\n# The myhostname parameter specifies the internet hostname of this\n# mail system. The default is to use the fully-qualified domain name\n# from gethostname(). $myhostname is used as a default value for many\n# other configuration parameters.\n#\n#myhostname = host.domain.tld\n\u2193\nmyhostname = linux.yokensaka.com\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\n#myhostname = virtual.domain.tld\n# The mydomain parameter specifies the local internet domain name.\n# The default is to use $myhostname minus the first component.\n# $mydomain is used as a default value for many other configuration\n# parameters.\n#\n#mydomain = domain.tld\n\u2193\nmydomain = yokensaka.com\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\n# For the sake of consistency between sender and recipient addresses,\n# myorigin also specifies the default domain name that is appended\n# to recipient addresses that have no @domain part.\n#\n#myorigin = $myhostname\n#myorigin = $mydomain\n\u2193\nmyorigin = $mydomain\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\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\u3057\u307e\u3059)\n# See also the proxy_interfaces parameter, for network addresses that\n# are forwarded to us via a proxy or network address translator.\n#\n# Note: you need to stop\/start Postfix when this parameter changes.\n#\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\u3057\u307e\u3059\n#inet_interfaces = all\n\u2193\ninet_interfaces = all\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\n#inet_interfaces = $myhostname\n#inet_interfaces = $myhostname, localhost\ninet_interfaces = localhost\n\u2193\n#inet_interfaces = localhost\u3000\u2190\u3000\u884c\u982d\u306b#\u3092\u8ffd\u52a0\u3057\u307e\u3059\n# Specify a list of host or domain names, \/file\/name or type:table\n# patterns, separated by commas and\/or whitespace. A \/file\/name\n# pattern is replaced by its contents; a type:table is matched when\n# a name matches a lookup key (the right-hand side is ignored).\n# Continue long lines by starting the next line with whitespace.\n#\n# See also below, section \"REJECTING MAIL FOR UNKNOWN LOCAL USERS\".\n#\n\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u3092\u62d2\u5426\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u3057\u307e\u3059\nmydestination = $myhostname, localhost.$mydomain, localhost\n\u2193\n#mydestination = $myhostname, localhost.$mydomain, localhost\u3000\u2190\u3000\u884c\u982d\u306b#\u3092\u8ffd\u52a0\u3057\u307e\u3059\n#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain\n\u2193\nmydestination = $myhostname, localhost.$mydomain, localhost, $mydomain\u3000\u2190\u3000#\u3092\u5916\u3057\u307e\u3059\n#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,\n#       mail.$mydomain, www.$mydomain, ftp.$mydomain\n# Specify \"mynetworks_style = host\" when Postfix should \"trust\"\n# only the local machine.\n#\n#mynetworks_style = class\n#mynetworks_style = subnet\n\u2193\nmynetworks_style = subnet\u3000\u2190\u3000#\u3092\u5916\u3057\u307e\u3059\n#mynetworks_style = host\n# You can also specify the absolute pathname of a pattern file instead\n# of listing the patterns here. Specify type:table for table-based lookups\n# (the value on the table right-hand side is not used).\n#\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\u3057\u307e\u3059\n#mynetworks = 168.100.189.0\/28, 127.0.0.0\/8\n\u2193\nmynetworks = 192.168.1.0\/24, 127.0.0.0\/8\u3000\u2190\u3000#\u3092\u5916\u3057\u3066\u66f8\u304d\u63db\u3048\u307e\u3059\n#mynetworks = $config_directory\/mynetworks\n#mynetworks = hash:\/etc\/postfix\/network_table\n# NOTE: Postfix will not automatically forward mail for domains that\n# list this system as their primary or backup MX host. See the\n# permit_mx_backup restriction description in postconf(5).\n#\n#relay_domains = $mydestination\n\u2193\nrelay_domains = $mydestination\u3000\u2190\u3000#\u3092\u5916\u3059\n# DELIVERY TO MAILBOX\n#\n# The home_mailbox parameter specifies the optional pathname of a\n# mailbox file relative to a user's home directory. The default\n# mailbox file is \/var\/spool\/mail\/user or \/var\/mail\/user.  Specify\n# \"Maildir\/\" for qmail-style delivery (the \/ is required).\n#\n#home_mailbox = Mailbox\n#home_mailbox = Maildir\/\n\u2193\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\u3057\u307e\u3059\nSMTP Auth\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\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\u3057\u307e\u3059\u3002\nsmtpd_sasl_auth_enable = yes\nsmtpd_sasl_local_domain = $myhostname\nsmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination\n\u30e1\u30fc\u30eb\u4e0d\u6b63\u4e2d\u7d99\u30db\u30b9\u30c8\u304b\u3089\u306e\u63a5\u7d9a\u3092\u62d2\u5426\u3059\u308b\u5834\u5408\u4ee5\u4e0b\u3092\u6700\u7d42\u884c\u3078\u8ffd\u52a0\u3057\u307e\u3059\u3002\nsmtpd_client_restrictions = reject_rbl_client relays.ordb.org\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\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\u307e\u3059\u3002\n\u305d\u308c\u305e\u308c100MByte\u3068500MByte\u306b\u5909\u66f4\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u3092\u6700\u7d42\u884c\u3078\u8ffd\u52a0\u3057\u307e\u3059\u3002\nmessage_size_limit = 102400000\nmailbox_size_limit = 512000000\n\u5909\u66f4\u3092\u6709\u52b9\u306b\u3059\u308b\u70ba\u3001postfix\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002\n[root@server ~]# \/etc\/rc.d\/init.d\/postfix reload\npostfix \u3092\u518d\u8aad\u307f\u8fbc\u307f\u4e2d:                                    [  OK  ]<\/pre>\n<p><b>\u25a0SMTP Auth\u8a2d\u5b9a<\/b><br \/>\nSMTP Auth\u3067\u306fCyrus SASL\u3068\u547c\u3070\u308c\u308b\u8a8d\u8a3c\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 Postfix\u3067Cyrus SASL\u3092\u5229\u7528\u51fa\u6765\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>[root@linux ~]# vi \/usr\/lib\/sasl2\/smtpd.conf\u3000\u2190\u3000smtpd.conf\u3092\u958b\u304d\u307e\u3059\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306b\u8ffd\u8a18\u3057\u307e\u3059\u3002\nmech_list: plain login cram-md5 digest-md5\nsaslauthd\u306e\u8d77\u52d5\n[root@linux ~]# \/etc\/init.d\/saslauthd start\nsaslauthd \u3092\u8d77\u52d5\u4e2d:                                        [  OK  ]\nsaslauthd\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\n[root@linux ~]# chkconfig saslauthd on\nsaslauthd\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u78ba\u8a8d\n[root@linux ~]# chkconfig --list saslauthd\nsaslauthd       0:off   1:off   2:on    3:on    4:on    5:on    6:off\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff08\u30e9\u30f3\u30ec\u30d9\u30eb2\uff5e5\u306eon\u3092\u78ba\u8a8d\uff09<\/pre>\n<p><b>\u25a0root\u5b9b\u30e1\u30fc\u30eb\u3092\u4e00\u822c\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001<\/b><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\u3057\u307e\u3059\u3002<\/p>\n<pre>\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u5b9b\u30e1\u30fc\u30eb\u306eroot\u5b9b\u8ee2\u9001\u8a2d\u5b9a\u3092\u89e3\u9664\u3057\u307e\u3059\n[root@linux ~]# sed -i 's\/^webmaster\/#webmaster\/g' \/etc\/aliases\n\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u5b9b\u30e1\u30fc\u30eb\u306eroot\u5b9b\u8ee2\u9001\u8a2d\u5b9a\u89e3\u9664\u3092\u78ba\u8a8d\u3057\u307e\u3059\n[root@linux ~]# grep ^webmaster \/etc\/aliases\u3000\u2190\u3000\u7d50\u679c\u304c\u306a\u306b\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\nroot\u5b9b\u30e1\u30fc\u30eb\u3092\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\n[root@linux ~]# sed -i 's\/^root\/#root\/g' \/etc\/aliases\nroot\u5b9b\u30e1\u30fc\u30eb\u3092\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\uff08webmaster\uff09\u3078\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\n[root@linux ~]# echo \"root: webmaster\" >> \/etc\/aliases\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\u3092\u3057\u307e\u3059\n[root@linux ~]# grep ^root \/etc\/aliases\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\n\u8ee2\u9001\u5148\u3092\u53cd\u6620\u3055\u305b\u307e\u3059\n[root@linux ~]# postalias \/etc\/aliases<\/pre>\n<p><b>\u25a0\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08webmaster\uff09\u306e\u4f5c\u6210<\/b><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\u3067\u3059\u3002<\/p>\n<pre>\u4e00\u822c\u30e6\u30fc\u30b6(webmaster)\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n[root@linux ~]# useradd webmaster\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\u308a\u307e\u3059\n[root@linux ~]# passwd webmaster\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\uff08\u5165\u529b\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\uff09\nChanging password for user webmaster.\nNew UNIX password:\u30d1\u30b9\u30ef\u30fc\u30c9\n\u518d\u5165\u529b\u3092\u4fc3\u3055\u308c\u308b\u306e\u3067\u3001\u3082\u3046\u4e00\u5ea6\u5165\u529b\u3057\u307e\u3059\u3002(\u4e0a\u8a18\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u540c\u3058\u7269\u3092\u5165\u308c\u308b)\nRetype new UNIX password:\u30d1\u30b9\u30ef\u30fc\u30c9\npasswd: all authentication tokens updated successfully.<\/pre>\n<p><b>\u25a0Postfix\u306e\u8d77\u52d5<\/b><\/p>\n<pre>Postfix\u306e\u8d77\u52d5\n[root@linux ~]# \/etc\/rc.d\/init.d\/postfix start\npostfix \u3092\u8d77\u52d5\u4e2d:                                          [  OK  ]<\/pre>\n<p><b>\u25a0Postfix\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/b><\/p>\n<pre>Postfix\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\n[root@linux ~]# chkconfig postfix on\nPostfix\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u78ba\u8a8d\n[root@linux ~]# chkconfig --list postfix\npostfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff08\u30e9\u30f3\u30ec\u30d9\u30eb2\uff5e5\u306eon\u3092\u78ba\u8a8d\uff09<\/pre>\n<p><b>\u25a0sendmail\u30d1\u30b9\u306e\u78ba\u8a8d<\/b><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\u308a\u307e\u3059\u3002<\/p>\n<pre>\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067sendmail\u30d1\u30b9\u306e\u78ba\u8a8d\u3092\u3057\u307e\u3059\n[root@linex ~]# su - higo\n[higo@linux ~]$ which sendmail\u3000\u2190\u3000sendmail\u30d1\u30b9\u306e\u78ba\u8a8d\n\/usr\/bin\/which: no sendmail in (\/usr\/kerberos\/bin:\/usr\/local\/bin:\/bin:\/usr\/bin:\/home\/higo\/bin)\nsendmail\u30d1\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u304d\u306f\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\u306f\u305a\u3067\u3059\u3002\n[higo@linux ~]$ su -\u3000\u2190\u3000\u30eb\u30fc\u30c8\u306b\u306a\u308b\n\u30d1\u30b9\u30ef\u30fc\u30c9(P):\u3000\u2190\u3000\u30eb\u30fc\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\n[root@linux ~]# ln -s \/usr\/sbin\/sendmail \/usr\/bin\/sendmail\n[root@linux ~]# su - higo\u3000\u2190\u3000\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u308b\n[higo@linux ~]$ which sendmail\u3000\u2190\u3000sendmail\u30d1\u30b9\u306e\u78ba\u8a8d\n\/usr\/bin\/sendmail<\/pre>\n<p>\u5f53\u30b5\u30a4\u30c8\u306ejoyful.cgi\u3067\u306fsendmail\u30d1\u30b9\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u300c\/usr\/lib\/sendmail\u300d\u306b\u306a\u3063\u3066\u307e\u3059\u306e\u3067\u3001\u4e0a\u8a18\u3067\u78ba\u8a8d\u3057\u305fsendmail\u30d1\u30b9\u300c\/usr\/bin\/sendmail\u300d\u306b\u76f4\u3055\u306a\u3044\u3068\u6295\u7a3f\u6642\u306b\u9001\u4fe1\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre># sendmail\u30d1\u30b9\uff08\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b\u6642\uff09\n$sendmail = '\/usr\/lib\/sendmail';\n\u3000\u2193\n# sendmail\u30d1\u30b9\uff08\u30e1\u30fc\u30eb\u901a\u77e5\u3059\u308b\u6642\uff09\n$sendmail = '\/usr\/bin\/sendmail';\u3000\u2190\u3000lib\u3092bin\u306b\u5909\u66f4<\/pre>\n<p>SMTP\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3046\u306b\u306f\u3001\u30eb\u30fc\u30bf\u30fc\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u30eb\u30fc\u30bf\u306e\u8a2d\u5b9a\u3067<b>25\u756a\u306e\u30dd\u30fc\u30c8<\/b>\u3092\u958b\u3051\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<b>\u25a0\u30a8\u30e9\u30fc\u5bfe\u7b56<\/b><br \/>\n\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u3092\u3057\u305f\u969b\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5236\u9650\u306b\u304b\u304b\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3010OutlookExpress\u306e\u5834\u5408\u3011<br \/>\n\u53d7\u4fe1\u8005\u306e 1 \u4eba\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u62d2\u5426\u3055\u308c\u305f\u305f\u3081\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u62d2\u5426\u3055\u308c\u305f\u96fb\u5b50\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9: xxxx@xxxx.xxxxxx.xx.xx \u4ef6\u540d &#8216;\u9001\u4fe1\u30c6\u30b9\u30c8&#8217;, \u30a2\u30ab\u30a6\u30f3\u30c8 : &#8216;xxxx@xxxxxxx.xxx&#8217;, \u30b5\u30fc\u30d0\u30fc : &#8216;yokensaka.com&#8217;,\u30d7\u30ed\u30c8\u30b3\u30eb : SMTP, \u30b5\u30fc\u30d0\u30fc\u306e\u5fdc\u7b54 : &#8216;554 <xxxxx@xxxx.xxxxx.xx.xx> : Relay access denied&#8217;, \u30dd\u30fc\u30c8 : 25, \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 (SSL): \u306a\u3057, \u30b5\u30fc\u30d0\u30fc \u30a8\u30e9\u30fc : 554, \u30a8\u30e9\u30fc\u756a\u53f7 : 0x800CCC79<br \/>\n<b>\u30e1\u30fc\u30eb\u30bd\u30d5\u30c8\u3067\u300cSMTP-AUTH\u300d\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/b><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n[Windows\u3000Outlook 2000 \u30fb Outlook Express 5.0\/6.0\u3000\u306eSMTP-AUTH\u8a2d\u5b9a\u65b9\u6cd5]<\/p>\n<ol>\n<li>\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306e\uff62\u30c4\u30fc\u30eb\uff63\u2192\uff62\u30a2\u30ab\u30a6\u30f3\u30c8\uff63\u3092\u9078\u629e\u3057\u3066\u4e0b\u3055\u3044\u3002<\/li>\n<li>\uff62\u30e1\u30fc\u30eb\uff63\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u9078\u629e\u3001\uff62\u30d7\u30ed\u30d1\u30c6\u30a3\uff63\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044\u3002<\/li>\n<li>\uff62\u30b5\u30fc\u30d0\u30fc\uff63\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u958b\u3044\u3066\u4e0b\u3055\u3044\u3002<\/li>\n<li>\uff62\u9001\u4fe1\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\uff63\u6b04\u306e\uff62\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u8a8d\u8a3c\u304c\u5fc5\u8981\uff63\u306b\u30c1\u30a7\u30c3\u30af\u3092\u4ed8\u3051\u3066\uff62\u8a2d\u5b9a\uff63\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044\u3002<\/li>\n<li>\u8868\u793a\u3055\u308c\u305f\u753b\u9762\u3067\uff62\u53d7\u4fe1\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u8a2d\u5b9a\u3092\u4f7f\u7528\u3059\u308b\uff63\u306b\u30c1\u30a7\u30c3\u30af\u304c\u4ed8\u3044\u3066\u3044\u308b\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u3001\uff62OK\uff63\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044\u3002<\/li>\n<li> \uff62OK\uff63\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u8a2d\u5b9a\u753b\u9762\u3092\u9589\u3058\u3066\u4e0b\u3055\u3044\u3002<\/li>\n<\/ol>\n<p>\u203b\u793e\u5185LAN\u306a\u3069\u306e\u5834\u5408\u3000\u53d7\u4fe1\u30e1\u30fc\u30eb (POP3)\u3000\u304c\u300clocalhost\u300d\u306b\u306a\u3063\u3066\u308b\u4e8b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u6b63\u5f0f\u306a\u53d7\u4fe1\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nPostfix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3060\u3051\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306e\u8aad\u307f\u51fa\u3057\u306f\u51fa\u6765\u307e\u305b\u3093\u3002 Postfix\u306f\u30e1\u30fc\u30eb\u3092\u914d\u4fe1\u3059\u308b\u305f\u3081\u306eSMTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u306e\u6a5f\u80fd\u3057\u304b\u6301\u305f\u306a\u3044\u304b\u3089\u3067\u3059\u3002 \u6b21\u306f<b>dovecot\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b>\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001POP3\/IMAP4\u3069\u3061\u3089\u3067\u3082\u30e1\u30fc\u30eb\u3092\u8aad\u307f\u51fa\u305b\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div align=right><a href=\"#\">\u25b2 \u30da\u30fc\u30b8\u30c8\u30c3\u30d7\u3078<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u3000FC2\uff5eFC6 \/ Fedora7 \/ Fedora8 \/ Fedora9 \u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u30e1\u30fc\u30eb\u914d\u9001\u3092\u884c\u3046\u305f\u3081\u306eSMTP\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002 SMTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-17-smtppostfix"],"_links":{"self":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73"}],"version-history":[{"count":0,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/fedora\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}