So, ich habe nun Postfix eingerichtet. Es sendet auch nach draußen, war ziemlich einfach. Nur habe ich ein seltames Problem. Wenn ich eine Mail intern verschicke, kommt die zwar auch beim Empfänger an, aber der Absender erhält trotzdem eine Mail, dass die E-Mail nicht versendet werden konnte, weil der Benutzer unbekannt ist. Was stimmt da nicht? Als POP3/IMAP-Server verwende ich Cyrus IMAPD.
Ich poste mal hier die main.cf und die master.cf (aus Datenschutzgründen habe ich Domänenname und IPs verschleiert, also nicht als falsch markieren):
Ich poste mal hier die main.cf und die master.cf (aus Datenschutzgründen habe ich Domänenname und IPs verschleiert, also nicht als falsch markieren):
main.cf
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
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
myhostname = server.domäne.de
mydomain = domäne.de
mynetworks = IP1/SN1, IP2/SN2, IP3/SN3, 127.0.0.0/8
mydestination = domäne.de
program_directory = /usr/lib/postfix
local_transport = cyrus
inet_interfaces = all
masquerade_domains = domäne.de
mydestination = domäne.de
defer_transports =
mynetworks_style = class
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access, reject_unknown_sender_domain
smtpd_client_restrictions = check_client_access, hash:/etc/postfix/access
smtpd_helo_required = yes
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
master.cf
smtp inet n - n - 5 smtpd -o smtpd_etrn_restrictions=reject -o content_filter=smtp:[127.0.0.1]:10024
#submission inet n - n - - smtpd -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps inet n - n - 5 smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[127.0.0.1]:10024
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
127.0.0.1:10025 inet n - y - 5 smtpd -o content_filter=
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
imapd.conf
reject8bit: no
autocreatequota: 10000
hashimapspool: 1
sasl_mech_list: PLAIN
virtdomains: 0
sasl_pwcheck_method: saslauthd
configdirectory: /var/lib/imap
sievedir: /var/lib/sieve
admins: cyrus root
lmtp_overquota_perm_failure: no
timeout: 30
dracinterval: 0
poptimeout: 10
autocreatequota_units: 1024
lmtp_downcase_rcpt: yes
partition-default: /var/spool/imap
drachost: localhost