[Postfixbuch-users] Virtuelle Weiterleitungen

Oliver Sorge postfix at tyrant.de
So Jan 8 16:30:53 CET 2006


Hi,

ich hab mich weitestgehend an das ISP-Mail HOWTO gehalten, aber leider
funktionieren die weiterleitungen nicht und ich weess nicht, warum. Wenn
ich in der forwardings-Tabelle nen Eintrag erstell mit z.B. als source
foo at bar.de und destination baz at bar.de und ich eine eMail an foo at bar.de
schicke, bekomm ich nen Bounce mit: unknown user: "foo at bar.de". Die
Datenbankfelder stimmen alle und Postfix kann auch auf sie zugreifen.

postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
inet_interfaces = all
mailbox_command = maildrop
mailbox_size_limit = 0
maximal_queue_lifetime = 3d
mydestination = localhost, mailhost.de
myhostname = mailhost.de
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP myMAIL 1.37
smtpd_recipient_restrictions = reject_unknown_sender_domain,
                               reject_non_fqdn_sender,
                               permit_mynetworks,
                               permit_sasl_authenticated,
                               reject_unauth_destination,
                               check_policy_service inet:127.0.0.1:60000,
                               reject_rbl_client relays.ordb.org,
                               reject_rbl_client cbl.abuseat.org,
                               reject_rbl_client list.dsbl.org,
                               reject_rbl_client opm.blitzed.org,
                               reject_rbl_client sbl.spamhaus.org,
                               reject_rhsbl_client blackhole.securitysage.com,
                               reject_rhsbl_sender blackhole.securitysage.com
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
transport_maps = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_create_maildirsize = yes
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_domains.cf mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_maildir_extended = yes
virtual_overquota_bounce = yes
virtual_transport = maildrop
virtual_uid_maps = static:5000

Meine mysql-virtual_forwardings.cf:

user = xxx
password = xxx
dbname = postfix
table = forwardings
select_field = destination
where_field = source
hosts = mysqlhost.de

Meine mysql-virtual_email2email.cf:

user = xxx
password = xxx
dbname = postfix
table = users
select_field = email
where_field = email
hosts = mysqlhost.de

-- 
 .''`.     Oliver Sorge <oliver at dediziert.org>
: :'  :    proud Debian admin and user since 2001
`. `'`
  `-  Debian - when you have better things to do than fix a system

-- 
 .''`.     Oliver Sorge <oliver at dediziert.org>
: :'  :    proud Debian admin and user since 2001
`. `'`
  `-  Debian - when you have better things to do than fix a system



Mehr Informationen über die Mailingliste Postfixbuch-users