Mail server suddenly stopped accepting ZM emails - resolved

Forum for questions and support relating to the 1.25.x releases only.
Locked
B F
Posts: 32
Joined: Sat May 05, 2012 5:06 pm

Mail server suddenly stopped accepting ZM emails - resolved

Post by B F »

Problem: A mail server suddenly stopped accepting emails from my ZoneMinder server ('host.example.com' - not the real name).

Solution: A telnet session to the mail server SMTP port revealed 'Our system has detected an unusual rate of unsolicited mail originating from your IP address. To protect our users from spam, mail sent from your IP address has been temporarily rate limited.'
- in fact no spam was being sent
- it turned out my ZoneMinder server had no sender policy framework (SPF) entry so I added one
- a different error message revealed itself after this and a lookup of my ZoneMinder IP address on http://cbl.abuseat.org/lookup.cgi reported 'This IP address is HELO'ing as "localhost.localdomain" which violates the relevant standards (specifically: RFC5321).'
- the page http://cbl.abuseat.org/linuxnonserver.html provided the answer
- a dirty hack to '/usr/bin/zmfilter.pl' corrected the problem and got me back up and running again until I can do a neater fix

BEFORE:

Code: Select all

1002             ### Send the Message
1003             MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
1004             $mail->send();

1096             ### Send the Message
1097             MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
1098             $mail->send();
AFTER:

Code: Select all

1002             ### Send the Message
1003             MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60, Hello=>'host.example.com' );
1004             $mail->send();

1096             ### Send the Message
1097             MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60, Hello=>'host.example.com' );
1098             $mail->send();
It's possible this might be resolved in versions of ZoneMinder > 1.25.0
Locked