Hi all,
I've spent a lot of time trying to configure virtual aliases. Command
'postmap -q "whate...@i.try" /etc/postfix/virtual" always returns the
first result after just one aliasing, even if a second alias is
matching. Here is an example :
# pwd
/etc/postfix
# cat virtual
a...@virtualdomain.org b
b r...@otherdomain.org
# postconf -n
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
message_size_limit = 100000000
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname, localhost.$myhostname, localhost,
example.org
mydomain = mydomain.org
myhostname = hostname.mydomain.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = mydomain.org
non_smtpd_milters = inet:localhost:12301
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_connection_count_limit = 5
smtpd_client_connection_rate_limit = 5
smtpd_client_message_rate_limit = 5
smtpd_client_new_tls_session_rate_limit = 5
smtpd_client_restrictions =
smtpd_milters = inet:localhost:12301
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = virtualdomain.org
virtual_alias_maps = hash:/etc/postfix/virtual
# postmap -q "a...@virtualdomain.org" /etc/postfix/virtual
b
# postmap -q "b" /etc/postfix/virtual
r...@otherdomain.org
I think the problem is obvious for an experienced eye, however I cannot
understand why the recursion is not happening.
Thank you a lot
Michel