On 2011-01-29, 22:06, mouss wrote: > > I set: > > virtual_alias_maps = regexp:/etc/postfix/virtual_alias_regexp > > and this file contains patterns like these: > > > > /^user@example\.com$/ u...@example.com > > /.*\.user@example\.com$/ u...@example.com > > the two lines could be written as one > /(^|\.)user@example\.com$/ u...@example.com Thanks!
> > The part that doesn't work as expected is that the header line > > "Delivered-To:" doesn't show the original mail address but the mapped > > one (w/o the prefix). > > which is the purpose of Delivered-To. You are right. I meant to say "X-Original-To" - sorry for the confusion. > you want X-Original-To. do you have > enable_original_recipient = yes > ? Yes. When I don't use dovecot as LDA the X-Original-To is there: X-Original-To: testing123.u...@example.com Delivered-To: u...@example.com Only when setting "virtual_transport = dovecot" it disappears. The maillog shows orig_to information however: Jan 31 12:43:10 gecko postfix/pipe[2787]: 4A9592784EA: to=<u...@example.com>, orig_to=<testing123.u...@example.com>, relay=dovecot, delay=0.17, delays=0.04/0.05/0/0.08, dsn=2.0.0, status=sent (delivered via dovecot service) > do you expand your aliases before a content_filter? ... etc. I still have a very basic postfix setup. SpamAssassin etc. will come later when I've solved the prefix issue... Postfix version: 2.5.5-1.1 ---- 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 delay_warning_time = 4h enable_original_recipient = yes inet_interfaces = all inet_protocols = all mailbox_size_limit = 0 mydestination = localhost,YYYY.XXXX.eu myhostname = YYYY.XXXX.eu mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_unknown_client smtpd_helo_required = yes smtpd_helo_restrictions = reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname smtpd_recipient_limit = 250 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_restrictions = permit_mynetworks, reject_unknown_address, reject_unknown_sender_domain, reject_non_fqdn_sender smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes tls_random_source = dev:/dev/urandom virtual_alias_maps = regexp:/etc/postfix/virtual_alias_regexp virtual_gid_maps = static:5000 virtual_mailbox_base = /var/mail/vhosts virtual_mailbox_domains = /etc/postfix/virtual_domains virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_minimum_uid = 100 virtual_transport = dovecot virtual_uid_maps = static:5000 ------------------------- Thanks a lot, Andy. -- Dew knot trussed spell checquers too fined awl mist takes!