550-5.7.26 This mail is unauthenticated, which poses a security risk to the550-5.7.26 sender and Gmail users, and has been blocked. The sender must550-5.7.26 authenticate with at least one of SPF or DKIM. For this message,550-5.7.26 DKIM checks did not pass and SPF check for [www.exsample.co.jp] did550-5.7.26 not pass with ip: [210.XXX.XXX.XXX]. The sender should visit550-5.7.26 https://support.google.com/mail/answer/81126#authentication for550 5.7.26 instructions on setting up authentication.
# nslookup -q=TXT exsample.co.jp
exsample.co.jp text = "v=spf1 ip4:202.XXX.XXX.XXX ip4:163.XXX.XXX.XXX ip4:210.XXX.XXX.XXX include:spf.securemx.jp ~all"
$mail_data = <<EOM;From: admin@exsample.co.jpTo: hogehoge@gmail.comSubject: TEST MAILMIME-Version: 1.0Content-type: text/plain; charset=ISO-2022-JPContent-Transfer-Encoding: 7bitX-Mailer: CGI-Scripttest death.EOMif (!open (MAIL,"| sendmail -t")) {print "Error : Mail Send\n";}print MAIL $mail_data;close(MAIL);
if (!open (MAIL,"| sendmail -t -f admin@exsample.co.jp")) {print "Error : Mail Send\n";}