![Sendmail: 특정 주소로 전송된 이메일 차단 [Centos]](https://linux55.com/image/175579/Sendmail%3A%20%ED%8A%B9%EC%A0%95%20%EC%A3%BC%EC%86%8C%EB%A1%9C%20%EC%A0%84%EC%86%A1%EB%90%9C%20%EC%9D%B4%EB%A9%94%EC%9D%BC%20%EC%B0%A8%EB%8B%A8%20%5BCentos%5D.png)
CentOS
우리는 더 이상 우리와 함께 일하지 않는 사람들에게 이메일을 보내는 일부 시스템을 물려받았습니다 . 그래서 어떤 애플리케이션이 이러한 이메일을 보내는지 모르기 때문에 소스에서 해당 이메일을 차단하고 싶어서 /etc/mail/access
다음과 같이 파일에 액세스하지 못하도록 차단해 보았습니다.
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
To:[email protected] REJECT
새 구성을 로드한 후에도 access.db
다음으로 이동하는 이메일 로그를 볼 수 있습니다.[email protected]
이 구성이 왜 도움이 되지 않는지 아시나요?
감사해요!
답변1
AFAIR 액세스 테이블을 통해 특정 주소로 전송된 이메일을 차단하려면 다음이 필요합니다.FEATURE(access_db)
그리고FEATURE(blacklist_recipients)
존재하다 sendmail.mc
.
[ sendmail 데몬 또는 HUped를 sendmail.mc
다시 컴파일하고 다시 시작해야 함 ]sendmail.cf
바라보다cf/README
sendmail 배포판의 파일.