also ich setzt grad mal ne neue (hoffentlich sichere) Postfix config auf...
nachdem ich jetzt hier im Forum gelesen habe, auf http://www.postfix.org und sonst im Netz sind noch ein paar Fragen offen, vielleicht kann mir ja einer weiterhelfen (p.s.: meine Config: Suse 8.1 + 1und1 + postfix + Confixx):
1. es geht um $mydestination
die Config sagt:
default 1und1 Einstellung:# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for. That includes
# Sendmail-style virtual domains hosted on this machine.
Code: Select all
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomainCode: Select all
mydestination = $myhostname, $mydomain, localhost.$mydomain2. relay_domains = $mydestination
was macht das genau ?
die Config sagt:
meine Meinung: nur Mails von meinem Server können gerelayed werden...# The relay_domains parameter restricts what clients this mail system
# will relay mail from, or what destinations this system will relay
# mail to.
aber $mydestination ist doch zuwenig, da muss ich doch auch noch die ganzen anderen Domains reinnehmen, die ich auf meinem Server habe
1und1 FAQ:
Code: Select all
relay_domains = $mydestination, hash:/usr/local/etc/postfix/relaydomains
hash:/usr/local/etc/postfix/relaydomains
okay, da sollte ich jetzt ne Liste drin haben, in die alle meine Domains habe...
irgendwie muss man das compilieren, damit die .db funktioniert
wie war nochmal der Befehl ?
zudem: ich hab keine Lust, die Liste immer per Hand zu aktualisieren - geht das irgendwie auch automatisch (confixx ?) ? geht es auch ohne den Eintrag ?
3. smtpd_recipient_restrictions
ich hab folgendes:
Code: Select all
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_maps_rbl, reject_unauth_destinationconfig sagt:
okay, alles klar - also nur die Leute, die sasl_authenticated sind dürfen über meinen Server schicken. so solls ja sein...The smtpd_client_restrictions parameter restricts what clients this system accepts SMTP connections from.
hmmm und permit_mynetworks für was braucht man das ?
4. newbie Frage: :oops:
ich hab das ganze mit den Relays noch nicht ganz kapiert...
also Relay = Weiterleiten, soweit kann ich englisch
also nach den Einstellungen oben kann SMTP nur ober Auth gehen, also kann über das niemand Relayen... oder doch ?
ich hab hier nochmal meine ganze Config gepostet - fällt jemanden noch ne Sicherheitslücke auf ?
Code: Select all
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = autoresp
myhostname = p01234567.pureserver.info
mydomain = meinedomain.tld
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain, smtp.$mydomain
mynetworks_style = host
local_recipient_maps = $alias_maps unix:passwd.byname
in_flow_delay = 0
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_spool_directory = /var/mail
fast_flush_domains = $relay_domains
smtpd_banner = $myhostname ESMTP $mail_name
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
maps_rbl_domains = relays.ordb.org proxies.relays.monkeys.com formmail.relays.monkeys.com proxy.relays.osirusoft.com socks.relays.osirusoft.com
#suseconfig:
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
inet_interfaces = all
masquerade_domains = meinedomain.tld
#smtpd auth
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_maps_rbl, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
#tls
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
Vielen Dank schonmal
