Linux Memo/Postfix
¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¤·¤ÆºîÀ®
[
¥È¥Ã¥×
] [
¿·µ¬
|
°ìÍ÷
|
¸¡º÷
|
ºÇ½ª¹¹¿·
|
¥Ø¥ë¥×
]
³«»Ï¹Ô:
*Postfix¤ÎÀßÄêÊýË¡ [#f78017d9]
RIGHT:¹¹¿·Æü&lastmod();
**mail¤ÎÃæ·Ñ¤Ë¤Ä¤¤¤Æ¡Ê¥á¡¼¥ë¤Î¥µ¡¼¥Ð¤Î¼è¤ê¡Ë [#q8d4a3de]
***mail¥Ø¥Ã¥À¡¼Éô [#q00afa0a]
Received: from ¢
¡¡¡¡¡¡¡¡by £; Wed, 9 Mar 2005 16:29:14 +0900
Received: from ¡
¡¡¡¡¡¡¡¡by ¢; Wed, 9 Mar 2005 16:29:14 +0900
Received: from (0)
¡¡¡¡¡¡¡¡by ¡; Wed, 9 Mar 2005 16:29:02 +0900
''¥á¡¼¥ë¥µ¡¼¥Ð¤Î¼è¤ê''
¡¡(0) ¢ª¡¡¡¡¡¢ª¡¡¢¡¡¢ª£
***Îã [#s7496d22]
Received: from cat-white-a99c5b89fafdbe6c.znlc.jp (cat-w...
by atom-2.ism21.net (Postfix) with ESMTP id CA9D1207D9A
for <okada@ism21.net>; Tue, 4 Apr 2023 11:31:04 +0900 ...
Received: from WIN-C73LB63JO80 (ec2-18-179-196-59.ap-nor...
by cat-white-a99c5b89fafdbe6c.znlc.jp (Postfix) with ES...
for <okada@ism21.net>; Tue, 4 Apr 2023 11:19:03 +0900 ...
''¼è¤ê''
WIN-C73LB63JO80 ¢ª¡¡cat-white-a99c5b89fafdbe6c.znlc.jp ¢ª...
**postfix-pcre¤Ç¤¤¤¿¤º¤é [#k70a1110]
# apt-get install postfix-pcre
postfix-pcre¤òÆþ¤ì¤ë¤Èperl¤ÎÀµµ¬É½¸½¤¬²Äǽ¤Ë¤Ê¤ë
/etc/postfix/main.cf¤Ë
alias_maps = hash:/etc/aliases, pcre:/etc/postfix/aliase...
^^^^^^^^^^^^^^^^^^^^^^^^^...
/etc/postfix/aliases.regexp¤Ë
/^dummy[0-9]*(@.*)?$/ dummy
¤È¤¹¤ë¤Èdummy00 dummy9¡¡¤Ê¤É¤Î¥á¡¼¥ë¤¬dummy £±¥¢¥«¥¦¥ó¥È...
¤³¤Î¤È¤/etc/postfix/aliases.regexp¤Ï¶õ¥Õ¥¡¥¤¥ë¤Ç¤â¤¤¤¤¤«...
# touch aliases.regexp
[[perlÀµµ¬É½¸½ »²¹Í:http://www.site-cooler.com/kwl/perl/8...
**¥Ñ¥é¥á¡¼¥¿ [#a534364f]
aliases¤Ç¼õ¤±¤¿¥á¡¼¥ë¤òshell¤Ê¤É¼Â¹Ô·Á¼°¤ËÅϤ·¤Æ¼Â¹Ô¤¹¤ë...
¤¿¤À¤·¥æ¡¼¥¶ºîÀ®¤ÎɬÍפ¢¤ê
¼õ¿®¥á¡¼¥ë¤Î£±¹ÔÌܤÎ
Return-Path: <aaa@xxx.ac.jp>
¤Î¥æ¡¼¥¶Ì¾¤Ë¤âÆþ¤ë?
default_privs = nobody
**¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È [#i886d17a]
pop-before-smtp¤ÈÊ»ÍѤ¹¤ë¤Ë¤Ï°Ê²¼¤Î1¹Ô¤Î¥³¥á¥ó¥È¤ò³°¤·pos...
¤¹¤ì¤Ð¤è¤¤¡£~
²¼¤Î2¹Ô¤Ï
### SMTPǧ¾Ú¤ò¹Ô¤ï¤Ê¤¤¸Â¤ê¡¢°ìÀڤΥ᡼¥ëÁ÷¿®¤òµñÈݤ¹¤ë
-o smtpd_etrn_restrictions=reject
### 587È֥ݡ¼¥È¤Ø¤Î¡¢¥¹¥Ñ¥à¥á¡¼¥ë¤ò»ÈÍÑÉÔǽ¤Ë¤·¤Æ¤ª¤¯
-o smtpd_client_restrictions=permit_sasl_authenticated...
¥¯¥é¥¤¥¢¥ó¥È¤Î¥Ý¡¼¥È¤ò587¤Ë¤¹¤ë
''master.cf''
submission inet n - n - - s...
#submission inet n - n - - ...
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authent...
/etc/services¤ò°ì±þ³Îǧ¤¹¤ë
submission 587/tcp msa # mail m...
submission 587/udp msa # mail m...
smtp-auth¤äSTL¤ÏÊÌÅÓ¸¡Æ¤¤¹¤ë¡£
** postfix¤Ç¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È¤ÇÁ÷¿® [#p7900e10]
postfix¤òsmtp¥¯¥é¥¤¥¢¥ó¥È¤È¤·¤ÆÍøÍѤ·¡¢TLSǧ¾Ú¤Ç¥Ñ¥¹¥ï¡¼...
°Ê²¼¤ò¥¤¥ó¥¹¥È¡¼¥ë
# yum install cyrus-sasl-plain
# /etc/rc.d/init.d/saslauthd start
°Ê²¼¤òÄɲÃ
''postfix/main.cf''
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
##Edit by JE2ISM
relayhost = [mail.ssl-mail.info]:587
#SSL¤ò͸ú¤Ë¤¹¤ë
smtp_use_tls = yes
smtpd_use_tls = yes
#ǧ¾Ú¤ÎÀßÄê
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/isp_auth
smtp_sasl_security_options = noanonymou
smtp_sasl_tls_security_options = noanonymous
ǧ¾Ú¤òÁê¼ê¤Ë¹ç¤ï¤»¤ë
smtp_sasl_mechanism_filter = plain
°Ê²¼¤ò½¤Àµ
''postfix/master.cf''
#smtps inet n - n - - ...
smtps inet n - n - - ...
# -o smtpd_tls_wrappermode=yes
-o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate...
-o smtpd_client_restrictions=permit_sasl_authenticated...
# -o milter_macro_daemon_name=ORIGINATING
¥Ñ¥¹¥ï¡¼¥É¤ÎÀßÄê
''postfix/isp_auth''
[mail.ssl-mail.info]:587 okada2@wesden.net:*****
DB²½¤ò¹Ô¤¦¡ÊɬÍסË
# postmap /etc/postfix/isp_auth
postfixºÆµ¯Æ°
# /etc/rc.d/init.d/postfix restart
**¥á¡¼¥ë¤Î¥ê¥ì¡¼Åù [#rf48be33]
³°¸þ¤±¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤ÈÆâÉô¤Ë¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Î¤¢¤ë¥µ¡¼¥Ð...
³°Éô¤«¤éÆâÉô¤Ø¤Î¥ê¥ì¡¼¤Î»ÅÊý¤Ë¤Ä¤¤¤Æ
---------------- ----------...
|DMZ¾å¤Î¥µ¡¼¥Ð |-----------(F/W)-----------|ÆâÉô¤Î¥µ...
---------------- ----------...
¹½À®
***DMZ¾å¤Î¥µ¡¼¥Ð¤«¤éÆâÉô¥µ¡¼¥Ð¤Ø¥ê¥ì¡¼ [#mbc7ec3f]
/etc/postfix/main.cf¤Ç
°Ê²¼¤Î¹Ô¡Ê#¤Ç»Ï¤Þ¤ëÉôʬ°Ê³°¡Ë¤òµ½Ò
# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need expli...
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport¤Ë2¹ÔÄɲÃ
¥É¥á¥¤¥ó°¸(@hogehoge.ac.jp)
hogehoge.ac.jp smtp:[192.168.1.2] (Ëô¤Ïsmtp:xxx.hogehoge...
¤½¤Î¾¥Þ¥·¥ó¤â°¸¤Æ¤âÁ÷¤ë(@xxx.hogehoge.ac.jp)¤³¤Îµ½Ò¤Ç¤Ï...
.hogehoge.ac.jp smtp:[192.168.1.2]
ÀßÄ꤬´°Î»¤·¤¿¤é¡¢(Êѹ¹¤¹¤ë¤´¤È¤Ë¼Â¹Ô¤ÎɬÍפ¢¤ê)
# /usr/sbin/postmap /etc/postfix/transport
/etc/postfix/transportÊѹ¹¤¹¤ë¤´¤È¤Ë¼Â¹Ô¤·¡¢/etc/rc.d/ini...
postmap¤ò¼Â¹Ô¤·¤¿¤È¤¤Î¥í¥°(/var/log/maillog)
Jan 19 11:01:00 vmware40 postfix/pickup[1987]: 9A6DD1BB8...
Jan 19 11:01:00 vmware40 postfix/cleanup[2532]: 9A6DD1BB...
Jan 19 11:01:00 vmware40 postfix/qmgr[1988]: 9A6DD1BB8A3...
Jan 19 11:01:00 vmware40 postfix/smtp[2534]: 9A6DD1BB8A3...
Jan 19 11:01:00 vmware40 postfix/qmgr[1988]: 9A6DD1BB8A3...
***ÆâÉô¥µ¡¼¥Ð¤Î¥µ¡¼¥Ð¤«¤éDMZ¾å¤Ø¥ê¥ì¡¼ [#ta635a90]
/etc/postfix/main.cf ¤Î°Ê²¼¤ÎÉôʬ¤òÊÔ½¸
local_recipient_maps =
¤¢¤ÆÀèÉÔÌÀ¤Ê¥á¡¼¥ë¤Î½èÍý¤òµ½Ò¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Ç¡¢²¿¤â»ØÄê...
myorigin¤¬ÀßÄꤷ¤Æ¤¢¤ì¤Ï¥É¥á¥¤¥ó¤Ê¤·¥¢¥É¥ì¥¹¤Ïlocal_reci...
relayhost = [192.168.1.2] ¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥ì¡¼¥Û¥¹¥È¤ò»ØÄê...
fallback_transport = smtp:[192.168.1.2]
¥í¡¼¥«¥ë¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¥æ¡¼¥¶¤Ø¤Î¥á¡¼¥ë¤òžÁ÷¤¹¤ëÀè¤ò...
¤¿¤À¤·¡¢myorigin¤Ç¤½¤Î¥µ¡¼¥Ð¤ËžÁ÷¤µ¤ì¤ë¤Î¤Ç¥í¡¼¥«¥ë¤«¤é...
relayhost¤Ï¤½¤Î¾¤Î¥µ¡¼¥Ð¤ËÁ÷¤ë¤È¤¤Ë¤â¥ê¥ì¡¼¤·¤Æ¤¯¤ì¤ë¡£
myorigin¤òžÁ÷Àè¤ËÀßÄꤹ¤ì¤Ð¤è¤¤¡£¤³¤ì¤Ï¥é¥¦¥ó¥É¥í¥Ó¥ó¤Ê...
¥É¥á¥¤¥ó¤Ç¼õ¤±¤Æ¡¢Â¸ºß¤·¤Ê¤¤¥æ¡¼¥¶¤òÊÌ¥µ¡¼¥Ð¤ËžÁ÷¤¹¤ë¤È...
¤¿¤À¤·¡¢Å¾Á÷À襢¥É¥ì¥¹¤¬¼õ¿®¤Ç¤¤Ê¤¤¤È¥¨¥é¡¼¤Çµ¢¤Ã¤Æ¤¯¤ë...
¼õ¤±¼è¤ì¤Ê¤¤¤È¤¤Î¤Î¥í¥°
Jan 19 11:14:56 uso5004 postfix/qmgr[27447]: 526BEA1C00B...
Jan 19 11:14:56 uso5004 postfix/smtp[2541]: 526BEA1C00B:...
Jan 19 11:14:56 uso5004 postfix/cleanup[1748]: 70374A1C0...
Jan 19 11:14:56 uso5004 postfix/qmgr[27447]: 70374A1C00C...
Jan 19 11:14:56 uso5004 postfix/smtp[2541]: 70374A1C00C:...
¤¿¤È¤¨¤Ðuso500x¤Ê¤ó¤«¤Ç¼«Ê¬°Ê³°¥æ¡¼¥¶¤ËÁ÷¤ë¤È¤To:¤Ëabc¤È...
myorigin = abc.ac.jp
¤È¤¹¤ë¡£¤â¤Ã¤È¤âfrom¤â¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï@abc.ac.jp¤Ë¤Ê¤Ã¤Æ¤·...
¤Þ¤¿¡¢¥á¡¼¥é¤Ç¤ÏDelivered-To:¤Ï@°Ê¹ß¤¬Êä´°¤µ¤ì¤ë¤¬¡¢To:¤Ï...
&color(red){¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤émail¥³¥Þ¥ó¥É¤Ç¼Â¸³¤¹¤ë¤È¤...
¤Þ¤¿¡£myoriginÀßÄꤷ¤¿¥É¥á¥¤¥ó¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤ËËÜ¥µ¡¼¥Ð¤Ë...
(e.g.) °¸Àèokada¤Ç¤³¤³¤ËÅêÈ¡¤¹¤ë¤Èokada@(myorigin¤ÎÃÍ)¤È...
***¥É¥á¥¤¥óÅù¤òÊѹ¹¤·¤ÆžÁ÷ [#r03081a5]
abc.com¤Ë¥æ¡¼¥¶abc¤¬¤¤¤Ê¤¤¾ì¹çaaa.com¤ËžÁ÷
[A¥µ¡¼¥Ð] --(abc@abc.com) -->[abc.com¥µ¡¼¥Ð] ==(abc@aaa...
local_recipient_maps =
luser_relay = $user@aaa.com
**Postfix2.x¤Î¥¤¥ó¥¹¥È¡¼¥ë [#q9032697]
[[¤³¤³:http://www.postfix.org/download.html]]¤«¤éDownload.
postfix¤È¤¤¤¦¥æ¡¼¥¶¤Èpostfix,postdrop¤È¤¤¤¦¥°¥ë¡¼¥×¤òºîÀ®...
¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤¹¤Ç¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë¡£
/etc/passwd
postfix:x:128:128:postfix:/var/spool/postfix:
/etc/group
postfix:x:128:
postdrop:x:129:
$ tar zxvf postfix-2.2.5.tar.gz
$ cd postfix-2.2.5
$ make (./configure¤Ï¤·¤Ê¤¤)
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix ...
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm m...
else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>...
(ά)
[src/tlsmgr]
gcc -Wmissing-prototypes -Wformat -g -O -I. -I../../inc...
gcc -Wmissing-prototypes -Wformat -g -O -I. -I../../inc...
cp tlsmgr ../../libexec
$ su
# /etc/rc.d/init.d/postfix stop
# /etc/rc.d/init.d/pop-before-smtp stop
# make upgrade (make install¤ò¤¹¤ë¤È¥¤¥ó¥¹¥È¡¼¥ëÀèÅù¤¤¤í...
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡upgrade¤À¤È¸½ºß¤Î/etc/postfix/main.cf¤«...
rpm¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤¤Ï upgrade...
set -e; for i in src/util src/global src/dns src/tls src...
src/smtpstone src/sendmail src/error src/pickup src/clea...
src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp...
src/showq src/postalias src/postcat src/postconf src/pos...
postlock src/postlog src/postmap src/postqueue src/posts...
spawn src/flush src/verify src/virtual src/proxymap src/...
discard src/tlsmgr; do \
(set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-pro...
done
[src/util]
(ά)
Editing /etc/postfix/master.cf, adding missing entry for...
Editing /etc/postfix/master.cf, adding missing entry for...
Note: the following files or directories still exist...
longer part of Postfix:
/etc/postfix/pcre_table /etc/postfix/regexp_table
You have mail in /var/spool/mail/okada
------- make install ¤Î¾ì¹ç -----------------------------
/etc/postfix/main.cf ¤òÊÔ½¸
/etc/postfix/aliases ¤Ë root: ¼«Ê¬¤Î¥¢¥«¥¦¥ó¥È̾ ¤òÄɲÃ
---------------------------------------------------------
# /usr/sbin/postfix check
(²¿¤âµ¢¤é¤Ê¤¤)
# /etc/rc.d/init.d/postfix start
# /etc/rc.d/init.d/pop-before-smtp start
***±¿ÍÑÀßÄê [#ge64df5f]
¥¤¥ó¥¹¥È¡¼¥ë¸å¤ËÀßÄꤹ¤ë¥Õ¥¡¥¤¥ë¤Ï/etc/postfix/main.cf¤Ç
°Ê²¼¤ÎÆâÍƤ褦¤ËÀßÄꤹ¤ë
inet_interfaces = all <--CentOS¤Î¾ì¹ç¤³¤³¤¬localhost¤Ë¤Ê...
mydomain = abc.ac.jp
°Ê²¼¤Î2¤Ä¤ÏÁ÷¤ê¸µ¤Ë¥Û¥¹¥È̾¤òÆþ¤ì¤ë¤«Èݤ«¤ò·è¤á¤ë
myorigin = $myhostname <:---user@xxx.domain.jp
myorigin = $mydomain <:---user@domain.jp
mydestination = $myhostname, localhost.$mydomain
(¤â¤·¡¢¥É¥á¥¤¥ó¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤Ë¤·¤Æ¡¢¥É¥á¥¤¥ó°¸¤Æ¤Î¥á¡¼...
mydestination = $myhostname, localhost.$mydomain, $mydom...
¤È¤¹¤ë)
mynetworks = 192.xxx.xxx.0/24, 127.0.0.0/8, 10.0.0.0/8
smtpd_recipient_restrictions = permit_mynetworks,reject_...
check_client_access hash:/etc/postfix/pop-before-s...
check_relay_domains
(pop-before-smtp¤ÎÀßÄê)
relayhost = mail.abc.ac.jp
(¥ê¥ì¡¼¥Û¥¹¥È¤ÎÀßÄê)
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_vers...
smtpd_banner = $myhostname ESMTP $mail_name
(¤³¤ì¤Ï¥á¡¼¥ë¥µ¡¼¥Ð¤ÎÁÇÀ¤ò¤¢¤«¤µ¤Ê¤¤¤¿¤á¤ÎÀßÄê
#Edit by JE2ISM
##allow_percent_hack = no
allow_percent_hack = yes
#Edit by JE2ISM
# Limit Mssege 30MB
message_size_limit = 31457280
(°ìÅÙ¤ËÁ÷¤ì¤ë¥á¥Ã¥»¡¼¥¸¥µ¥¤¥º¤ÎMax default:10MB)
# MailBox Size 400MB
mailbox_size_limit = 409600000
(MailBox¤ÎºÇÂçÍÆÎÌ default:50MB)
¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤È¤¡Öunknown user: "f05999"¡×
¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤òÁ÷¿®¸µ¤ËÊÖ¤¹¤È¤¤Ï
unknown_local_recipient_reject_code = 550
»ØÄê¤Ê¤·¤Ï550¤¬¥Ç¥Õ¥©¥ë¥È¤Î¤è¤¦¤À~
reject¤¹¤ë¤À¤±¤ÇÁ÷¿®¸µ¤Ë¥á¥Ã¥»¡¼¥¸¤òÊÖ¤µ¤Ê¤¤¤Ê¤é
unknown_local_recipient_reject_code = 450
550:¥á¡¼¥ë¤ÇµñÈݤòÄÌÃÎ(reject mail) 450:°ìÄê»þ´Ö¸å¤ËºÆ»î...
550¤Î¤È¤¤Ï°Ê²¼¤Î¤è¤¦¤ÊÁ÷¿®¸µmaillog¤Ë¤Ê¤ë
May 23 14:42:38 uso5004 postfix/smtp[22124]: F3A34A1C066:
to=<abc@wwwism.dyndns.org>, relay=wwwism.dyndns.org[202....
status=bounced (host wwwism.dyndns.org[202.59.191.46] sa...
<abc@wwwism.dyndns.org>: Recipient address rejected: Use...
recipient table (in reply to RCPT TO command))
450¤Î¤È¤¤Ï°Ê²¼¤Î¤è¤¦¤ÊÁ÷¿®¸µmaillog¤Ë¤Ê¤ë
May 23 14:39:07 uso5004 postfix/smtp[22085]: 79331A1C065:
to=<abc@wwwism.dyndns.org>, relay=wwwism.dyndns.org[202....
status=deferred (host wwwism.dyndns.org[202.59.191.46] s...
<abc@wwwism.dyndns.org>: Recipient address rejected: Use...
recipient table (in reply to RCPT TO command))
450¤Î¤È¤¤ÏÁ÷¿®Â¦¤¬¼õ¿®¸µ¤¬º£¤Ï¤À¤á¤À¤¬»þ´Ö¤¬·Ð¤Ã¤Æ¤«¤é¤â...
#mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipie...
70A7EA1C034 690 Wed May 23 14:25:56 okada@mie-chuk...
(host wwwism.dyndns.org[202.59.191.46] said: 450 <abc@ww...
Recipient address rejected: User unknown in local recipi...
RCPT TO command))
abc@wwwism.dyndn...
°Ê²¼¤Î¤è¤¦¤Ê¥Ñ¥é¥á¡¼¥¿¤âÄɲäǤ¤ë
disable_vrfy_command=yes
vrfy¥³¥Þ¥ó¥É¤ò̵¸ú¤Ë¤¹¤ë¡£vrfy¥³¥Þ¥ó¥É¤È¤Ï¥æ¡¼¥¶¡¼¤¬Â¸ºß...
smtpd_helo_required=yes
helo/ehlo¥³¥Þ¥ó¥É¤òÍ׵᤹¤ë¡£helo/ehlo¥³¥Þ¥ó¥É¤ÏÀܳ¸µ¤Î...
¥³¥Þ¥ó¥É¡£¼«¤é¤Î¥Û¥¹¥È̾¤òÄÌÃΤ·¤Ê¤¤Àܳ¤òµñÈݤ¹¤ë¤è¤¦¤Ë...
strict_rfc821_envelopes=no
RFC821¤Î·Á¼°¤Ë¹ç¤ï¤Ê¤¤¥¢¥É¥ì¥¹¤ÏµñÈݤ¹¤ë¡£RFC821¤ÏSMTP¤Ë...
***¥á¡¼¥ëºï½ü [#w3549fc0]
''/etc/postfix/aliase''
dummy: /dev/null
¤Çdummy°¸¤Æ¥á¡¼¥ë¤Ïºï½ü¤µ¤ì¤ë
**¥¹¥Ñ¥àÂкö [#i7a45871]
¤¿¤À¤·¡¢¤³¤ì¤ò¹Ô¤¦¤ÈÁ´¤Æ¤½¤ì¤é¤Î¥µ¥¤¥È¤«¤é¤Î¥á¡¼¥ë¤òµñÈÝ...
maps_rbl_domains=relays.ordb.org
rbl¤È¤ÏÉÔÀµÃæ·Ñ¤ò¹Ô¤¦²ÄǽÀ¤¬¤¢¤ë¥µ¥¤¥È¤Î¥Ö¥é¥Ã¥¯¥ê¥¹¥È
smtpd_client_restrictions=reject_maps_rbl, reject_unknow...
reject_maps_rbl¤Ï¾å¤Ç»ØÄꤷ¤¿¥Ö¥é¥Ã¥¯¥ê¥¹¥È¤ËÅÐÏ¿¤µ¤ì¤¿...
reject_unknown_client¤Ïname¤ÎµÕ°ú¤¤¬¤Ç¤¤Ê¤¤¤È¤Àܳ¤ò...
Ʊ»þ¤ËÁ÷¤ì¤ë¥á¥Ã¥»¡¼¥¸¤ÎÀ©¸Â
default_destination_concurrency_limit
¥Ñ¥é¥á¡¼¥¿ (¥Ç¥Õ¥©¥ë¥È: 20) ¤ÏƱ¤¸ÇÛÁ÷Àè¤ËƱ»þ¤ËÁ÷¤ë¤³¤È...
¿ô ¥á¥Ã¥»¡¼¥¸1·ï¤´¤È¤Ë¥³¥Í¥¯¥·¥ç¥óÄ¥¤ë¤Ë¤Ï£±¤Ë¤¹¤ë
ÆÃÄê¤ÎÇÛÁ÷¥Á¥ã¥Í¥ë (local, smtp, uucp Åù)¤ËÂФ·¤Æ¾å½ñ¤¤¹...
local_destination_concurrency_limit ¥Ñ¥é¥á¡¼¥¿¤Ï Ʊ¤¸¥í...
Ʊ»þ¤ËÇÛÁ÷¤¹¤ë¥á¥Ã¥»¡¼¥¸¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹.¡¡2¤¯¤é¤¤¤¬¿ä¾©
Êѹ¹¸å¤Ï
# /etc/rc.d/init.d/postfix reload
¤ÇÊѹ¹ÆâÍƤòÈ¿±Ç¤µ¤»¤ë¡£
***¥ê¥ì¡¼¥Á¥§¥Ã¥¯¤ò¤·¤Æ¤¯¤ì¤ë¥µ¥¤¥È[[RBL.JP:http://www.rb...
¤½¤Î¥Á¥§¥Ã¥¯¤Ç°Ê²¼¤Î¤è¤¦¤Ê%Æþ¤ê¥¢¥É¥ì¥¹¤Ç¥ê¥ì¡¼¤¹¤ë¤È¥Á¥§...
main.cf¤Î
allow_percent_hack = no
¤ò
allow_percent_hack = yes
¤Ë¤¹¤ë¡£
[¥ê¥ì¡¼¥Á¥§¥Ã¥¯¤Î·ë²Ì]
Ãæ·Ñ¥Æ¥¹¥È ¤½¤Î6
>>> RSET
<<< 250 Ok
>>> MAIL FROM: <spamtest@xxx.xxx.xx.xxx>
<<< 250 Ok
>>> RCPT TO: <relaytest%rbl.jp@[xxx.xxx.xx.xxx]>
<<< 250 Ok
relay accepted!!
***spamÂкö [#fbf46e7f]
''Header¤Ç¥Á¥§¥Ã¥¯''
main.cf¤Ë
#header_checks = regexp:/etc/postfix/header_checks
¤Î¥³¥á¥ó¥È¤ò¤Ï¤º¤¹
/etc/postfix/header_checks
¤Ë
# It refuses by a partner's subject.
/^Subject: je2ism/ REJECT
(SubjectÍó¤¬je2ism¤Ç»Ï¤Þ¤ë¥á¡¼¥ë¤òµñÈÝ)
# It refuses in a FROM address.
#/^From: okada/ REJECT
(FromÍó¤¬okada¤Ç»Ï¤Þ¤ë¥á¡¼¥ë¤òµñÈÝ)
/^From:.*<#.*@.*>/ REJEC
(FromÍ󤬲¿¤â¤Ê¤¤¥á¡¼¥ë¤ÏµñÈÝ)
/^From: .*@abc.ne.jp/ REJECT
(FromÍó¤¬abc.ne.jp¤«¤é¤Î¥á¡¼¥ë¤ÏµñÈÝ)
''ËÜʸ¤Ç¥Á¥§¥Ã¥¯''
main.cf¤Ë
body_checks=regexp:/etc/postfix/body_checks
¤òÄɲÃ
/etc/postfix/body_checks¤Ë
/spam/REJECT
(ËÜʸÃæ¤Ëspam¤È¤¤¤¦¥¡¼¥ï¡¼¥É¤¬¤¢¤ì¤Ð¥á¡¼¥ë¤òµñÈÝ)
/name=.*\.scr/ REJECT
(źÉÕ¥Õ¥¡¥¤¥ë¤¬.scr¤¬´Þ¤Þ¤ì¤ì¤Ð¥á¡¼¥ë¤òµñÈÝ)
Êѹ¹¸å¤Ï
# /etc/rc.d/init.d/postfix reload
¤ò¼Â¹Ô
''½èÍýÊýË¡¤Ë¤Ä¤¤¤Æ''
-OK¡§¼õ¿®¤¹¤ë¡ÊVer2.1°Ê¹ß¤ÏDUNNO¿ä¾©¡Ë
-IGNORE¡§°ìÃפ·¤¿¹Ô¤ò¥Ø¥Ã¥À¤«¤éºï½ü
-REJECT¡§¼õ¿®µñÈݤ·¤Æ¡¢¥¨¥é¡¼¥á¡¼¥ë¤òÊÖ¤¹
-DISCARD¡§¼õ¿®¤·¤ÆÇË´þ¤¹¤ë
''maillog''
[REJECT]
Aug 27 13:17:17 uso5005 postfix/cleanup[1154]: 718A62205...
From: "=?ISO-2022-JP?B?GyRCMixFRCEhTklMQBsoQg==?=" <okad...
from mail.mie-chukyo-u.ac.jp[192.244.75.5]; from=<okada@...
to=<okada@uso5005.mie-chukyo-u.ac.jp> proto=ESMTP helo=<...
u.ac.jp>: Message content rejected
[DISCARD]
Aug 27 13:41:58 uso5005 postfix/cleanup[2264]: 91E192205...
From: "=?ISO-2022-JP?B?GyRCMixFRCEhTklMQBsoQg==?=" <okad...
from mail.mie-chukyo-u.ac.jp[192.244.75.5]; from=<okada@...
to=<okada@uso5005.mie-chukyo-u.ac.jp> proto=ESMTP helo=<...
u.ac.jp>
**Ê̥ɥᥤ¥ó¤Î¥á¡¼¥ë¤â¼õ¤±¼è¤ì¤ë¤è¤¦¤Ë¤¹¤ë [#i39ea045]
/etc/postfix/main.cf¤Î
mydestination = $myhostname, localhost.$mydomain, $mydom...
...
¤Ë¥É¥á¥¤¥ó̾¤òÄɲ乤롣
IP¥¢¥É¥ì¥¹»ØÄê¤Ï[192.168.1.1]¤Î¤è¤¦¤Ë»ØÄꤹ¤ë
**Á÷¤é¤ì¤¿¥á¡¼¥ë¥¢¥«¥¦¥ó¥È¤Ç¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤Ë¤Ï [#hc8d...
/etc/postfix/aliases¤Ë
(¥¢¥«¥¦¥ó¥È̾): "|(¥³¥Þ¥ó¥É¥Ñ¥¹)"
comingout: "|/home/postgres/comingout/perl/comingout.pl"
¤Î¤è¤¦¤ËµÆþ¤¹¤ë
*DDNS [#zf43db92]
DDNS(dyndns.org)¤ÎMail Exchanger (optional)¤Ë»ØÄê ¤·¤¿¥á...
Î㤨¤Ð
Mail Exchanger (optional): abc.ne.jp
¤ÈÀßÄꤹ¤ë¤È
wwwism.dyndns.org.¡¡¡¡¡¡86400INMX10 abc.ne.jp.
¤ÈDNS¤Ë½ñ¤«¤ì¡¢
abc.ne.jp¤Ëwwwism.dyndns.org°¸¤Æ¥á¡¼¥ë¤¬Å¾Á÷¤µ¤ì¤ë¡£
Backup MX?:DDNS¤ÎIP¤Ë¤â¥á¡¼¥ë¤òžÁ÷¤¹¤ë¤È¤¤Ë¥Á¥§¥Ã¥¯¤òÆþ...
¼«Âð¤Ë¥á¡¼¥ë¥µ¡¼¥Ð¤òΩ¤Á¾å¤²¥ë¡¼¥¿¤ÇPort25(smtp)¤ò¥Õ¥©¥ï...
¼«Âð¤Î¥µ¡¼¥Ð¤òsmtp¥µ¡¼¥Ð¤ËÀßÄê
main.cf¤ò
myhostname = pc85xxxx.axxgo2.ne.jp <---DHCP¤Ç³ä¤ê¿¶¤é¤ì...
mydomain = axxgo2.ne.jp <---¥×¥í¥Ð¥¤¥À¤Î¥É¥á¥¤¥ó̾
mydestination = $myhostname, localhost.$mydomain $mydomain
mynetworks = 168.168.10.0/24, 127.0.0.0/8
relayhost = mail.axxgo2.ne.jp <---¥×¥í¥Ð¥¤¥À¤Îsmtp¥µ...
***¥¥å¡¼¤Îɽ¼¨ [#ffc89ab9]
$ mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipie...
2932C2DEA16* 2761 Fri Jan 6 03:20:03 MAILER-DAEMON
info@mail.uzwr....
1C34F2DEA53* 2655 Fri Jan 6 06:48:21 MAILER-DAEMON
info@mail.wubv....
(ά)
63E992DE9F1 7372 Fri Jan 6 02:38:31 MAILER-DAEMON
(connect to rothen.net[216.168.224.70]:...
colmonr@rothen....
6B76F2DEA1C 5917 Thu Jan 5 21:24:13 MAILER-DAEMON
(host mx1.mail.yahoo.co.jp[202.93.77.231] said: 421 VS14...
fkirij798@yahoo...
-- 1471 Kbytes in 202 Requests.
***¥¥å¡¼ºï½ü [#wd18f6c3]
Postfix2.1°Ê¹ß¤Ê¤é¡¢
bounce_queue_lifetime = 86400
¤Ç¥æ¡¼¥¶¤¬½Ð¤·¤¿¥á¡¼¥ë¤È¤ÏÊ̤ˡ¢bounce¤·¤¿·ë²ÌºîÀ®¤µ¤ì¤ë...
**¤½¤Î¾¤Î¥¥å¡¼´Ø·¸ [#a5dac97e]
queue_run_delay (¥Ç¥Õ¥©¥ë¥È: 1000 ÉÃ)
¥¥å¡¼ ¥Þ¥Í¡¼¥¸¥ã¤¬ÃÙ±ä¥á¡¼¥ë¤Î¥¥å¡¼¤ò¥¹¥¥ã¥ó¤¹¤ëÉÑÅÙ¡£
maximal_queue_lifetime (¥Ç¥Õ¥©¥ë¥È: 5 Æü)
¥á¥Ã¥»¡¼¥¸¤¬ ÇÛÁ÷ÉÔǽ¤È¤·¤ÆÁ÷¤êÊÖ¤µ¤ì¤ë¤Þ¤Ç¤Ë¥¥å¡¼¤Ëα¤Þ...
minimal_backoff_time (¥Ç¥Õ¥©¥ë¥È: 1000 ÉÃ)
¥á¥Ã¥»¡¼¥¸¤¬ ¸¡º÷¤µ¤ì¤Ê¤¤ºÇ¾®»þ´Ö¤ª¤è¤Ó¡Ö»àË´¡×ÇÛÁ÷Àè¤Ë¼ê...
maximal_backoff_time (¥Ç¥Õ¥©¥ë¥È: 4000 ÉÃ)
ÇÛÁ÷¤Ë ¼ºÇÔ¤·¤Æ¤«¤é¥á¥Ã¥»¡¼¥¸¤ò¸«¤Ê¤¤ºÇÂç»þ´Ö¡£
''(¼êÆ°¤ÇÂнè¡Ë''
mailq ¤ÈÂǤÁ¹þ¤ó¤Ç¡¤¥¥å¡¼¤Ë¥á¡¼¥ë¤¬¿ôÉ´
°Ê¾å¤¿¤Þ¤Ã¤Æ¤¤¤¿¤é¡¤
mailq | grep MAILER-DAEMON | sort +3 > hoge
¤È¤«¤·¤Æ¡¤¿ô»þ´Ö°Ê¾å¤¿¤Ã¤¿ MAILER-DAEMON ¤«¤é¤Î¥á¡¼¥ë¤Î¥...
postsuper -d ¥¥å¡¼ÈÖ¹æ
# /usr/sbin/postsuper -d 8B3296529B
postsuper: 8B3296529B: removed
postsuper: Deleted: 1 message
¤Ç¥á¡¼¥ë¥¥å¡¼¤«¤éºï½ü¡¤Ä̾ï¥æ¡¼¥¶¸¢¸Â¤Ç¤«¤Þ¤¤¤Þ¤»¤ó¤Î¤Ç
sendmail -q ¤ò¼Â¹Ô¤¹¤ì¤Ð¡¤¥¥å¡¼¤Ë¤¿¤Þ¤Ã¤¿¥á¡¼¥ë¤òÁ´¤ÆÇÛ...
''¥á¥Ã¥»¡¼¥¸¤ÎÆâÍÆɽ¼¨''
# /usr/sbin/postcat -q QUEUE_ID
# /usr/sbin/postcat -q 6D3221234FCA
*** ENVELOPE RECORDS deferred/6/6D3221234FCA ***
message_size: 913 430 ...
message_arrival_time: Thu Jan 13 12:17:19 2011
¡Êά¡Ë
recipient: neksus@www.matsusaka-u.ac.jp
*** MESSAGE CONTENTS deferred/6/6D3221234FCA ***
Received: from 28c07nc7e.com (unknown [**.**.**])
(ά)
*** HEADER EXTRACTED deferred/6/6D3221234FCA ***
*** MESSAGE FILE END deferred/6/6D3221234FCA ***
''¥á¥Ã¥»¡¼¥¸¥¥å¡¼¤Î¶¯À©Å¾Á÷¡ÊÁ´Éô¡Ë''
postfix flush
''¥á¥Ã¥»¡¼¥¸¥¥å¡¼¤ÎÁ´ºï½ü''
/usr/sbin/postsuper -d ALL
**ÉÔÌÀ¤Ê°¸Àè¤Ë¥Ð¥¦¥ó¥¹¤µ¤»¤Ê¤¤ [#t08eea7d]
¼«Ê¬¤Î¥µ¡¼¥Ð¸ºß¤·¤Ê¤¤¥¢¥«¥¦¥ó¥È°¸¤Î¥á¡¼¥ë¤ò¼õ¤±¤Ê¤¤¤è¤¦...
¤³¤ì¤Ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤òº¾¾Î¤µ¤ì¤¿Ìµ¼Â¤Î¿Í¤Ë¤â̵ÍѤʥ¨¥é...
°Ê²¼¤ÎÎã¤Ï$alias_maps¤È/etc/passwd¤Ë¥æ¡¼¥¶¤¬¤¤¤Ê¤¤¤È¤¤Ï...
main.cf
local_recipient_maps = $alias_maps unix:passwd.byname
$alias_maps¤À¤±¤Ç¤Î¥æ¡¼¥¶¤·¤«Ç§¤á¤Ê¤¤¾ì¹ç¡¢/etc/passwd¤Î...
local_recipient_maps = $alias_maps
¤ÈÀßÄꤹ¤ë
2.x¤Ï¥Ç¥Õ¥©¥ë¥È¤ÇOn 1.x¤â»È¤¨¤ë¡£
±ü¼ÀèÀ¸»²¹Í¥Ú¡¼¥¸
---------------------------------------------------------...
RIGHT:[[¸µ¥Ú¡¼¥¸:https://wwwism.dyndns.org/hp/linux/postf...
½ªÎ»¹Ô:
*Postfix¤ÎÀßÄêÊýË¡ [#f78017d9]
RIGHT:¹¹¿·Æü&lastmod();
**mail¤ÎÃæ·Ñ¤Ë¤Ä¤¤¤Æ¡Ê¥á¡¼¥ë¤Î¥µ¡¼¥Ð¤Î¼è¤ê¡Ë [#q8d4a3de]
***mail¥Ø¥Ã¥À¡¼Éô [#q00afa0a]
Received: from ¢
¡¡¡¡¡¡¡¡by £; Wed, 9 Mar 2005 16:29:14 +0900
Received: from ¡
¡¡¡¡¡¡¡¡by ¢; Wed, 9 Mar 2005 16:29:14 +0900
Received: from (0)
¡¡¡¡¡¡¡¡by ¡; Wed, 9 Mar 2005 16:29:02 +0900
''¥á¡¼¥ë¥µ¡¼¥Ð¤Î¼è¤ê''
¡¡(0) ¢ª¡¡¡¡¡¢ª¡¡¢¡¡¢ª£
***Îã [#s7496d22]
Received: from cat-white-a99c5b89fafdbe6c.znlc.jp (cat-w...
by atom-2.ism21.net (Postfix) with ESMTP id CA9D1207D9A
for <okada@ism21.net>; Tue, 4 Apr 2023 11:31:04 +0900 ...
Received: from WIN-C73LB63JO80 (ec2-18-179-196-59.ap-nor...
by cat-white-a99c5b89fafdbe6c.znlc.jp (Postfix) with ES...
for <okada@ism21.net>; Tue, 4 Apr 2023 11:19:03 +0900 ...
''¼è¤ê''
WIN-C73LB63JO80 ¢ª¡¡cat-white-a99c5b89fafdbe6c.znlc.jp ¢ª...
**postfix-pcre¤Ç¤¤¤¿¤º¤é [#k70a1110]
# apt-get install postfix-pcre
postfix-pcre¤òÆþ¤ì¤ë¤Èperl¤ÎÀµµ¬É½¸½¤¬²Äǽ¤Ë¤Ê¤ë
/etc/postfix/main.cf¤Ë
alias_maps = hash:/etc/aliases, pcre:/etc/postfix/aliase...
^^^^^^^^^^^^^^^^^^^^^^^^^...
/etc/postfix/aliases.regexp¤Ë
/^dummy[0-9]*(@.*)?$/ dummy
¤È¤¹¤ë¤Èdummy00 dummy9¡¡¤Ê¤É¤Î¥á¡¼¥ë¤¬dummy £±¥¢¥«¥¦¥ó¥È...
¤³¤Î¤È¤/etc/postfix/aliases.regexp¤Ï¶õ¥Õ¥¡¥¤¥ë¤Ç¤â¤¤¤¤¤«...
# touch aliases.regexp
[[perlÀµµ¬É½¸½ »²¹Í:http://www.site-cooler.com/kwl/perl/8...
**¥Ñ¥é¥á¡¼¥¿ [#a534364f]
aliases¤Ç¼õ¤±¤¿¥á¡¼¥ë¤òshell¤Ê¤É¼Â¹Ô·Á¼°¤ËÅϤ·¤Æ¼Â¹Ô¤¹¤ë...
¤¿¤À¤·¥æ¡¼¥¶ºîÀ®¤ÎɬÍפ¢¤ê
¼õ¿®¥á¡¼¥ë¤Î£±¹ÔÌܤÎ
Return-Path: <aaa@xxx.ac.jp>
¤Î¥æ¡¼¥¶Ì¾¤Ë¤âÆþ¤ë?
default_privs = nobody
**¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È [#i886d17a]
pop-before-smtp¤ÈÊ»ÍѤ¹¤ë¤Ë¤Ï°Ê²¼¤Î1¹Ô¤Î¥³¥á¥ó¥È¤ò³°¤·pos...
¤¹¤ì¤Ð¤è¤¤¡£~
²¼¤Î2¹Ô¤Ï
### SMTPǧ¾Ú¤ò¹Ô¤ï¤Ê¤¤¸Â¤ê¡¢°ìÀڤΥ᡼¥ëÁ÷¿®¤òµñÈݤ¹¤ë
-o smtpd_etrn_restrictions=reject
### 587È֥ݡ¼¥È¤Ø¤Î¡¢¥¹¥Ñ¥à¥á¡¼¥ë¤ò»ÈÍÑÉÔǽ¤Ë¤·¤Æ¤ª¤¯
-o smtpd_client_restrictions=permit_sasl_authenticated...
¥¯¥é¥¤¥¢¥ó¥È¤Î¥Ý¡¼¥È¤ò587¤Ë¤¹¤ë
''master.cf''
submission inet n - n - - s...
#submission inet n - n - - ...
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authent...
/etc/services¤ò°ì±þ³Îǧ¤¹¤ë
submission 587/tcp msa # mail m...
submission 587/udp msa # mail m...
smtp-auth¤äSTL¤ÏÊÌÅÓ¸¡Æ¤¤¹¤ë¡£
** postfix¤Ç¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È¤ÇÁ÷¿® [#p7900e10]
postfix¤òsmtp¥¯¥é¥¤¥¢¥ó¥È¤È¤·¤ÆÍøÍѤ·¡¢TLSǧ¾Ú¤Ç¥Ñ¥¹¥ï¡¼...
°Ê²¼¤ò¥¤¥ó¥¹¥È¡¼¥ë
# yum install cyrus-sasl-plain
# /etc/rc.d/init.d/saslauthd start
°Ê²¼¤òÄɲÃ
''postfix/main.cf''
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
##Edit by JE2ISM
relayhost = [mail.ssl-mail.info]:587
#SSL¤ò͸ú¤Ë¤¹¤ë
smtp_use_tls = yes
smtpd_use_tls = yes
#ǧ¾Ú¤ÎÀßÄê
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/isp_auth
smtp_sasl_security_options = noanonymou
smtp_sasl_tls_security_options = noanonymous
ǧ¾Ú¤òÁê¼ê¤Ë¹ç¤ï¤»¤ë
smtp_sasl_mechanism_filter = plain
°Ê²¼¤ò½¤Àµ
''postfix/master.cf''
#smtps inet n - n - - ...
smtps inet n - n - - ...
# -o smtpd_tls_wrappermode=yes
-o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate...
-o smtpd_client_restrictions=permit_sasl_authenticated...
# -o milter_macro_daemon_name=ORIGINATING
¥Ñ¥¹¥ï¡¼¥É¤ÎÀßÄê
''postfix/isp_auth''
[mail.ssl-mail.info]:587 okada2@wesden.net:*****
DB²½¤ò¹Ô¤¦¡ÊɬÍסË
# postmap /etc/postfix/isp_auth
postfixºÆµ¯Æ°
# /etc/rc.d/init.d/postfix restart
**¥á¡¼¥ë¤Î¥ê¥ì¡¼Åù [#rf48be33]
³°¸þ¤±¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤ÈÆâÉô¤Ë¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Î¤¢¤ë¥µ¡¼¥Ð...
³°Éô¤«¤éÆâÉô¤Ø¤Î¥ê¥ì¡¼¤Î»ÅÊý¤Ë¤Ä¤¤¤Æ
---------------- ----------...
|DMZ¾å¤Î¥µ¡¼¥Ð |-----------(F/W)-----------|ÆâÉô¤Î¥µ...
---------------- ----------...
¹½À®
***DMZ¾å¤Î¥µ¡¼¥Ð¤«¤éÆâÉô¥µ¡¼¥Ð¤Ø¥ê¥ì¡¼ [#mbc7ec3f]
/etc/postfix/main.cf¤Ç
°Ê²¼¤Î¹Ô¡Ê#¤Ç»Ï¤Þ¤ëÉôʬ°Ê³°¡Ë¤òµ½Ò
# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need expli...
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport¤Ë2¹ÔÄɲÃ
¥É¥á¥¤¥ó°¸(@hogehoge.ac.jp)
hogehoge.ac.jp smtp:[192.168.1.2] (Ëô¤Ïsmtp:xxx.hogehoge...
¤½¤Î¾¥Þ¥·¥ó¤â°¸¤Æ¤âÁ÷¤ë(@xxx.hogehoge.ac.jp)¤³¤Îµ½Ò¤Ç¤Ï...
.hogehoge.ac.jp smtp:[192.168.1.2]
ÀßÄ꤬´°Î»¤·¤¿¤é¡¢(Êѹ¹¤¹¤ë¤´¤È¤Ë¼Â¹Ô¤ÎɬÍפ¢¤ê)
# /usr/sbin/postmap /etc/postfix/transport
/etc/postfix/transportÊѹ¹¤¹¤ë¤´¤È¤Ë¼Â¹Ô¤·¡¢/etc/rc.d/ini...
postmap¤ò¼Â¹Ô¤·¤¿¤È¤¤Î¥í¥°(/var/log/maillog)
Jan 19 11:01:00 vmware40 postfix/pickup[1987]: 9A6DD1BB8...
Jan 19 11:01:00 vmware40 postfix/cleanup[2532]: 9A6DD1BB...
Jan 19 11:01:00 vmware40 postfix/qmgr[1988]: 9A6DD1BB8A3...
Jan 19 11:01:00 vmware40 postfix/smtp[2534]: 9A6DD1BB8A3...
Jan 19 11:01:00 vmware40 postfix/qmgr[1988]: 9A6DD1BB8A3...
***ÆâÉô¥µ¡¼¥Ð¤Î¥µ¡¼¥Ð¤«¤éDMZ¾å¤Ø¥ê¥ì¡¼ [#ta635a90]
/etc/postfix/main.cf ¤Î°Ê²¼¤ÎÉôʬ¤òÊÔ½¸
local_recipient_maps =
¤¢¤ÆÀèÉÔÌÀ¤Ê¥á¡¼¥ë¤Î½èÍý¤òµ½Ò¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Ç¡¢²¿¤â»ØÄê...
myorigin¤¬ÀßÄꤷ¤Æ¤¢¤ì¤Ï¥É¥á¥¤¥ó¤Ê¤·¥¢¥É¥ì¥¹¤Ïlocal_reci...
relayhost = [192.168.1.2] ¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥ì¡¼¥Û¥¹¥È¤ò»ØÄê...
fallback_transport = smtp:[192.168.1.2]
¥í¡¼¥«¥ë¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¥æ¡¼¥¶¤Ø¤Î¥á¡¼¥ë¤òžÁ÷¤¹¤ëÀè¤ò...
¤¿¤À¤·¡¢myorigin¤Ç¤½¤Î¥µ¡¼¥Ð¤ËžÁ÷¤µ¤ì¤ë¤Î¤Ç¥í¡¼¥«¥ë¤«¤é...
relayhost¤Ï¤½¤Î¾¤Î¥µ¡¼¥Ð¤ËÁ÷¤ë¤È¤¤Ë¤â¥ê¥ì¡¼¤·¤Æ¤¯¤ì¤ë¡£
myorigin¤òžÁ÷Àè¤ËÀßÄꤹ¤ì¤Ð¤è¤¤¡£¤³¤ì¤Ï¥é¥¦¥ó¥É¥í¥Ó¥ó¤Ê...
¥É¥á¥¤¥ó¤Ç¼õ¤±¤Æ¡¢Â¸ºß¤·¤Ê¤¤¥æ¡¼¥¶¤òÊÌ¥µ¡¼¥Ð¤ËžÁ÷¤¹¤ë¤È...
¤¿¤À¤·¡¢Å¾Á÷À襢¥É¥ì¥¹¤¬¼õ¿®¤Ç¤¤Ê¤¤¤È¥¨¥é¡¼¤Çµ¢¤Ã¤Æ¤¯¤ë...
¼õ¤±¼è¤ì¤Ê¤¤¤È¤¤Î¤Î¥í¥°
Jan 19 11:14:56 uso5004 postfix/qmgr[27447]: 526BEA1C00B...
Jan 19 11:14:56 uso5004 postfix/smtp[2541]: 526BEA1C00B:...
Jan 19 11:14:56 uso5004 postfix/cleanup[1748]: 70374A1C0...
Jan 19 11:14:56 uso5004 postfix/qmgr[27447]: 70374A1C00C...
Jan 19 11:14:56 uso5004 postfix/smtp[2541]: 70374A1C00C:...
¤¿¤È¤¨¤Ðuso500x¤Ê¤ó¤«¤Ç¼«Ê¬°Ê³°¥æ¡¼¥¶¤ËÁ÷¤ë¤È¤To:¤Ëabc¤È...
myorigin = abc.ac.jp
¤È¤¹¤ë¡£¤â¤Ã¤È¤âfrom¤â¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï@abc.ac.jp¤Ë¤Ê¤Ã¤Æ¤·...
¤Þ¤¿¡¢¥á¡¼¥é¤Ç¤ÏDelivered-To:¤Ï@°Ê¹ß¤¬Êä´°¤µ¤ì¤ë¤¬¡¢To:¤Ï...
&color(red){¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤émail¥³¥Þ¥ó¥É¤Ç¼Â¸³¤¹¤ë¤È¤...
¤Þ¤¿¡£myoriginÀßÄꤷ¤¿¥É¥á¥¤¥ó¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤ËËÜ¥µ¡¼¥Ð¤Ë...
(e.g.) °¸Àèokada¤Ç¤³¤³¤ËÅêÈ¡¤¹¤ë¤Èokada@(myorigin¤ÎÃÍ)¤È...
***¥É¥á¥¤¥óÅù¤òÊѹ¹¤·¤ÆžÁ÷ [#r03081a5]
abc.com¤Ë¥æ¡¼¥¶abc¤¬¤¤¤Ê¤¤¾ì¹çaaa.com¤ËžÁ÷
[A¥µ¡¼¥Ð] --(abc@abc.com) -->[abc.com¥µ¡¼¥Ð] ==(abc@aaa...
local_recipient_maps =
luser_relay = $user@aaa.com
**Postfix2.x¤Î¥¤¥ó¥¹¥È¡¼¥ë [#q9032697]
[[¤³¤³:http://www.postfix.org/download.html]]¤«¤éDownload.
postfix¤È¤¤¤¦¥æ¡¼¥¶¤Èpostfix,postdrop¤È¤¤¤¦¥°¥ë¡¼¥×¤òºîÀ®...
¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤¹¤Ç¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë¡£
/etc/passwd
postfix:x:128:128:postfix:/var/spool/postfix:
/etc/group
postfix:x:128:
postdrop:x:129:
$ tar zxvf postfix-2.2.5.tar.gz
$ cd postfix-2.2.5
$ make (./configure¤Ï¤·¤Ê¤¤)
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix ...
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm m...
else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>...
(ά)
[src/tlsmgr]
gcc -Wmissing-prototypes -Wformat -g -O -I. -I../../inc...
gcc -Wmissing-prototypes -Wformat -g -O -I. -I../../inc...
cp tlsmgr ../../libexec
$ su
# /etc/rc.d/init.d/postfix stop
# /etc/rc.d/init.d/pop-before-smtp stop
# make upgrade (make install¤ò¤¹¤ë¤È¥¤¥ó¥¹¥È¡¼¥ëÀèÅù¤¤¤í...
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡upgrade¤À¤È¸½ºß¤Î/etc/postfix/main.cf¤«...
rpm¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤¤Ï upgrade...
set -e; for i in src/util src/global src/dns src/tls src...
src/smtpstone src/sendmail src/error src/pickup src/clea...
src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp...
src/showq src/postalias src/postcat src/postconf src/pos...
postlock src/postlog src/postmap src/postqueue src/posts...
spawn src/flush src/verify src/virtual src/proxymap src/...
discard src/tlsmgr; do \
(set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-pro...
done
[src/util]
(ά)
Editing /etc/postfix/master.cf, adding missing entry for...
Editing /etc/postfix/master.cf, adding missing entry for...
Note: the following files or directories still exist...
longer part of Postfix:
/etc/postfix/pcre_table /etc/postfix/regexp_table
You have mail in /var/spool/mail/okada
------- make install ¤Î¾ì¹ç -----------------------------
/etc/postfix/main.cf ¤òÊÔ½¸
/etc/postfix/aliases ¤Ë root: ¼«Ê¬¤Î¥¢¥«¥¦¥ó¥È̾ ¤òÄɲÃ
---------------------------------------------------------
# /usr/sbin/postfix check
(²¿¤âµ¢¤é¤Ê¤¤)
# /etc/rc.d/init.d/postfix start
# /etc/rc.d/init.d/pop-before-smtp start
***±¿ÍÑÀßÄê [#ge64df5f]
¥¤¥ó¥¹¥È¡¼¥ë¸å¤ËÀßÄꤹ¤ë¥Õ¥¡¥¤¥ë¤Ï/etc/postfix/main.cf¤Ç
°Ê²¼¤ÎÆâÍƤ褦¤ËÀßÄꤹ¤ë
inet_interfaces = all <--CentOS¤Î¾ì¹ç¤³¤³¤¬localhost¤Ë¤Ê...
mydomain = abc.ac.jp
°Ê²¼¤Î2¤Ä¤ÏÁ÷¤ê¸µ¤Ë¥Û¥¹¥È̾¤òÆþ¤ì¤ë¤«Èݤ«¤ò·è¤á¤ë
myorigin = $myhostname <:---user@xxx.domain.jp
myorigin = $mydomain <:---user@domain.jp
mydestination = $myhostname, localhost.$mydomain
(¤â¤·¡¢¥É¥á¥¤¥ó¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤Ë¤·¤Æ¡¢¥É¥á¥¤¥ó°¸¤Æ¤Î¥á¡¼...
mydestination = $myhostname, localhost.$mydomain, $mydom...
¤È¤¹¤ë)
mynetworks = 192.xxx.xxx.0/24, 127.0.0.0/8, 10.0.0.0/8
smtpd_recipient_restrictions = permit_mynetworks,reject_...
check_client_access hash:/etc/postfix/pop-before-s...
check_relay_domains
(pop-before-smtp¤ÎÀßÄê)
relayhost = mail.abc.ac.jp
(¥ê¥ì¡¼¥Û¥¹¥È¤ÎÀßÄê)
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_vers...
smtpd_banner = $myhostname ESMTP $mail_name
(¤³¤ì¤Ï¥á¡¼¥ë¥µ¡¼¥Ð¤ÎÁÇÀ¤ò¤¢¤«¤µ¤Ê¤¤¤¿¤á¤ÎÀßÄê
#Edit by JE2ISM
##allow_percent_hack = no
allow_percent_hack = yes
#Edit by JE2ISM
# Limit Mssege 30MB
message_size_limit = 31457280
(°ìÅÙ¤ËÁ÷¤ì¤ë¥á¥Ã¥»¡¼¥¸¥µ¥¤¥º¤ÎMax default:10MB)
# MailBox Size 400MB
mailbox_size_limit = 409600000
(MailBox¤ÎºÇÂçÍÆÎÌ default:50MB)
¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤È¤¡Öunknown user: "f05999"¡×
¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤òÁ÷¿®¸µ¤ËÊÖ¤¹¤È¤¤Ï
unknown_local_recipient_reject_code = 550
»ØÄê¤Ê¤·¤Ï550¤¬¥Ç¥Õ¥©¥ë¥È¤Î¤è¤¦¤À~
reject¤¹¤ë¤À¤±¤ÇÁ÷¿®¸µ¤Ë¥á¥Ã¥»¡¼¥¸¤òÊÖ¤µ¤Ê¤¤¤Ê¤é
unknown_local_recipient_reject_code = 450
550:¥á¡¼¥ë¤ÇµñÈݤòÄÌÃÎ(reject mail) 450:°ìÄê»þ´Ö¸å¤ËºÆ»î...
550¤Î¤È¤¤Ï°Ê²¼¤Î¤è¤¦¤ÊÁ÷¿®¸µmaillog¤Ë¤Ê¤ë
May 23 14:42:38 uso5004 postfix/smtp[22124]: F3A34A1C066:
to=<abc@wwwism.dyndns.org>, relay=wwwism.dyndns.org[202....
status=bounced (host wwwism.dyndns.org[202.59.191.46] sa...
<abc@wwwism.dyndns.org>: Recipient address rejected: Use...
recipient table (in reply to RCPT TO command))
450¤Î¤È¤¤Ï°Ê²¼¤Î¤è¤¦¤ÊÁ÷¿®¸µmaillog¤Ë¤Ê¤ë
May 23 14:39:07 uso5004 postfix/smtp[22085]: 79331A1C065:
to=<abc@wwwism.dyndns.org>, relay=wwwism.dyndns.org[202....
status=deferred (host wwwism.dyndns.org[202.59.191.46] s...
<abc@wwwism.dyndns.org>: Recipient address rejected: Use...
recipient table (in reply to RCPT TO command))
450¤Î¤È¤¤ÏÁ÷¿®Â¦¤¬¼õ¿®¸µ¤¬º£¤Ï¤À¤á¤À¤¬»þ´Ö¤¬·Ð¤Ã¤Æ¤«¤é¤â...
#mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipie...
70A7EA1C034 690 Wed May 23 14:25:56 okada@mie-chuk...
(host wwwism.dyndns.org[202.59.191.46] said: 450 <abc@ww...
Recipient address rejected: User unknown in local recipi...
RCPT TO command))
abc@wwwism.dyndn...
°Ê²¼¤Î¤è¤¦¤Ê¥Ñ¥é¥á¡¼¥¿¤âÄɲäǤ¤ë
disable_vrfy_command=yes
vrfy¥³¥Þ¥ó¥É¤ò̵¸ú¤Ë¤¹¤ë¡£vrfy¥³¥Þ¥ó¥É¤È¤Ï¥æ¡¼¥¶¡¼¤¬Â¸ºß...
smtpd_helo_required=yes
helo/ehlo¥³¥Þ¥ó¥É¤òÍ׵᤹¤ë¡£helo/ehlo¥³¥Þ¥ó¥É¤ÏÀܳ¸µ¤Î...
¥³¥Þ¥ó¥É¡£¼«¤é¤Î¥Û¥¹¥È̾¤òÄÌÃΤ·¤Ê¤¤Àܳ¤òµñÈݤ¹¤ë¤è¤¦¤Ë...
strict_rfc821_envelopes=no
RFC821¤Î·Á¼°¤Ë¹ç¤ï¤Ê¤¤¥¢¥É¥ì¥¹¤ÏµñÈݤ¹¤ë¡£RFC821¤ÏSMTP¤Ë...
***¥á¡¼¥ëºï½ü [#w3549fc0]
''/etc/postfix/aliase''
dummy: /dev/null
¤Çdummy°¸¤Æ¥á¡¼¥ë¤Ïºï½ü¤µ¤ì¤ë
**¥¹¥Ñ¥àÂкö [#i7a45871]
¤¿¤À¤·¡¢¤³¤ì¤ò¹Ô¤¦¤ÈÁ´¤Æ¤½¤ì¤é¤Î¥µ¥¤¥È¤«¤é¤Î¥á¡¼¥ë¤òµñÈÝ...
maps_rbl_domains=relays.ordb.org
rbl¤È¤ÏÉÔÀµÃæ·Ñ¤ò¹Ô¤¦²ÄǽÀ¤¬¤¢¤ë¥µ¥¤¥È¤Î¥Ö¥é¥Ã¥¯¥ê¥¹¥È
smtpd_client_restrictions=reject_maps_rbl, reject_unknow...
reject_maps_rbl¤Ï¾å¤Ç»ØÄꤷ¤¿¥Ö¥é¥Ã¥¯¥ê¥¹¥È¤ËÅÐÏ¿¤µ¤ì¤¿...
reject_unknown_client¤Ïname¤ÎµÕ°ú¤¤¬¤Ç¤¤Ê¤¤¤È¤Àܳ¤ò...
Ʊ»þ¤ËÁ÷¤ì¤ë¥á¥Ã¥»¡¼¥¸¤ÎÀ©¸Â
default_destination_concurrency_limit
¥Ñ¥é¥á¡¼¥¿ (¥Ç¥Õ¥©¥ë¥È: 20) ¤ÏƱ¤¸ÇÛÁ÷Àè¤ËƱ»þ¤ËÁ÷¤ë¤³¤È...
¿ô ¥á¥Ã¥»¡¼¥¸1·ï¤´¤È¤Ë¥³¥Í¥¯¥·¥ç¥óÄ¥¤ë¤Ë¤Ï£±¤Ë¤¹¤ë
ÆÃÄê¤ÎÇÛÁ÷¥Á¥ã¥Í¥ë (local, smtp, uucp Åù)¤ËÂФ·¤Æ¾å½ñ¤¤¹...
local_destination_concurrency_limit ¥Ñ¥é¥á¡¼¥¿¤Ï Ʊ¤¸¥í...
Ʊ»þ¤ËÇÛÁ÷¤¹¤ë¥á¥Ã¥»¡¼¥¸¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹.¡¡2¤¯¤é¤¤¤¬¿ä¾©
Êѹ¹¸å¤Ï
# /etc/rc.d/init.d/postfix reload
¤ÇÊѹ¹ÆâÍƤòÈ¿±Ç¤µ¤»¤ë¡£
***¥ê¥ì¡¼¥Á¥§¥Ã¥¯¤ò¤·¤Æ¤¯¤ì¤ë¥µ¥¤¥È[[RBL.JP:http://www.rb...
¤½¤Î¥Á¥§¥Ã¥¯¤Ç°Ê²¼¤Î¤è¤¦¤Ê%Æþ¤ê¥¢¥É¥ì¥¹¤Ç¥ê¥ì¡¼¤¹¤ë¤È¥Á¥§...
main.cf¤Î
allow_percent_hack = no
¤ò
allow_percent_hack = yes
¤Ë¤¹¤ë¡£
[¥ê¥ì¡¼¥Á¥§¥Ã¥¯¤Î·ë²Ì]
Ãæ·Ñ¥Æ¥¹¥È ¤½¤Î6
>>> RSET
<<< 250 Ok
>>> MAIL FROM: <spamtest@xxx.xxx.xx.xxx>
<<< 250 Ok
>>> RCPT TO: <relaytest%rbl.jp@[xxx.xxx.xx.xxx]>
<<< 250 Ok
relay accepted!!
***spamÂкö [#fbf46e7f]
''Header¤Ç¥Á¥§¥Ã¥¯''
main.cf¤Ë
#header_checks = regexp:/etc/postfix/header_checks
¤Î¥³¥á¥ó¥È¤ò¤Ï¤º¤¹
/etc/postfix/header_checks
¤Ë
# It refuses by a partner's subject.
/^Subject: je2ism/ REJECT
(SubjectÍó¤¬je2ism¤Ç»Ï¤Þ¤ë¥á¡¼¥ë¤òµñÈÝ)
# It refuses in a FROM address.
#/^From: okada/ REJECT
(FromÍó¤¬okada¤Ç»Ï¤Þ¤ë¥á¡¼¥ë¤òµñÈÝ)
/^From:.*<#.*@.*>/ REJEC
(FromÍ󤬲¿¤â¤Ê¤¤¥á¡¼¥ë¤ÏµñÈÝ)
/^From: .*@abc.ne.jp/ REJECT
(FromÍó¤¬abc.ne.jp¤«¤é¤Î¥á¡¼¥ë¤ÏµñÈÝ)
''ËÜʸ¤Ç¥Á¥§¥Ã¥¯''
main.cf¤Ë
body_checks=regexp:/etc/postfix/body_checks
¤òÄɲÃ
/etc/postfix/body_checks¤Ë
/spam/REJECT
(ËÜʸÃæ¤Ëspam¤È¤¤¤¦¥¡¼¥ï¡¼¥É¤¬¤¢¤ì¤Ð¥á¡¼¥ë¤òµñÈÝ)
/name=.*\.scr/ REJECT
(źÉÕ¥Õ¥¡¥¤¥ë¤¬.scr¤¬´Þ¤Þ¤ì¤ì¤Ð¥á¡¼¥ë¤òµñÈÝ)
Êѹ¹¸å¤Ï
# /etc/rc.d/init.d/postfix reload
¤ò¼Â¹Ô
''½èÍýÊýË¡¤Ë¤Ä¤¤¤Æ''
-OK¡§¼õ¿®¤¹¤ë¡ÊVer2.1°Ê¹ß¤ÏDUNNO¿ä¾©¡Ë
-IGNORE¡§°ìÃפ·¤¿¹Ô¤ò¥Ø¥Ã¥À¤«¤éºï½ü
-REJECT¡§¼õ¿®µñÈݤ·¤Æ¡¢¥¨¥é¡¼¥á¡¼¥ë¤òÊÖ¤¹
-DISCARD¡§¼õ¿®¤·¤ÆÇË´þ¤¹¤ë
''maillog''
[REJECT]
Aug 27 13:17:17 uso5005 postfix/cleanup[1154]: 718A62205...
From: "=?ISO-2022-JP?B?GyRCMixFRCEhTklMQBsoQg==?=" <okad...
from mail.mie-chukyo-u.ac.jp[192.244.75.5]; from=<okada@...
to=<okada@uso5005.mie-chukyo-u.ac.jp> proto=ESMTP helo=<...
u.ac.jp>: Message content rejected
[DISCARD]
Aug 27 13:41:58 uso5005 postfix/cleanup[2264]: 91E192205...
From: "=?ISO-2022-JP?B?GyRCMixFRCEhTklMQBsoQg==?=" <okad...
from mail.mie-chukyo-u.ac.jp[192.244.75.5]; from=<okada@...
to=<okada@uso5005.mie-chukyo-u.ac.jp> proto=ESMTP helo=<...
u.ac.jp>
**Ê̥ɥᥤ¥ó¤Î¥á¡¼¥ë¤â¼õ¤±¼è¤ì¤ë¤è¤¦¤Ë¤¹¤ë [#i39ea045]
/etc/postfix/main.cf¤Î
mydestination = $myhostname, localhost.$mydomain, $mydom...
...
¤Ë¥É¥á¥¤¥ó̾¤òÄɲ乤롣
IP¥¢¥É¥ì¥¹»ØÄê¤Ï[192.168.1.1]¤Î¤è¤¦¤Ë»ØÄꤹ¤ë
**Á÷¤é¤ì¤¿¥á¡¼¥ë¥¢¥«¥¦¥ó¥È¤Ç¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤Ë¤Ï [#hc8d...
/etc/postfix/aliases¤Ë
(¥¢¥«¥¦¥ó¥È̾): "|(¥³¥Þ¥ó¥É¥Ñ¥¹)"
comingout: "|/home/postgres/comingout/perl/comingout.pl"
¤Î¤è¤¦¤ËµÆþ¤¹¤ë
*DDNS [#zf43db92]
DDNS(dyndns.org)¤ÎMail Exchanger (optional)¤Ë»ØÄê ¤·¤¿¥á...
Î㤨¤Ð
Mail Exchanger (optional): abc.ne.jp
¤ÈÀßÄꤹ¤ë¤È
wwwism.dyndns.org.¡¡¡¡¡¡86400INMX10 abc.ne.jp.
¤ÈDNS¤Ë½ñ¤«¤ì¡¢
abc.ne.jp¤Ëwwwism.dyndns.org°¸¤Æ¥á¡¼¥ë¤¬Å¾Á÷¤µ¤ì¤ë¡£
Backup MX?:DDNS¤ÎIP¤Ë¤â¥á¡¼¥ë¤òžÁ÷¤¹¤ë¤È¤¤Ë¥Á¥§¥Ã¥¯¤òÆþ...
¼«Âð¤Ë¥á¡¼¥ë¥µ¡¼¥Ð¤òΩ¤Á¾å¤²¥ë¡¼¥¿¤ÇPort25(smtp)¤ò¥Õ¥©¥ï...
¼«Âð¤Î¥µ¡¼¥Ð¤òsmtp¥µ¡¼¥Ð¤ËÀßÄê
main.cf¤ò
myhostname = pc85xxxx.axxgo2.ne.jp <---DHCP¤Ç³ä¤ê¿¶¤é¤ì...
mydomain = axxgo2.ne.jp <---¥×¥í¥Ð¥¤¥À¤Î¥É¥á¥¤¥ó̾
mydestination = $myhostname, localhost.$mydomain $mydomain
mynetworks = 168.168.10.0/24, 127.0.0.0/8
relayhost = mail.axxgo2.ne.jp <---¥×¥í¥Ð¥¤¥À¤Îsmtp¥µ...
***¥¥å¡¼¤Îɽ¼¨ [#ffc89ab9]
$ mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipie...
2932C2DEA16* 2761 Fri Jan 6 03:20:03 MAILER-DAEMON
info@mail.uzwr....
1C34F2DEA53* 2655 Fri Jan 6 06:48:21 MAILER-DAEMON
info@mail.wubv....
(ά)
63E992DE9F1 7372 Fri Jan 6 02:38:31 MAILER-DAEMON
(connect to rothen.net[216.168.224.70]:...
colmonr@rothen....
6B76F2DEA1C 5917 Thu Jan 5 21:24:13 MAILER-DAEMON
(host mx1.mail.yahoo.co.jp[202.93.77.231] said: 421 VS14...
fkirij798@yahoo...
-- 1471 Kbytes in 202 Requests.
***¥¥å¡¼ºï½ü [#wd18f6c3]
Postfix2.1°Ê¹ß¤Ê¤é¡¢
bounce_queue_lifetime = 86400
¤Ç¥æ¡¼¥¶¤¬½Ð¤·¤¿¥á¡¼¥ë¤È¤ÏÊ̤ˡ¢bounce¤·¤¿·ë²ÌºîÀ®¤µ¤ì¤ë...
**¤½¤Î¾¤Î¥¥å¡¼´Ø·¸ [#a5dac97e]
queue_run_delay (¥Ç¥Õ¥©¥ë¥È: 1000 ÉÃ)
¥¥å¡¼ ¥Þ¥Í¡¼¥¸¥ã¤¬ÃÙ±ä¥á¡¼¥ë¤Î¥¥å¡¼¤ò¥¹¥¥ã¥ó¤¹¤ëÉÑÅÙ¡£
maximal_queue_lifetime (¥Ç¥Õ¥©¥ë¥È: 5 Æü)
¥á¥Ã¥»¡¼¥¸¤¬ ÇÛÁ÷ÉÔǽ¤È¤·¤ÆÁ÷¤êÊÖ¤µ¤ì¤ë¤Þ¤Ç¤Ë¥¥å¡¼¤Ëα¤Þ...
minimal_backoff_time (¥Ç¥Õ¥©¥ë¥È: 1000 ÉÃ)
¥á¥Ã¥»¡¼¥¸¤¬ ¸¡º÷¤µ¤ì¤Ê¤¤ºÇ¾®»þ´Ö¤ª¤è¤Ó¡Ö»àË´¡×ÇÛÁ÷Àè¤Ë¼ê...
maximal_backoff_time (¥Ç¥Õ¥©¥ë¥È: 4000 ÉÃ)
ÇÛÁ÷¤Ë ¼ºÇÔ¤·¤Æ¤«¤é¥á¥Ã¥»¡¼¥¸¤ò¸«¤Ê¤¤ºÇÂç»þ´Ö¡£
''(¼êÆ°¤ÇÂнè¡Ë''
mailq ¤ÈÂǤÁ¹þ¤ó¤Ç¡¤¥¥å¡¼¤Ë¥á¡¼¥ë¤¬¿ôÉ´
°Ê¾å¤¿¤Þ¤Ã¤Æ¤¤¤¿¤é¡¤
mailq | grep MAILER-DAEMON | sort +3 > hoge
¤È¤«¤·¤Æ¡¤¿ô»þ´Ö°Ê¾å¤¿¤Ã¤¿ MAILER-DAEMON ¤«¤é¤Î¥á¡¼¥ë¤Î¥...
postsuper -d ¥¥å¡¼ÈÖ¹æ
# /usr/sbin/postsuper -d 8B3296529B
postsuper: 8B3296529B: removed
postsuper: Deleted: 1 message
¤Ç¥á¡¼¥ë¥¥å¡¼¤«¤éºï½ü¡¤Ä̾ï¥æ¡¼¥¶¸¢¸Â¤Ç¤«¤Þ¤¤¤Þ¤»¤ó¤Î¤Ç
sendmail -q ¤ò¼Â¹Ô¤¹¤ì¤Ð¡¤¥¥å¡¼¤Ë¤¿¤Þ¤Ã¤¿¥á¡¼¥ë¤òÁ´¤ÆÇÛ...
''¥á¥Ã¥»¡¼¥¸¤ÎÆâÍÆɽ¼¨''
# /usr/sbin/postcat -q QUEUE_ID
# /usr/sbin/postcat -q 6D3221234FCA
*** ENVELOPE RECORDS deferred/6/6D3221234FCA ***
message_size: 913 430 ...
message_arrival_time: Thu Jan 13 12:17:19 2011
¡Êά¡Ë
recipient: neksus@www.matsusaka-u.ac.jp
*** MESSAGE CONTENTS deferred/6/6D3221234FCA ***
Received: from 28c07nc7e.com (unknown [**.**.**])
(ά)
*** HEADER EXTRACTED deferred/6/6D3221234FCA ***
*** MESSAGE FILE END deferred/6/6D3221234FCA ***
''¥á¥Ã¥»¡¼¥¸¥¥å¡¼¤Î¶¯À©Å¾Á÷¡ÊÁ´Éô¡Ë''
postfix flush
''¥á¥Ã¥»¡¼¥¸¥¥å¡¼¤ÎÁ´ºï½ü''
/usr/sbin/postsuper -d ALL
**ÉÔÌÀ¤Ê°¸Àè¤Ë¥Ð¥¦¥ó¥¹¤µ¤»¤Ê¤¤ [#t08eea7d]
¼«Ê¬¤Î¥µ¡¼¥Ð¸ºß¤·¤Ê¤¤¥¢¥«¥¦¥ó¥È°¸¤Î¥á¡¼¥ë¤ò¼õ¤±¤Ê¤¤¤è¤¦...
¤³¤ì¤Ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤òº¾¾Î¤µ¤ì¤¿Ìµ¼Â¤Î¿Í¤Ë¤â̵ÍѤʥ¨¥é...
°Ê²¼¤ÎÎã¤Ï$alias_maps¤È/etc/passwd¤Ë¥æ¡¼¥¶¤¬¤¤¤Ê¤¤¤È¤¤Ï...
main.cf
local_recipient_maps = $alias_maps unix:passwd.byname
$alias_maps¤À¤±¤Ç¤Î¥æ¡¼¥¶¤·¤«Ç§¤á¤Ê¤¤¾ì¹ç¡¢/etc/passwd¤Î...
local_recipient_maps = $alias_maps
¤ÈÀßÄꤹ¤ë
2.x¤Ï¥Ç¥Õ¥©¥ë¥È¤ÇOn 1.x¤â»È¤¨¤ë¡£
±ü¼ÀèÀ¸»²¹Í¥Ú¡¼¥¸
---------------------------------------------------------...
RIGHT:[[¸µ¥Ú¡¼¥¸:https://wwwism.dyndns.org/hp/linux/postf...
¥Ú¡¼¥¸Ì¾: