wieda@t-online.de wrote:
als erstes einmal meine Fakten:
Linux SuSE 8.2 Name : brahms.domain
darauf läuft postfix
das mail versenden klappt auch sehr gut. Nun habe ich aber ein Problem,
wenn ich meine mailadressen z.B.
herbert@brahms.domain auf herbert.mustermann@offizielle-internet-domain.de mappe (über canonical) möchte postfix alle internen emails über mein externen relayhost schicken (kennt ja die domain "offizielle-internet-domain.de" nicht)
Wenn ich nun diese Domain in mydestination mit eintrage, finde ich die mails nicht mehr (mailq sagt, dass queue leer ist) (ich nehme an, das er die mail dann intern zustellt, aber der Benutzer herbert.mustermann nicht vorhanden ist, da er intern ja nur herbert heisst).
Es gibt auch eine funktionierende alias-datei mit u.a. dem Eintrag:
"herbert.mustermann@offizielle..." : herbert
leider ist ihm dass aber scheinbar egal.
Welchen Fehler mache ich? Habe schon viel gesucht und gelesen, konnte aber nichts brauchbares finden. Nehme ich den canonical-Eintrag wieder weg, funktioniert die interne mailaufteilung auch wieder (incl. aliasdatei).
Ein "postconf -n" und den auszug aus /var/log/mail bitte.
Hoffentlich sagt Ihnen das etwas:
Vielen Dank für Ihre Bemühungen
postconf -n:
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_privs = nobody
defer_transports = smtp
disable_dns_lookups = no
header_checks = regexp:/etc/postfix/headercheck
inet_interfaces = ALL
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/lib/cyrus/bin/deliver
mailbox_size_limit = 51200000
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain
mydomain = domain
myhostname = brahms.domain
mynetworks = 192.168.11.0/24, 192.168.10.0/24, 127.0.0.0/8
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = $mydestination
relayhost = smtp.puretec.de
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = brahms
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450
var/log/mail:
# Hier ist "offizielle-internet-domain.de" nicht in mydestination
eingetragen, er schiebt die mail in die queue und wartet aus ein
postfix flush,
# dabei wird eine Verbindung zu smtp.puretec.de aufgebaut
Aug 27 17:50:38 brahms postfix/postfix-script: refreshing the Postfix
mail system
Aug 27 17:50:38 brahms postfix/master[10345]: reload configuration
Aug 27 17:50:50 brahms postfix/smtpd[27890]: connect from
mozart.domain[192.168.11.1]
Aug 27 17:50:50 brahms postfix/smtpd[27890]: A1A875EE4C:
client=mozart.domain[192.168.11.1], sasl_method=PLAIN,
sasl_username=herbert@brahms
Aug 27 17:50:50 brahms postfix/cleanup[27892]: A1A875EE4C:
message-id=<18036831841.20030827174921@brahms.domain>
Aug 27 17:50:50 brahms postfix/qmgr[27886]: A1A875EE4C:
from=