DrunkenFreak
05.03.09, 15:45
Hallo,
ich probiere mich nun seit 2 Tagen daran, mit Postfix eine Weiterleitung der E-Mails einzurichten. Ankommende E-Mails an den Benutzer foo@domain (existiert nicht) sollen an den Benutzer bar@domain (existiert) weitergeleitet werden.
In den Logs sehe ich nur jedes mal:
to=<foo@domain>, relay=dovecot, delay=36, delays=35/0.12/0/0.2, dsn=5.1.1, status=bounced (user unknown)
Vielleicht sehr ihr ja an den folgenden Configs, wo der Fehler liegt:
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
aliases:
# Required aliases
postmaster: root
MAILER-DAEMON: postmaster
# Common aliases
abuse: postmaster
spam: postmaster
# Other aliases
root: root
webmaster: root
Führe ich manuell postmap -q foo@domain hash:/etc/postfix/virtual aus wird mir bar zurückgegeben, was meiner Meinung nach bedeutet, dass E-Mails an foo@domain zu bar@domain zugestellt werden.
Findet jemand den Fehler?
so long
ich probiere mich nun seit 2 Tagen daran, mit Postfix eine Weiterleitung der E-Mails einzurichten. Ankommende E-Mails an den Benutzer foo@domain (existiert nicht) sollen an den Benutzer bar@domain (existiert) weitergeleitet werden.
In den Logs sehe ich nur jedes mal:
to=<foo@domain>, relay=dovecot, delay=36, delays=35/0.12/0/0.2, dsn=5.1.1, status=bounced (user unknown)
Vielleicht sehr ihr ja an den folgenden Configs, wo der Fehler liegt:
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
aliases:
# Required aliases
postmaster: root
MAILER-DAEMON: postmaster
# Common aliases
abuse: postmaster
spam: postmaster
# Other aliases
root: root
webmaster: root
Führe ich manuell postmap -q foo@domain hash:/etc/postfix/virtual aus wird mir bar zurückgegeben, was meiner Meinung nach bedeutet, dass E-Mails an foo@domain zu bar@domain zugestellt werden.
Findet jemand den Fehler?
so long