Postfixã®è¨å®ãããã
æãè¾¼ã¿å¤ã ããã
http://www.postfix-jp.info/trans-2.3/jhtml/postconf.5.html
ï¼åéã¾ããï¼
ã
ãminimal_backoff_time
ãmaximal_backoff_time
ãmaximal_queue_lifetime
ãbounce_queue_lifetime
ãqueue_run_delay
ãããã¸ãã®è¨å®ããã模æ§ã
ãã¨ãã°ã
ã
ãminimal_backoff_time = 60s
ãmaximal_backoff_time = 600s
ãmaximal_queue_lifetime = 1800s
ãbounce_queue_lifetime = 1800s
ãqueue_run_delay = 60s
ãâ»ãsãã¯ç§
ããå ´åã
æååéã«å¤±æããããdefferedãã¥ã¼ã«å
¥ã£ã¦ãqueue_run_delayãã¨ã«defferedãã¥ã¼ããã¥ã¼ãã¹ãã£ã³ã
ã¹ãã£ã³ããã¨ãã«ãã¥ã¼ã«ããã¡ã¼ã«ã®æéãminimal_backoff_timeãããã¦ããåéã
åé失æãã¦ãã¾ã£ãããä»åº¦ã¯defferedãã¥ã¼ã¹ãã£ã³ããã¨ããminimal_backoff_timeã®åã®æéå¾ã«åééå§ã
åé失æãã¦ãã¾ã£ãããä»åº¦ã¯defferedãã¥ã¼ã¹ãã£ã³ããã¨ããminimal_backoff_timeã®åã®åã®æéå¾ã«åééå§ã
åé失æãã¦ãï½ï¼ry
ã£ã¦æãã§maximal_backoff_timeããããã¾ã§ç¹°ãè¿ãã
ãããå¾ã¯maximal_backoff_timeã®ééã§åéã
æçµçã«maximal_queue_lifetimeãããããåéçµäºãbounce_queue_lifetimeã®æéãããããBounceæ±ãã§éä¿¡è ã«ã¨ã©ã¼ã¡ã¼ã«ã§è¿ããã£ã¨ããæãã
å®éã«ãã¹ãããçµæã¯ãã®ãããªæãã
ãMay 29 18:47:16 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051:from=<[email protected]>, ããããããsize=293, nrcpt=1 (queue active) ãMay 29 18:47:16 testserver postfix/smtp[4847]: ãããããã9D7FE1D0051:to=<[email protected]>, ããããããrelay=none, delay=107, delays=107/0.01/0/0, ããããããdsn=4.4.3, status=deferred ãããããã(Host or domain name not found. ãããããããName service error for name=hogehoge.jp ãããããããããtype=MX: Host not found, try again) ãMay 29 18:49:16 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051:from=<[email protected]>, ããããããsize=293, nrcpt=1 (queue active) ãMay 29 18:49:16 testserver postfix/smtp[4854]: ãããããã9D7FE1D0051:to=<[email protected]>, ããããããrelay=none, delay=227, delays=227/0.01/0/0, ããããããdsn=4.4.3, status=deferred ãããããã(Host or domain name not found. ãããããããName service error for name=hogehoge.jp ããããããããtype=MX: Host not found, try again) ãMay 29 18:53:16 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051:from=<[email protected]>, ããããããsize=293, nrcpt=1 (queue active) ãMay 29 18:53:16 testserver postfix/smtp[4865]: ãããããã9D7FE1D0051:to=<[email protected]>, ããããããrelay=none, delay=467,delays=467/0.01/0/0, ããããããdsn=4.4.3, status=deferred ãããããã(Host or domain name not found. ãããããããName service error for name=hogehoge.jp ããããããããtype=MX: Host not found, try again) ãMay 29 19:01:16 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051:from=<[email protected]>, ããããããsize=293, nrcpt=1 (queue active) ãMay 29 19:01:16 testserver postfix/smtp[4885]: ãããããã9D7FE1D0051:to=<[email protected]>, ããããããrelay=none, delay=947, delays=947/0.01/0/0, ããããããdsn=4.4.3, status=deferred ãããããã(Host or domain name not found. ãããããããName service error for name=hogehoge.jp ããããããããtype=MX: Host not found, try again) ãMay 29 19:11:16 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051:from=<[email protected]>, ããããããsize=293, nrcpt=1 (queue active) ãMay 29 19:11:16 testserver postfix/smtp[4907]: ãããããã9D7FE1D0051:to=<[email protected]>, ããããããrelay=none, delay=1547, delays=1547/0.01/0/0, ããããããdsn=4.4.3, status=deferred ãããããã(Host or domain name not found. ãããããããName service error for name=hogehoge.jp ããããããããtype=MX: Host not found, try again) ãMay 29 19:21:16 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051:from=<[email protected]>, ããããããsize=293, nrcpt=1 (queue active) ãMay 29 19:21:17 testserver postfix/smtp[4928]: ãããããã9D7FE1D0051:to=<[email protected]>, ããããããrelay=none, delay=2147, delays=2147/0.01/0/0, ããããããdsn=4.4.3, status=deferred ãããããã(Host or domain name not found. ãããããããName service error for name=hogehoge.jp ããããããããtype=MX: Host not found, try again) ãMay 29 19:21:17 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051: from=<[email protected]>, ããããããstatus=expired, returned to sender ãMay 29 19:21:17 testserver postfix/qmgr[4833]: ãããããã9D7FE1D0051: removed
18:47:16âé
ä¿¡éå§ minimal_backoff_time(60s)ãã§ã«2åããéå§
â +2
18:49:16âåé1åç®
â +4
18:53:16âåé2åç®
â +8
19:01:16âåé3åç® maximal_backoff_time(600s)ããããã®ã§ããã以é600sãã¤
â +10
19:11:16âåé4åç®
â +10
19:21:17âåé5åç® maximal_queue_lifetime(1800s)ããããã®ã§
ããããããããããBounceæ±ãã§ãã¥ã¼ããåé¤
ï¼é éã¾ããï¼
ãsmtp_destination_concurrency_limit
ããé
éå
ãã¨ã®ä¸¦åéä¿¡æ°
ãsmtp_destination_recipient_limit
ãã1ã»ãã·ã§ã³å
ã«é
éããã¡ã¼ã«ã®æ°
ç¹å®ã®ãã¦å
ãã¡ã¤ã³ãã¨ã«ä¸è¨è¨å®ãåæ ãå¯è½ã
ãã¨ãã°ãdocomo.ne.jpå®ã¦ã®ã¡ã¼ã«ã ã並åéä¿¡ãªãã§1ã»ãã·ã§ã³1éã®ã¿éä¿¡ã¨ããããå ´åã
master.cfã«
ãdocomo-smtp unix - - n - 1 smtp
ãããã-o smtp_destination_concurrency_limit=1
ãããã-o smtp_destination_recipient_limit=1
ã¨ã追å ã
ã§ãtransportãã¡ã¤ã«ãªã©ãç¨æ
ããdocomo.ne.jp docomo-smtp:
# postmap transport
ã£ã¨å®è¡ããããtransport.dbãæ´æ°(æ°è¦ä½æ)ãããã
main.cfå ã«ã
ããtransport_maps = hash:/etc/postfix/transport
ãè¨è¿°
ã§ããªãã¼ã
ã/etc/rc.d/init.d/postfix reload
ã¨ãã
ã¡ãªã¿ã«ãdocomo.ne.jpãã¦ã®ã¡ã¼ã«ãå¥ãµã¼ãã¼ã«ãªã¬ã¼ããããã®ãªãã
ãã
docomo.ne.jp docomo-smtp:[192.168.0.100]
IPããã¹ããæ¸ãå ´åã[]ã§å²ã£ã¦ããã«ãã ãã
ã¨ãã¨ãã