If you want to solve the problem and get out of the black list, then you need to delve into the server and understand what the problem is. If you do not do this, all efforts will be futile.
mail
calls using mail.log ini . grep sasl_username /var/log/maillog|awk {'print $NF'} |sort |uniq -c |sort -n
Remote_host_said:_550-5.7.1 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_blocked.
Please_visit_http://www.google.com/mail/help/bulk_mail.html
_to_review_our_Bulk_Email_Senders_Guidelines
421-4.7.0 unsolicited mail originating from your IP address.
To protect ourn421-4.7.0users from spam, mail sent from your IP address has been temporarilyn4
21-4.7.0 rate limited. Please visit http://www.google.com/mail/help/bulk_mail.n421 4.7.0 html
to review our Bulk Email Senders Guidelines. l41si55243084eef.158 - gsmtp
Please resend your message at a later time. If your user is able to receive mail at that time, your message will be delivered. Try again later.
IP address has been temporarily blocked. Review our Bulk Email Senders Guidelines. This error occurs when your Google Apps domain is registered. IP address has been blocked.
421, β4.4.5β, Server busy, try again later. | |||||||
421, β4.7.0β, IP not in whitelist for RCPT domain, closing connection. | 421, β4.7.0β, our IP address. | ||||||
421, β4.7.0β, Temporary System Problem. Try again later. | |||||||
421, β4.7.0β, TLS required for RCPT domain, closing connection. | |||||||
421, β4.7.0β, Try again later, closing connection. | 450, β4.2.1β is receiving mail too quickly. | ||||||
450, β4.2.1β, youβre not satisfied. Please resend your message at a later time. If your user is able to receive mail at that time, your message will be delivered. | |||||||
451, β4.3.0β, Mail server temporarily rejected message. | |||||||
451, β4.3.0β, Multiple destination domains per transaction is unsupported. Please try again. | |||||||
451, β4.4.2β, Timeout - closing connection. | |||||||
451, β4.5.0β, SMTP protocol violation, see RFC 2821. | |||||||
452, β4.2.2β, you tried to reach is over quota. | 452, β4.5.3β, please try this recipient in a separate transaction. | 452, β4.5.3β, Your message has too many recipients. | |||||
454, β4.5.0β, SMTP protocol violation, no commands allowed to pipeline after STARTTLS, see RFC 3207. | |||||||
454, β4.7.0β, Cannot authenticate due to the temporary system problem. | |||||||
454, β5.5.1β, STARTTLS may not be repeated. | |||||||
501, β5.5.2β, Cannot Decode response. | |||||||
502, β5.5.1β, Too many unrecognized commands, goodbye. | 502, β5.5.1β, Unimplemented command. | 502, β5.5.1β, Unrecognized command. | 503, β5.5.1β, βEHLO / HELO first. | 503, β5.5.1β, MAIL first. | 503, β5.5.1β, RCPT first. | 503, β5.7.0β, No identity changes. | |
504, β5.7.4β, Unrecognized Authentication Type. | |||||||
530, β5.5.1β, Authentication Required. | |||||||
530, β5.7.0β, Must issue a STARTTLS command first. | |||||||
535, β5.5.4β, Optional Argument not permitted for that AUTH mode. | 535, β5.7.1β, Application-specific password required. | 535, β5.7.1β, Please try again. | 535, β5.7.1β, Username and Password not accepted. | ||||
550, β5.1.1β, tried to reach does not exist. Please try to double-check the spaces for unnecessary spaces. | |||||||
550, β5.2.1β, you tried to reach is disabled. | 550, β5.2.1β, you are not satisfied. | 550, β5.4.5β, Daily sending quota exceeded. | 550, β5.7.0β, Mail relay denied. | 550, β5.7.0β, Mail Sending denied. | 550, β5.7.1β, Email quota exceeded. | 550, β5.7.1β, Invalid credentials for relay. | 550, β5.7.1β, unsolicited mail IP address. |
550, β5.7.1β, unsolicited mail. To reduce the amount of spam sent to Gmail, this message has been blocked. | |||||||
550, β5.7.1β, it is not authorized to send emails directly to our servers. Please use the SMTP relay at your service provider instead. | |||||||
550, β5.7.1β, This is what youβve sent. Please contact your domain administrator for further details. | |||||||
550, β5.7.1β, Unauthenticated email is not accepted from this domain. | |||||||
552, β5.2.2β, you tried to reach is over quota. | |||||||
552, β5.2.3β, Your message exceeded Googleβs message size limits. | |||||||
553, β5.1.2β, We canβt be able to find the recipient domain. Please check for any spaces youβre typing after the recipientβs email address. | |||||||
554, β5.6.0β, Mail message is malformed. Not accepted. | |||||||
554, β5.6.0β, Message exceeded 50 hops, this may indicate a mail loop. | |||||||
554, β5.7.0β, Too Many Unauthenticated commands. | |||||||
555, β5.5.2β, Syntax error. |
A web application that sent spam to Gmail was compromised on the server. We removed this application from the server. After removing the application, we no longer see unauthorized mail being sent to Gmail.
<br data-mce-bogus="1">
[jeffh@office ~]$ host -t mx gmail.com
gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
gmail.com mail is handled by 10 alt1.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 20 alt2.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 30 alt3.gmail-smtp-in.l.google.com.
<br data-mce-bogus="1">
[jeffh@office ~]$ telnet alt4.gmail-smtp-in.l.google.com 25
Trying 2800:3f0:4003:c01::1a...
Connected to alt4.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP c68si3349613vkd.85 - gsmtp
<br data-mce-bogus="1">
[jeffh@office ~]$ ping -c5 alt4.gmail-smtp-in.l.google.com
PING alt4.gmail-smtp-in.l.google.com (64.233.190.26) 56(84) bytes of data.
64 bytes from ce-in-f26.1e100.net (64.233.190.26): icmp_seq=1 ttl=43 time=169 ms
64 bytes from ce-in-f26.1e100.net (64.233.190.26): icmp_seq=2 ttl=43 time=169 ms
64 bytes from ce-in-f26.1e100.net (64.233.190.26): icmp_seq=3 ttl=43 time=169 ms
64 bytes from ce-in-f26.1e100.net (64.233.190.26): icmp_seq=4 ttl=43 time=169 ms
64 bytes from ce-in-f26.1e100.net (64.233.190.26): icmp_seq=5 ttl=43 time=169 ms
--- alt4.gmail-smtp-in.l.google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4175ms
rtt min/avg/max/mdev = 169.448/169.487/169.600/0.523 ms
Source: https://habr.com/ru/post/328490/
All Articles