Postfix ignoriert Weiterleitung
Hallo,
ich habe folgendes Problem:
Ich möchte gerne, dass E-Mails, die an postmaster@domain (foo
existiert weder als virtueller noch als lokaler Benutzer) gesendet
werden, weitergeleitet werden an bar@domain (bar existiert als
virtueller Benutzer).
Schicke ich eine Maili an foo@domain erhalte ich von Postfix die
Meldung:
to=<postmaster@domain>, relay=dovecot, delay=0.23,
delays=0.13/0.04/0/0.06, dsn=5.1.1, status=bounced (user unknown)
Probiert habe ich das ganze über virtual_alias_maps und alias_maps zu
setzen. Beides blieb aber ohne Erfolg.
Anbei hänge ich mal meine ganzen configs, die wichtig sein könnten.
Vielleicht findet ja irgendjemand einen Fehler, denn aus #postfix in
Freenode habe ich den Tipp erhalten, es könnte wohl an dem Debianpaket
von Postfix liegen.
Mein Setup ist: lenny, postfix, dovecot, spamassassin
Grüße
Maik
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
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_size_limit = 0
message_size_limit = 104857600
mydestination = localhost.org localhost
myhostname = domain
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination,
check_policy_service inet:127.0.0.1:12525
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/postfix/ssl/server.crt
smtpd_tls_key_file = /etc/postfix/ssl/server.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_prng_update_period = 3600s
tls_random_source = dev:/dev/urandom
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000
mysql-virtual_domains.cf:
user = mail
password = pass
dbname = mail
table = domains
select_field = 'virtual'
where_field = domain
hosts = 127.0.0.1
mysql-virtual_mailboxes.cf:
user = mail
password = pass
dbname = mail
table = users
select_field =
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',
1),'/')
where_field = email
hosts = 127.0.0.1
virtual:
foo@domain bar
# Required aliases
#postmaster: root
MAILER-DAEMON: postmaster
# Common aliases
abuse: postmaster
spam: postmaster
# Other aliases
root: root
webmaster: root
Reply to: