[postfix-users] Problem mit canonical und lokaler Auslieferung

Frank Belau frank at belau.de
Sa Jan 8 14:05:33 CET 2011


Hallo zusammen,

ich habe mir einen lokalen Postfix aufgesetzt und  ein kleines Problem 
mit der lokalen Mailzustellung.

folgende Situation:

DSL-Anschluß mit fester IP und rdns-Eintrag
Postfix 2.7.1 (opensuse 11.3)

server02:/etc/postfix # postconf -n

alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports =
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
inet_interfaces = all
inet_protocols = ipv4
local_header_rewrite_clients = permit_inet_interfaces permit_mynetworks
mail_owner = postfix
mail_spool_directory = /var/mail/
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = intranet.lan
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = intranet.lan
myhostname = my.rdnsdomain.name
mynetworks = 192.168.1.0/24, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
relay_domains = $mydestination, hash:/etc/postfix/relay
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_use_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual

server02:/etc/postfix # cat canonical

user1 at intranet.lan    user1 at extern-domain.de
user2 at intranet.lan    user2 at extern-domain.de
user3 at intranet.lan    user3 at extern-domain.de

server02:/var/log # cat mail
Jan  8 13:58:54 server02 postfix/pickup[14150]: 704AA7C01D2: uid=0 
from=<root>
Jan  8 13:58:54 server02 postfix/cleanup[14167]: 704AA7C01D2: 
message-id=<20110108125854.704AA7C01D2 at my.rdnsdomain.name>
Jan  8 13:58:54 server02 postfix/qmgr[14151]: 704AA7C01D2: 
from=<root at intranet.lan>, size=1162, nrcpt=1 (queue active)
Jan  8 13:58:55 server02 postfix/smtp[14169]: 704AA7C01D2: 
to=<user2 at extern-domain.de>, orig_to=<user2 at intranet.lan>, 
relay=mail.extern-domain.de[85.342.385.8] :25, delay=1, 
delays=0.14/0.07/0.5/0.29, dsn=4.1.8, status=deferred (host 
mail.extern-domain.de[85.342.385.8] said: 450 4.1.8 <root at intranet.lan>: 
Sender address rejected: Domain not found (in reply to RCPT TO command))



in der main.cf sind sicher noch weitere Fehler, aber mir geht es jetzt 
erst einmal darum, daß Mails an lokale Empfänger nicht lokal zugestellt 
werden sondern an den Mailserver der externen Domain geschickt werden.

wo ist mein Fehler?


Vielen Dank,

Frank.




Mehr Informationen über die Mailingliste postfix-users