D
D
Dmitry Serikov2021-06-19 17:33:09
postfix
Dmitry Serikov, 2021-06-19 17:33:09

How to stop spam with postfix?

Mail log, I'm a noob at this, please help, my first vps .. These logs are growing by leaps and bounds, 5 Gig each ..

Jun 19 17:17:13 5-63-154-252 postfix/smtpd[16540]: connect from unknown[141.98.10.147]
Jun 19 17:17:13 5-63-154-252 postfix/smtpd[16540]: warning: unknown[141.98.10.147]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jun 19 17:17:13 5-63-154-252 postfix/smtpd[16540]: disconnect from unknown[141.98.10.147] ehlo=1 auth=0/1 quit=1 commands=2/3
Jun 19 17:17:37 5-63-154-252 postfix/pickup[16483]: 571142C: uid=0 from=<root>
Jun 19 17:17:37 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:17:37 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 571142C; Sat, 19 Jun"
Jun 19 17:17:37 5-63-154-252 postfix/cleanup[16537]: warning: 571142C: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:17:37 5-63-154-252 postfix/pickup[16483]: warning: maildrop/E359D28: error writing 571142C: queue file write error
Jun 19 17:18:03 5-63-154-252 postfix/sendmail[16694]: warning: /etc/postfix/main.cf, line 133: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
Jun 19 17:18:03 5-63-154-252 postfix/postdrop[16695]: warning: /etc/postfix/main.cf, line 133: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
Jun 19 17:18:03 5-63-154-252 postfix/pickup[16483]: 22AF32E: uid=0 from=<root>
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 22AF32E; Sat, 19 Jun"
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16537]: warning: 22AF32E: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:18:03 5-63-154-252 postfix/pickup[16483]: warning: maildrop/E359D28: error writing 22AF32E: queue file write error
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16696]: warning: /etc/postfix/main.cf, line 133: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
Jun 19 17:18:03 5-63-154-252 postfix/pickup[16483]: 25B462E: uid=0 from=<root>
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 25B462E; Sat, 19 Jun"
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16537]: warning: 25B462E: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:18:03 5-63-154-252 postfix/pickup[16483]: warning: maildrop/224FD2C: error writing 25B462E: queue file write error
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16696]: error: open /etc/postfix/header_checks: No such file or directory
Jun 19 17:18:03 5-63-154-252 postfix/cleanup[16696]: error: open /etc/postfix/body_checks: No such file or directory
Jun 19 17:18:37 5-63-154-252 postfix/pickup[16483]: 3C7172E: uid=0 from=<root>
Jun 19 17:18:37 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:18:37 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 3C7172E; Sat, 19 Jun"
Jun 19 17:18:37 5-63-154-252 postfix/cleanup[16537]: warning: 3C7172E: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:18:37 5-63-154-252 postfix/pickup[16483]: warning: maildrop/E359D28: error writing 3C7172E: queue file write error
Jun 19 17:18:37 5-63-154-252 postfix/pickup[16483]: 3DDF12E: uid=0 from=<root>
Jun 19 17:18:37 5-63-154-252 postfix/cleanup[16696]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:18:37 5-63-154-252 postfix/cleanup[16696]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 3DDF12E; Sat, 19 Jun"
Jun 19 17:18:37 5-63-154-252 postfix/cleanup[16696]: warning: 3DDF12E: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:18:37 5-63-154-252 postfix/pickup[16483]: warning: maildrop/224FD2C: error writing 3DDF12E: queue file write error
Jun 19 17:18:50 5-63-154-252 postfix/smtpd[16540]: connect from unknown[141.98.10.154]
Jun 19 17:18:51 5-63-154-252 postfix/smtpd[16540]: warning: unknown[141.98.10.154]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jun 19 17:18:51 5-63-154-252 postfix/smtpd[16540]: disconnect from unknown[141.98.10.154] ehlo=1 auth=0/1 quit=1 commands=2/3
Jun 19 17:19:30 5-63-154-252 postfix/smtpd[16540]: warning: hostname ip-113-66.4vendeta.com does not resolve to address 78.128.113.66: Name or service not known
Jun 19 17:19:30 5-63-154-252 postfix/smtpd[16540]: connect from unknown[78.128.113.66]
Jun 19 17:19:37 5-63-154-252 postfix/pickup[16483]: 6B6172E: uid=0 from=<root>
Jun 19 17:19:37 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:19:37 5-63-154-252 postfix/cleanup[16537]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 6B6172E; Sat, 19 Jun"
Jun 19 17:19:37 5-63-154-252 postfix/cleanup[16537]: warning: 6B6172E: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:19:37 5-63-154-252 postfix/pickup[16483]: warning: maildrop/E359D28: error writing 6B6172E: queue file write error
Jun 19 17:19:37 5-63-154-252 postfix/pickup[16483]: 6CDBA2E: uid=0 from=<root>
Jun 19 17:19:37 5-63-154-252 postfix/cleanup[16696]: warning: regexp:/etc/postfix/header_checks is unavailable. open /etc/postfix/header_checks: No such file or directory
Jun 19 17:19:37 5-63-154-252 postfix/cleanup[16696]: warning: regexp:/etc/postfix/header_checks lookup error for "Received: by 5-63-154-252.cloudvps.regruhosting.ru (Postfix, from userid 0)??id 6CDBA2E; Sat, 19 Jun"
Jun 19 17:19:37 5-63-154-252 postfix/cleanup[16696]: warning: 6CDBA2E: header_checks map lookup problem -- message not accepted, try again later
Jun 19 17:19:37 5-63-154-252 postfix/pickup[16483]: warning: maildrop/224FD2C: error writing 6CDBA2E: queue file write error
Jun 19 17:19:39 5-63-154-252 postfix/smtpd[16540]: warning: unknown[78.128.113.66]: SASL PLAIN authentication failed:
Jun 19 17:19:39 5-63-154-252 postfix/smtpd[16540]: lost connection after AUTH from unknown[78.128.113.66]
Jun 19 17:19:39 5-63-154-252 postfix/smtpd[16540]: disconnect from unknown[78.128.113.66] ehlo=1 auth=0/1 commands=1/2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-06-19
@q2digger

Can for a start put things in order in the postfix config?
this file /etc/postfix/header_checks is missing, there is no such thing in the regular installation, so this is your crutch, fix it. , and there are no special problems in the log, well, incoming, these are normal everyday life for a mail server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question