Hi, ich habe unseren Postfix SMTP-Gateway derart konfiguriert, dass mails an eine interne Domain per transport an den Hylafax server weitergeleitet werden, um dort asl Fax rausgesendet zu werden. Die dort auflaufenden Mails habe alle das Muster $FAXNUMMER@hylafax.domain.local. Leider wertet Postfix dies nicht als Faxnummer, sondern als lokalen Benutzer. Trotz der Anweisung, die über Google zu finden war, wird kein rewrite dieser Mails durcheführt. Die Einstellungen sind folgende: /etc/postfix/master.cf fax unix - n n - 1 pipe flags= user=fax argv=/usr/bin/faxmail -d -n ${user} ############################################################## Main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname 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 # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = hylafax.domain.local alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = hylafax.domain.local, localhost.domain.local, localhost relayhost = mynetworks = 127.0.0.0/8 192.168.1.0/24 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = 127.0.0.1 192.168.1.103 #default_transport = error #relay_transport = error local_recipients_maps = transport_maps = hash:/etc/postfix/transport fax_destination_recipient_limit = 1 #virtual_alias_maps = hash:/etc/postfix/virtual_alias ##################################################################### /etc/postfix/transport @hylafax.domain.local fax:127.0.0.1 ################################################## Beim Einliefern der Mail taucht folgende Meldung in den logs auf Jun 11 10:20:00 hylafax postfix/smtpd[21240]: connect from unknown[192.168.1.10] Jun 11 10:20:00 hylafax postfix/smtpd[21240]: NOQUEUE: reject: RCPT from unknown[192.168.1.10]: 550 5.1.1 <0616852580@hylafax.domain.local>: Recipient address rejected: User unknown in local recipient table; from=<root@domain.com> to=<0616852580@hylafax.domain.local> proto=ESMTP helo=<smtpgw.localdomain> Jun 11 10:20:01 hylafax postfix/smtpd[21240]: disconnect from unknown[192.168.1.10] Ich war eigentlich der Meinung, dass das Rewrite durch /etc/postfix/transport vor dem Usercheck stattfindet. Wo liegt mein (Denk-)fehler? Gruß |