내 Postfix 메일 서버가 알 수 없는 사용자로부터 로그인 시도(무차별 시도)를 받았습니다. 어떻게 해야 합니까?

내 Postfix 메일 서버가 알 수 없는 사용자로부터 로그인 시도(무차별 시도)를 받았습니다. 어떻게 해야 합니까?

나는 postfix + dovecot 메일 서버를 가지고 있으며 오늘 내 로그를 확인하는 동안 알 수 없는 사용자/IP 주소로부터 로그인 시도를 보았고 이것이 무차별 대입 공격임에 틀림없다고 생각했습니다.

이런 일이 발생하는 것을 어떻게 예방하고 궁극적으로 방지할 수 있습니까?

도와주셔서 감사합니다!

통나무:

Aug 24 15:36:34 mail dovecot: auth: passwd-file(zamudio,201.222.55.26): unknown user (SHA1 of given password: f72ac0)
Aug 24 15:36:36 mail postfix/smtpd[12568]: warning: unknown[201.222.55.26]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Aug 24 15:36:36 mail postfix/smtpd[12568]: disconnect from unknown[201.222.55.26] helo=1 auth=0/1 quit=1 commands=2/3
Aug 24 15:38:38 mail postfix/anvil[12413]: statistics: max connection rate 1/60s for (smtp:200.124.242.82) at Aug 24 15:30:49
Aug 24 15:38:38 mail postfix/anvil[12413]: statistics: max connection count 1 for (smtp:200.124.242.82) at Aug 24 15:30:49
Aug 24 15:38:38 mail postfix/anvil[12413]: statistics: max cache size 1 at Aug 24 15:30:49
Aug 24 15:39:34 mail postfix/smtpd[12571]: connect from unknown[190.117.185.251]
Aug 24 15:39:35 mail dovecot: auth: passwd-file(helene,190.117.185.251): unknown user (SHA1 of given password: cb4a0f)
Aug 24 15:39:37 mail postfix/smtpd[12571]: warning: unknown[190.117.185.251]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Aug 24 15:39:37 mail postfix/smtpd[12571]: disconnect from unknown[190.117.185.251] helo=1 auth=0/1 quit=1 commands=2/3
Aug 24 15:42:17 mail postfix/smtpd[12574]: connect from unknown[175.140.139.233]
Aug 24 15:42:18 mail dovecot: auth: passwd-file(payroll,175.140.139.233): unknown user (SHA1 of given password: 4de472)
Aug 24 15:42:20 mail postfix/smtpd[12574]: warning: unknown[175.140.139.233]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Aug 24 15:42:20 mail postfix/smtpd[12574]: disconnect from unknown[175.140.139.233] helo=1 auth=0/1 quit=1 commands=2/3

답변1

서버가 오픈 릴레이 역할을 하려고 합니다. 당신은 정의해야smtpd_relay_restrictions옵션. 기본적으로 다음 규칙을 사용합니다.

smtpd_relay_restrictions = permit_mynetworks,
                           permit_sasl_authenticated, 
                           defer_unauth_destination

이는 열려 있던 릴레이가 닫혀 있음을 의미합니다.

귀하의 서버는 공개되어 있으므로 귀하의 서버를 통해 지속적으로 메일을 보내려고 하는 인터넷 봇에 대해 겸손해야 합니다.

또는 서버를 테스트 환경으로만 사용하는 경우 다른 IP는 차단하고 신뢰할 수 있는 IP/네트워크만 허용할 수 있습니다.

관련 정보