Contents
https://qmail.jms1.net/relay.shtml
RELAYCLIENT
qmail-smtpd will accept an incoming message if an environment variable called RELAYCLIENT exists when qmail-smtpd starts. This variable normally does not exist, unless you are purposely setting up an open relay for some reason.
1. whois
2. history
127.:allow,RELAYCLIENT="" 192.168.1.:allow,RELAYCLIENT="" 210.:deny =:allow :allow,RBLSMTPD="-We do not accept mail from IP addresses without reverse DNS."
DJB/netqmail/man/man8/qmail-smtpd
中継の設定:環境変数RELAYCLIENTが設定されているときには、rcpthostsを無視して、qmail-smtpdはすべてのメイルを受け付ける。
- (FAQ 5.4.を参照) このとき、RELAYCLIENTの値を各受信アドレスの後につけ加える。
3. Gmail error
単純な中継はSPFエラーになる。(当然)
- tmaeno.info の SPF に 中継ホストを追加しておく。
@4000000065dac81f185587c4 info msg 1050287: bytes 1349 from <wordpress@tmaeno.info> qp 204249 uid 1006 @4000000065dac81f187709e4 starting delivery 338: msg 1050287 to remote maenotoshinori@gmail.com @4000000065dac81f187711b4 status: local 0/10 remote 1/20 @4000000065dac8212965ffe4 delivery 338: failure: 142.251.170.27_failed_after_I_sent_the_message./Remote_host_said:_550-5.7.26_This_mail_has_been_blocked_because_the_sender_is_unauthenticated./550-5.7.26_Gmail_requires_all_senders_to_authenticate_with_either_SPF_or_DKIM./550-5.7.26_/550-5.7.26__Authentication_results:/550-5.7.26__DKIM_=_did_not_pass/550-5.7.26__SPF_[tmaeno.info]_with_ip:_[157.7.113.173]_=_did_not_pass/550-5.7.26_/550-5.7.26__For_instructions_on_setting_up_authentication,_go_to/550_5.7.26__https://support.google.com/mail/answer/81126#authentication_h20-20020aa786d4000000b006e215fc036asi1728434pfo.218_-_gsmtp/STARTTLS_proto=TLSv1.3;_cipher=TLS_AES_256_GCM_SHA384;_subject=/CN=mx.google.com;_issuer=/C=US/O=Google_Trust_Services_LLC/CN=GTS_CA_1C3;/ @4000000065dac82129664a1c status: local 0/10 remote 0/20 @4000000065dac82129b2accc bounce msg 1050287 qp 204251 @4000000065dac82129b2b0b4 end msg 1050287 @4000000065dac82129c759c4 new msg 1050683 @4000000065dac82129c759c4 info msg 1050683: bytes 2575 from <> qp 204251 uid 1011 @4000000065dac82129f61e6c starting delivery 339: msg 1050683 to remote wordpress@tmaeno.info @4000000065dac82129f62254 status: local 0/10 remote 1/20 @4000000065dac8212ddc2684 delivery 339: failure: 14.192.44.5_does_not_like_recipient./Remote_host_said:_553_sorry,_that_domain_isn't_in_my_list_of_allowed_rcpthosts_(#5.7.1)/Giving_up_on_14.192.44.5./ @4000000065dac8212ddef15c status: local 0/10 remote 0/20 @4000000065dac8212e1c581c bounce msg 1050683 qp 204253 @4000000065dac8212e1cc194 end msg 1050683 @4000000065dac8212e2d9244 new msg 1050445 @4000000065dac8212e2de064 info msg 1050445: bytes 3143 from <#@[]> qp 204253 uid 1011 @4000000065dac8212e49b564 starting delivery 340: msg 1050445 to local postmaster@conoha.qmail.jp @4000000065dac8212e49b94c status: local 1/10 remote 0/20 @4000000065dac8212f30297c delivery 340: success: did_1+0+0/ @4000000065dac8212f32c574 status: local 0/10 remote 0/20 @4000000065dac8212f351734 end msg 1050445 @4000000065dac88e2b6a72d4 new msg 1050287