Previous Thread
Next Thread
Print Thread
Emailx works, but Sendmail began failing a few days ago - why? #35820 12 Jan 23 06:58 PM
Joined: Jun 2001
Posts: 713
S
Steven Shatz Offline OP
Member
OP Offline
Member
S
Joined: Jun 2001
Posts: 713
As of 1/9/23 BackupEdge notification emails stopped arriving. They are being sent from Centos 7 as per /var/log/maillog but the email is "bouncing" with this message:

Code
Jan 12 13:32:23 centos7 postfix/smtp[30585]: D69771AD3C0: to=<sshatz@aesopscorp.com>, relay=aesopscorp-com.mail.protection.outlook.com[104.47.57.138]:25, delay=0.62, delays=0.02/0.01/0.37/0.22, dsn=5.7.1, status=bounced (host aesopscorp-com.mail.protection.outlook.com[104.47.57.138] said: 550 5.7.1 Service unavailable, Client host [24.164.185.247] blocked using Spamhaus. To request removal from this list see https://www.spamhaus.org/query/ip/24.164.185.247 AS(1450) [DM6NAM11FT042.eop-nam11.prod.protection.outlook.com] (in reply to RCPT TO command))
Jan 12 13:32:23 centos7 postfix/cleanup[30583]: 883BC1AD3C1: message-id=<20230112183223.883BC1AD3C1@centos7.localdomain>
Jan 12 13:32:23 centos7 postfix/bounce[30586]: D69771AD3C0: sender non-delivery notification: 883BC1AD3C1

Email still arrives when sent via EMAILX to the same email address from the same server. Why does that work, but sendmail (and mail) fail?

What would have caused it to suddenly stop working?

And does anyone have any idea on how I can fix the "bouncing" problem?

-- Steven --

Re: Emailx works, but Sendmail began failing a few days ago - why? [Re: Steven Shatz] #35821 12 Jan 23 07:14 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The first line of the message (you have to scroll way to the right) indicates that it is being blocked by Spamhaus, which is one of the many spam-identification "services", and which apparently your mail/postfix installation is configured to use.

EMAILX communicates directly with the SMTP server that you specify in its configuration file, whereas the Linux mail command is set up to use postfix as its local SMTP server, and that's where the spam filtering is taking place. So EMAILX is bypassing it.

Unfortunately I don't have any simple tips on configuring postfix, but I suspect that an internet search will lead you to instructions on editing its configuration to remove the Spamhaus filtering. Either that, or use the link provided in the error message to request that Spamhous take your server off its black list.

Another possibility, I suppose, would be to create a bash script that could replace the mail command, which instead launched an instance of A-Shell to use EMAILX to send the message.

On a related aside, a year or two ago we found that microsabio.com was on a couple of spam "services" blacklists, and it was a veritable nightmare to try to get off them. There are several websites which will run your domain against many spam filter/services and let you know which if any have you tagged. But getting off them is a different matter. It's almost like a protection racket, where you have to become a priority subscriber/member to each of these services in order to request that you be removed from their lists. We eventually contracted with a guy whose business was to deal with this problem, and for a couple hundred dollars, he did manage to clear up the problem. (Although it seems to resurface periodically, which is why we sometimes send mail using multiple email domains.)

Re: Emailx works, but Sendmail began failing a few days ago - why? [Re: Steven Shatz] #35822 12 Jan 23 07:28 PM
Joined: Jun 2001
Posts: 713
S
Steven Shatz Offline OP
Member
OP Offline
Member
S
Joined: Jun 2001
Posts: 713
FYI: I followed the link to Spamhaus, but when I entered the indicated IP address, it told me "24.164.185.247 has no issues". That IP, according to "whois", belongs to Spectrum (which is my ISP). So, I think the error code (550-5.7.1) is wrong. I (and Spectrum) aren't black-listed.

If I can't resolve this any other way, your idea of changing BackupEdge's notifier to invoke a script that launches A-Shell and Emailx is convoluted, but nonetheless, a good solution.

Last edited by Steven Shatz; 12 Jan 23 07:29 PM.

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3