exim4가 다른 IP가 서버를 사용하여 메일을 보내는 것을 거부하도록 만드는 방법은 무엇입니까?

exim4가 다른 IP가 서버를 사용하여 메일을 보내는 것을 거부하도록 만드는 방법은 무엇입니까?

127.0.0.1에서만 메일을 보낼 수 있도록 smtp 연결만 허용하도록 exim4를 만드는 방법입니다. 동시에 메일도 받을 수 있습니다. dc_local_interfaces로 변경하면 127.0.0.1메일 수신은 안되고 제가 원하는 127.0.0.1만 허용하기 때문에 헷갈리는데요 . 하지만 127.0.0.1에서만 메일을 보낼 수 있도록 허용하는 인터넷에서도 메일을 받고 싶습니다.

나는 우분투를 사용하고 있습니다. 그러나 나는 이것이 아마도 우분투와 실제로 관련이 없다고 생각합니다.

업데이트-exim4.conf.conf

# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='internet'
dc_other_hostnames='mydomain.com'
dc_local_interfaces='0.0.0.0 ; ::0'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

죄송합니다. stackexchange 문자 제한으로 인해 exim4.conf.template을 게시할 수 없습니다.

답변1

기본 exim4 구성에서 relay_from_hosts목록은 서버에서 메일을 보낼 수 있는 호스트를 결정합니다. Exim 문서를 참조하세요:

  • 7장 - 기본 구성 파일일반적인 사용법을 보여줍니다.
  • 44장 - 접근 제어 목록, 섹션 52 - ACL을 사용하여 릴레이 제어에서는 relay_from_hosts액세스 제어 목록을 사용하여 릴레이를 제어하는 ​​데 사용되는 방법에 대한 세부 정보를 보여줍니다.

답변2

이것 때문에 방금 postfix로 변경했습니다.

관련 정보