
Wie kann ich exim4 so einstellen, dass es SMTP-Verbindungen nur zum Senden von E-Mails von 127.0.0.1 zulässt, aber gleichzeitig auch E-Mails empfängt? Das verwirrt mich, denn wenn ich dc_local_interfaces
zu ändere 127.0.0.1
, kann es keine E-Mails empfangen, sondern nur 127.0.0.1 zulassen, was ich will. Aber ich möchte auch E-Mails aus dem Internet empfangen, während nur 127.0.0.1 zum Senden von E-Mails zugelassen ist.
Ich verwende Ubuntu. Aber ich denke, das hat wahrscheinlich nicht wirklich etwas mit Ubuntu zu tun.
update-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'
Tut mir leid, ich kann exim4.conf.template aufgrund der Zeichenbeschränkung von Stackexchange nicht posten.
Antwort1
In der Standardkonfiguration von exim4 relay_from_hosts
bestimmt die Liste, welche Hosts E-Mails von Ihrem Server senden können. Siehe die Exim-Dokumentation:
- Kapitel 7 - Die Standardkonfigurationsdateizeigt die typische Verwendung.
- Kapitel 44: Zugriffskontrolllisten, Abschnitt 52 – Verwenden einer ACL zur Steuerung der Weiterleitung, zeigt Details zur
relay_from_hosts
Verwendung von Zugriffskontrolllisten zur Steuerung der Weiterleitung.
Antwort2
Ich bin deshalb gerade zu Postfix gewechselt.