Hi,
ich habe bei mir fail2ban und apticron installiert, beide versenden Mails über postfix. Mit echo "Dies ist ein Testmail" | mail -s "Testbetreff" test@email.email
wollte ich testen ob das sender der Mail funktioniert, dort bekomme ich aber dann folgenden Fehler; die Mail wird an einen Mailserver von Netcup gesendet.
Code
Sep 27 19:03:07 proxmox postfix/pickup[8506]: 2360466416: uid=0 from=<root>
Sep 27 19:03:07 proxmox postfix/cleanup[8757]: 2360466416: message-id=<20200927170307.2360466416@server.name>
Sep 27 19:03:07 proxmox postfix/qmgr[8507]: 2360466416: from=<root@server.name>, size=432, nrcpt=1 (queue active)
Sep 27 19:03:07 proxmox postfix/error[8761]: 2360466416: to=<test@email.email>, relay=none, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.0.0, status=bounced (email.email)
Sep 27 19:03:07 proxmox postfix/cleanup[8757]: 291C866509: message-id=<20200927170307.291C866509@server.name>
Sep 27 19:03:07 proxmox postfix/bounce[8762]: 2360466416: sender non-delivery notification: 291C866509
Sep 27 19:03:07 proxmox postfix/qmgr[8507]: 291C866509: from=<>, size=2346, nrcpt=1 (queue active)
Sep 27 19:03:07 proxmox postfix/qmgr[8507]: 2360466416: removed
Sep 27 19:03:07 proxmox postfix/local[8763]: 291C866509: to=<root@server.name>, relay=local, delay=0.16, delays=0/0/0/0.15, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Sep 27 19:03:07 proxmox postfix/qmgr[8507]: 291C866509: removed
Folgendes steht in der main.cf
Code
myorigin = $myhostname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_key_file = /etc/postfix/ssl/mailserver.key
smtpd_tls_cert_file = /etc/postfix/ssl/mailserver.crt
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_security_level=may
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = server.name
mydomain = server.name
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, server.name, localhost.$mydomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = error
relay_transport = error
inet_protocols = all
home_mailbox = Maildir/
Alles anzeigen
Es gibt sowohl einen gültigen A-DNS als auch rDNS Eintrag.
Gibt es noch irgend welche Einstellungen die man tätigen muss damit die Mail nicht abgelehtn werden?