This is a growing problem on my end, and I'm at a loss on how to fix it.
I've had three people report this same problem with Outlook.com, and today someone from Gmail had the same problem.
I have a simple form on my site when users forget their password; they enter their username, it emails the password to them through a Perl script.
Gmail and Yahoo have always sent these to spam, which sucks. But now it looks like Outlook and Gmail are just denying them altogether; I don't get a bounce message, but they don't show up in spam folders or anything, either.
In /var/log/exim_mainlog, it looks like the email is being delivered:
The script that I'm using is pretty simple:
Any suggestions? Do I need to modify the SPF filter, modify the Perl script to include message headers... something else?
I've had three people report this same problem with Outlook.com, and today someone from Gmail had the same problem.
I have a simple form on my site when users forget their password; they enter their username, it emails the password to them through a Perl script.
Gmail and Yahoo have always sent these to spam, which sucks. But now it looks like Outlook and Gmail are just denying them altogether; I don't get a bounce message, but they don't show up in spam folders or anything, either.
In /var/log/exim_mainlog, it looks like the email is being delivered:
Code:
2017-07-21 04:42:55 1dYTWR-0002sC-Dq <= [email protected]_name.example.com U=account_username P=local S=624 T="xxxx User Information" for [email protected] [email protected]
2017-07-21 04:42:55 1dYTWR-0002sC-Dq SMTP connection outbound 1500626575 1dYTWR-0002sC-Dq example.com [email protected]
2017-07-21 04:43:00 1dYTWR-0002sC-Dq => [email protected] R=lookuphost T=remote_smtp H=gmail-smtp-in.l.google.com [209.85.232.27] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes C="250 2.0.0 OK 1500626581 p188si3454800qkc.290 - gsmtp"
Code:
open (MAIL, "|/usr/sbin/sendmail -t") || die "Can't open /usr/sbin/sendmail\n";
print MAIL "To: $to\n";
print MAIL "From: $from ($title)\n";
print MAIL "Subject: $title User Information\n\n";
print MAIL $body;
close (MAIL);