ããã¯ãUbuntu OnlineãFedora OnlineãWindows ãªã³ã©ã€ã³ ãšãã¥ã¬ãŒã¿ãŒããŸã㯠MAC OS ãªã³ã©ã€ã³ ãšãã¥ã¬ãŒã¿ãŒãªã©ã®è€æ°ã®ç¡æãªã³ã©ã€ã³ ã¯ãŒã¯ã¹ããŒã·ã§ã³ã® XNUMX ã€ã䜿çšããŠãOnWorks ç¡æãã¹ãã£ã³ã° ãããã€ããŒã§å®è¡ã§ããã³ãã³ã ãã¹ããããã§ãã
ããã°ã©ã ïŒ
NAME
postmap - Postfix ã«ãã¯ã¢ããããŒãã«ç®¡ç
SYNOPSIS
ãã¹ãããã [-NAbfimnoprsuUvw] [-c config_dir] [-d ããŒ] [-q ããŒ]
[ãã¡ã€ã«ã®çš®é¡:]file_name ...
DESCRIPTION
ãã® ãã¹ãããã(1) ã³ãã³ã㯠XNUMX ã€ä»¥äžã® Postfix ã«ãã¯ã¢ãã ããŒãã«ãäœæãŸãã¯ã¯ãšãªãããã
æ¢åã®ãã®ã å ¥åããã³åºåãã¡ã€ã«åœ¢åŒã¯ä»¥äžãšäºææ§ãããããšãæåŸ ãããŸãã
ã¡ã€ã¯ããã ãã¡ã€ã«ã®çš®é¡ file_name < file_name
çµæãã¡ã€ã«ãååšããªãå Žåã¯ãåãã°ã«ãŒããšä»ã®èªã¿åãã§äœæãããŸãã
æš©éããœãŒã¹ãã¡ã€ã«ãšããŠäœ¿çšããŸãã
ããŒãã«ã®æŽæ°äžã¯ã·ã°ãã«é ä¿¡ã延æãããæä»çã
芳客ã®é©ããé¿ãããããããŒãã«å šäœã«ããã¯ããããããŸãã
ããã»ã¹ã
å ¥å FILE FORMAT
ã«ãã¯ã¢ãã ããŒãã«å ¥åãã¡ã€ã«ã®åœ¢åŒã¯æ¬¡ã®ãšããã§ãã
· ããŒãã«ãšã³ããªã®åœ¢åŒã¯æ¬¡ã®ãšããã§ãã
ããŒ ç©ºçœ å€
· 空è¡ãšç©ºçœã®ã¿ã®è¡ã¯ãæåã®è¡ãç¡èŠãããŸãã
空çœä»¥å€ã®æåã¯ã#ãã§ãã
· è«çè¡ã¯ç©ºçœä»¥å€ã®ããã¹ãã§å§ãŸããŸãã 空çœã§å§ãŸãè¡
è«ççãªè¡ãç¶ããŸãã
ãã® ããŒ ãš å€ åšå²ã®ç©ºçœãåé€ãããããšãé€ããŠããã®ãŸãŸåŠçãããŸãã
ãªãã Postfix ãšã€ãªã¢ã¹ ããŒã¿ããŒã¹ãšã¯ç°ãªããæ€çŽ¢ããŒãä¿è·ããããã«åŒçšç¬Šã䜿çšããããšã¯ã§ããŸãã
ã#ãã空çœãªã©ã®ç¹æ®æåãå«ãŸããŠãããã®ã
ããã©ã«ãã§ã¯ãæ€çŽ¢ããŒã¯å°æåã«ããããããæ€çŽ¢ã§å€§æåãšå°æåãåºå¥ãããŸããã ãšããŠ
Postfix 2.3 ã§ã¯ããã®å€§æåå°æåã®æãããã¿ã¯ãæ€çŽ¢ããŒã倧æåãšå°æåãåºå®ãããŠããããŒãã«ã§ã®ã¿çºçããŸãã
btree:ãdbm:ãhash: ãªã©ã®æååã 以åã®ããŒãžã§ã³ã§ã¯ãã«ãã¯ã¢ãã ããŒã¯æããããŸããŠããŸãã
ã«ãã¯ã¢ãã ãã£ãŒã«ãã倧æåãšå°æåã®äž¡æ¹ã®ããã¹ãã«äžèŽããããŒãã«ã®å Žåã§ãåæ§ã§ãã
regexp: ãš pcre:ã ããã«ããã$ ã«é¢ããæ å ±ã倱ãããŸãããæ° çœ®æã
ã³ãã³ãã©ã€ã³ è°è«
-b ã¡ãã»ãŒãžæ¬æã¯ãšãªã¢ãŒããæå¹ã«ããŸãã æšæºå ¥åããã«ãã¯ã¢ããããŒãèªã¿åãå Žåã
"-q -" ã¯ãå ¥åã RFC 2822 圢åŒã®é»åã¡ãŒã« ã¡ãã»ãŒãžã§ãããã®ããã«åŠçããŸãã
æ¬æã³ã³ãã³ãã®è¡ã XNUMX ã€ã®æ€çŽ¢ããŒã«ãªããŸãã
ããã©ã«ãã§ã¯ã -b ãã®ãªãã·ã§ã³ã¯ãæåã®éããããŒã§ã«ãã¯ã¢ãã ããŒã®çæãéå§ããŸãã
è¡ã«é²ã¿ãã¡ãã»ãŒãžã®çµããã«éãããšåæ¢ããŸãã ã·ãã¥ã¬ãŒãããã«ã¯ ããã£ãã§ãã¯(5)
åŠçãMIME 解æãæå¹ã«ãã -mã ããã«ããã -b ãªãã·ã§ã³ã¯äœãçæããŸãã
æ·»ä»ãã¡ã€ã«ã® MIME ããããŒããã³æ·»ä»ã¡ãã»ãŒãžã®æ¬æã¹ã¿ã€ã«ã®æ€çŽ¢ããŒ/*
ããããŒã
泚: ãsmtputf8_enable = yesãã®å Žåã -b ãªãã·ã§ã³ ãªãã·ã§ã³ã¯ UTF-8 æ§æãç¡å¹ã«ããŸã
ã¯ãšãªããŒãšã«ãã¯ã¢ããçµæããã§ãã¯ããŸãã ãæå®ããŸãã -U UTF-8ã匷å¶ãããªãã·ã§ã³
ãšã«ããæ§æãã§ãã¯ã
ãã®æ©èœã¯ãPostfix ããŒãžã§ã³ 2.6 以éã§å©çšã§ããŸãã
-c config_dir
èªã main.cf ããã©ã«ãã§ã¯ãªãæå®ããããã£ã¬ã¯ããªã«èšå®ãã¡ã€ã«ãé 眮ãã
æ§æãã£ã¬ã¯ããªã
-d ã㌠æå®ããããããæ€çŽ¢ããŸã ã㌠ãããããšã« XNUMX ã€ã®ãšã³ããªãåé€ããŸãã çµäºã¹ããŒã¿ã¹ã¯ã
èŠæ±ãããæ å ±ãèŠã€ãã£ãå Žåã¯ãŒãã
ããŒå€ã - ãæå®ãããŠããå Žåãããã°ã©ã ã¯æšæºããããŒå€ãèªã¿åããŸãã
å ¥åã¹ããªãŒã ã èŠæ±ãããããŒã®å°ãªããšã XNUMX ã€ãç¡å¹ã«ãªã£ãå Žåãçµäºã¹ããŒã¿ã¹ã¯ XNUMX ã«ãªããŸãã
çºèŠããã
-f ããŒãã«ã®äœæãŸãã¯ã¯ãšãªãå®è¡ãããšãã«ãã«ãã¯ã¢ãã ããŒãå°æåã«å€æããªãã§ãã ããã
Postfix ããŒãžã§ã³ 2.3 以éã§ã¯ããã®ãªãã·ã§ã³ã¯éåžžã®ããŒãžã§ã³ã§ã¯å¹æããããŸããã
åŒããŒãã«ã ããã§ã¯ãã±ãŒã¹ãã©ãŒã«ãã£ã³ã°ã¯ããã©ã°ãè¿œå ããããšã«ãã£ãŠå¶åŸ¡ãããŸãã
ãã¿ãŒã³ã
-h ã¡ãã»ãŒãžããããŒã¯ãšãªã¢ãŒããæå¹ã«ããŸãã æšæºå ¥åããã«ãã¯ã¢ããããŒãèªã¿åãå Žåã
"-q -" ã¯ãå ¥åã RFC 2822 圢åŒã®é»åã¡ãŒã« ã¡ãã»ãŒãžã§ãããã®ããã«åŠçããŸãã
è«çããããŒè¡ã XNUMX ã€ã®æ€çŽ¢ããŒã«ãªããŸãã è€æ°è¡ã®ããããŒã XNUMX ã€ã®ã«ãã¯ã¢ããã«ãªããŸã
XNUMX ã€ä»¥äžã®æ¹è¡æåãåã蟌ãŸããããŒã
ããã©ã«ãã§ã¯ã -h ãã®ãªãã·ã§ã³ã¯ãæåã®éããããŒè¡ãçµäºãããŸã§ã«ãã¯ã¢ãã ããŒãçæããŸãã
ã«éããŸããã ã·ãã¥ã¬ãŒãããã«ã¯ header_checks(5) åŠçãMIME 解æãæå¹ã«ãã -m.
ããã«ããã -h ãã®ãªãã·ã§ã³ã¯ãæ·»ä»ãã¡ã€ã«ã®ããã㌠ã¹ã¿ã€ã«ã®æ€çŽ¢ããŒãçæããŸã
MIME ããããŒããã³æ·»ä»ããã message/* ããããŒçšã
泚: ãsmtputf8_enable = yesãã®å Žåã -b ãªãã·ã§ã³ ãªãã·ã§ã³ã¯ UTF-8 æ§æãç¡å¹ã«ããŸã
ã¯ãšãªããŒãšã«ãã¯ã¢ããçµæããã§ãã¯ããŸãã ãæå®ããŸãã -U UTF-8ã匷å¶ãããªãã·ã§ã³
ãšã«ããæ§æãã§ãã¯ã
ãã®æ©èœã¯ãPostfix ããŒãžã§ã³ 2.6 以éã§å©çšã§ããŸãã
-A ããŒã¿ããŒã¹ãçŸåšã®ããŒãžã§ã³ã«ã¢ããã°ã¬ãŒãããŸãã
-i ã€ã³ã¯ãªã¡ã³ã¿ã«ã¢ãŒãã æšæºå ¥åãããšã³ããªãèªã¿åããæ¢åã®ãšã³ããªãåãæšãŠãŸããã
ããŒã¿ããŒã¹ã ããã©ã«ãã§ã¯ã ãã¹ãããã(1) ã®ãšã³ããªããæ°ããããŒã¿ããŒã¹ãäœæããŸãã
file_name.
-m ãã㧠MIME 解æãæå¹ã«ããŸãã-b"ãš"-h".
ãã®æ©èœã¯ãPostfix ããŒãžã§ã³ 2.6 以éã§å©çšã§ããŸãã
-N ã«ãã¯ã¢ããã®ããŒãšå€ãçµäºããçµäºãã«æåãå«ããŸãã ã«
ããã©ã«ãã ãã¹ãããã(1) ãã¹ã ãªãã¬ãŒãã£ã³ã° ã·ã¹ãã ã®ããã©ã«ãããã¹ãŠå®è¡ããŸãã
-n ã«ãã¯ã¢ããããŒãçµäºããçµäºãã«æåãå«ããªãã§ãã ããã
䟡å€èŠ³ã ããã©ã«ãã§ã¯ã ãã¹ãããã(1) åäœããŠãããã¹ãã®ããã©ã«ãããã¹ãŠå®è¡ããŸãã
ã·ã¹ãã ã
-o é root å ¥åãã¡ã€ã«ãåŠçããå Žåã¯ãroot æš©éã解æŸããªãã§ãã ããã ããã©ã«ãã§ã¯ã
ãã¹ãããã(1) root æš©éãåé€ãã代ããã«ãœãŒã¹ ãã¡ã€ã«ã®ææè ãšããŠå®è¡ããŸãã
-p æ°ãããã¡ã€ã«ãäœæãããšãã«ãå ¥åãã¡ã€ã«ãããã¡ã€ã«ã®ã¢ã¯ã»ã¹èš±å¯ãç¶æ¿ããŸããã
ãã¡ã€ã«ã 代ããã«ãããã©ã«ãã®ã¢ã¯ã»ã¹èš±å¯ (ã¢ãŒã 0644) ã§æ°ãããã¡ã€ã«ãäœæããŸãã
-q ã㌠æå®ããããããæ€çŽ¢ããŸã ã㌠ãããŠæåã«èŠã€ãã£ãå€ãæšæºã«æžã蟌ã¿ãŸã
åºåã¹ããªãŒã ã èŠæ±ãããæ å ±ãèŠã€ãã£ãå Žåãçµäºã¹ããŒã¿ã¹ã¯ XNUMX ã§ãã
ããŒå€ã - ãæå®ãããŠããå Žåãããã°ã©ã ã¯æšæºããããŒå€ãèªã¿åããŸãã
å ¥åã¹ããªãŒã ãš XNUMX è¡ã®æžã蟌㿠ããŒ å€ èŠã€ãã£ãåããŒã®åºåã
èŠæ±ãããããŒãå°ãªããšã XNUMX ã€èŠã€ãã£ãå Žåãçµäºã¹ããŒã¿ã¹ã¯ XNUMX ã«ãªããŸãã
-r ããŒãã«ãæŽæ°ãããšããæ¢åã®ãšã³ããªãæŽæ°ããããšããè©Šã¿ã«ã€ããŠæå¥ãèšããªãã§ãã ããã
ãšã«ãããããã®æŽæ°ãè¡ããŸãã
-s ãã¹ãŠã®ããŒã¿ããŒã¹èŠçŽ ãååŸãã次㮠XNUMX è¡ãæžã蟌ã¿ãŸãã ããŒ å€ ããããã®åºå
ãšã¬ã¡ã³ãã èŠçŽ ã¯ããŒã¿ããŒã¹ã®é åºã§åºåãããŸãããå¿ ããããã®é åºã§åºåãããããã§ã¯ãããŸããã
å ã®å ¥åé åºãšåãã§ãã
ãã®æ©èœã¯ Postfix ããŒãžã§ã³ 2.2 以éã§å©çšå¯èœã§ãããå©çšã§ããŸããã
ãã¹ãŠã®ããŒã¿ããŒã¹ ã¿ã€ãã«å¯Ÿå¿ããŸãã
-u UTF-8 ãµããŒããç¡å¹ã«ããŸãã ãsmtputf8_enable =ãã®å ŽåãUTF-8 ãµããŒãã¯ããã©ã«ãã§æå¹ã«ãªããŸãã
ãã¯ãããããŒãšå€ãæå¹ãª UTF-8 æååã§ããå¿ èŠããããŸãã
-U ãsmtputf8_enable = yesããæå®ãããšãUTF-8 æ§æãã§ãã¯ã匷å¶çã«è¡ãããŸãã -b ãš -h ãªãã·ã§ã³ã
-v ãããã°ç®çã§è©³çŽ°ãã°ãæå¹ã«ããŸãã å€æ° -v ãªãã·ã§ã³ã«ããã
ãœãããŠã§ã¢ã¯ãŸããŸãåé·ã«ãªããŸãã
-w ããŒãã«ãæŽæ°ãããšããæ¢åã®ãšã³ããªãæŽæ°ããããšããè©Šã¿ã«ã€ããŠæå¥ãèšããªãã§ãã ããã
ãããŠãããã®è©Šã¿ãç¡èŠããŠãã ããã
åŒæ°ïŒ
ãã¡ã€ã«ã®çš®é¡
ããŒã¿ããŒã¹ã®ã¿ã€ãã ã©ã®ã¿ã€ãããµããŒããããŠãããã確èªããã«ã¯ãããã¹ãã³ã³ãã£ã° -m"
ãã® ãã¹ãããã(1) ã³ãã³ãã¯ããµããŒããããŠããä»»æã®ãã¡ã€ã« ã¿ã€ããã¯ãšãªã§ããŸãããäœæã§ããã®ã¯
次ã®ãã¡ã€ã«ã®çš®é¡:
ããªãŒ åºåãã¡ã€ã«ã¯ããšããååã® btree ãã¡ã€ã«ã§ãã file_name.dbã ããã¯ä»¥äžã§å ¥æå¯èœã§ã
ããµããŒãããã·ã¹ãã db ããŒã¿ããŒã¹ã
cdb åºåã¯ããšããååã® XNUMX ã€ã®ãã¡ã€ã«ã§æ§æãããŸãã file_name.cdbã ããã¯ä»¥äžã§å ¥æå¯èœã§ã
ããµããŒãããã·ã¹ãã cdb ããŒã¿ããŒã¹ã
dbm åºåã¯ã次ã®ååã® XNUMX ã€ã®ãã¡ã€ã«ã§æ§æãããŸãã file_name.pag ãš file_nameããããŸã.
ããã¯ã以äžããµããŒãããã·ã¹ãã ã§å©çšã§ããŸãã dbm ããŒã¿ããŒã¹ã
ããã·ã¥ åºåãã¡ã€ã«ã¯ããã·ã¥åããããã¡ã€ã«ã§ã次ã®ååãä»ããããŸãã file_name.dbã ããã¯ä»¥äžã§å ¥æå¯èœã§ã
ããµããŒãããã·ã¹ãã db ããŒã¿ããŒã¹ã
倱æãã ãã¹ãŠã®ãªã¯ãšã¹ãã確å®ã«å€±æãããããŒãã«ã ã«ãã¯ã¢ãã ããŒãã«åã¯æ¬¡ã®ç®çã§äœ¿çšãããŸãã
ãã®ã³ã°ã®ã¿ã ãã®ããŒãã«ã¯ãPostfix ãšã©ãŒ ãã¹ããç°¡çŽ åããããã«ååšããŸãã
sdbm åºåã¯ã次ã®ååã® XNUMX ã€ã®ãã¡ã€ã«ã§æ§æãããŸãã file_name.pag ãš file_nameããããŸã.
ããã¯ã以äžããµããŒãããã·ã¹ãã ã§å©çšã§ããŸãã sdbm ããŒã¿ããŒã¹ã
ãããã®å Žå ãã¡ã€ã«ã®çš®é¡ ãæå®ãããŠããå ŽåããœãããŠã§ã¢ã¯ãçµç±ã§æå®ãããããŒã¿ããŒã¹ ã¿ã€ãã䜿çšããŸãã
ã ããã©ã«ãã®ããŒã¿ããŒã¹ã®çš®é¡ æ§æãã©ã¡ãŒã¿ãŒã
file_name
ããŒã¿ããŒã¹ãåæ§ç¯ãããšãã®ã«ãã¯ã¢ãã ããŒãã« ãœãŒã¹ ãã¡ã€ã«ã®ååã
蚺æ
åé¡ã¯æšæºãšã©ãŒ ã¹ããªãŒã ãš syslogd(8)ã åºåããªããšããããšã¯ã
åé¡ã¯æ€åºãããŸããã§ããã éè€ãããšã³ããªã¯ã¹ããããããèŠåã®ãã©ã°ãç«ãŠãããŸãã
ãã¹ãããã(1) æåããå Žå (æåãå«ã)ãçµäºã¹ããŒã¿ã¹ XNUMX ã§çµäºããŸãã
"ãã¹ãããã -q" lookup)ã倱æããå Žåã¯ãŒã以å€ã®çµäºã¹ããŒã¿ã¹ã§çµäºããŸãã
ENVIRONMENT
MAIL_CONFIG
Postfix èšå®ãã¡ã€ã«ãå«ãŸãããã£ã¬ã¯ããªã
MAIL_VERBOSE
ãããã°ç®çã§è©³çŽ°ãã°ãæå¹ã«ããŸãã
CONFIGURATION ãã©ã¡ãŒã¿ãŒ
ä»¥äž main.cf ãã©ã¡ãŒã¿ã¯ãã®ããã°ã©ã ã«ç¹ã«é¢é£ããŸãã 以äžã®ããã¹ã
ãã©ã¡ãŒã¿ã®æŠèŠã®ã¿ãæäŸããŸãã èŠã ãã¹ãã³ã³ãã£ã°(5) äŸãå«ã詳现ã«ã€ããŠã¯ã
berkeley_db_create_buffer_size (16777216)
Berkeley DB ããã·ã¥ãŸã㯠btree ãäœæããããã°ã©ã ã®ããŒãã«ããšã® I/O ãããã¡ ãµã€ãº
ããŒãã«ã
berkeley_db_read_buffer_size (131072)
Berkeley DB ããã·ã¥ãŸã㯠btree ãèªã¿åãããã°ã©ã ã®ããŒãã«ããšã® I/O ãããã¡ ãµã€ãº
ããŒãã«ã
config_directory ïŒåç §ããŠãã ãã 'postconf -NS' åºåïŒ
Postfix main.cf ããã³ master.cf èšå®ãã¡ã€ã«ã®ããã©ã«ãã®å Žæã
ããã©ã«ãã®ããŒã¿ããŒã¹ã®çš®é¡ ïŒåç §ããŠãã ãã 'postconf -NS' åºåïŒ
ã§äœ¿çšããããã©ã«ãã®ããŒã¿ããŒã¹ ã¿ã€ã newaliasesïŒ1ïŒ ãã¹ãšã€ãªã¢ã¹ïŒ1ïŒãš ãã¹ãããã(1)
ã³ãã³ãã
smtputf8_enable ïŒã¯ãïŒ
RFC 8..6531 ã§èª¬æãããŠãããããã³ã«ã®äºåç㪠SMTPUTF6533 ãµããŒããæå¹ã«ããŸãã
syslog_facility ïŒéµäŸ¿ïŒ
Postfix ãã°ã® syslog æ©èœã
syslog_name ïŒåç §ããŠãã ãã 'postconf -NS' åºåïŒ
syslog ã¬ã³ãŒãå ã®ããã»ã¹åã®åã«ä»å ãããã¡ãŒã« ã·ã¹ãã åã
ããšãã°ããsmtpdãã¯ãpostfix/smtpdãã«ãªããŸãã
onworks.net ãµãŒãã¹ã䜿çšããŠãªã³ã©ã€ã³ã§ãã¹ããããã䜿çšãã