Is it possible to avoid recipient_bcc_maps picking up aliases in the
virtual_alias_maps table?
I have a pcre recipient_bcc_map entry that catches an entire domain and
forwards it in such a way that the transports table hands it to my
archivemail transport:
# cat recipient_bcc
/(.*)@judelawfirm.com$/ $...@judelawfirm.com.archive
# cat transports
s...@spam-catcher.spam spam-mail:
h...@ham-catcher.ham ham-mail:
.archive archivemail:
.vacation vacation:
The problem is the recipient_bcc_map catches virtual aliases too and
tries to hand them over to my archivemail transport which doesn't like
it because the virtual alias isn't a real mail box.
I suppose I could tweak my archivemail service in such that it checked
if the account was a real mail box or not and discard it accordingly...
just wondering if there is possibly another way around it.
# postconf -n
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_size_limit = 0
maximal_backoff_time = 1h
message_size_limit = 0
minimal_backoff_time = 10m
mydestination = vmail1.judelawfirm.com, vmail1.jude
myhostname = vmail1.judelawfirm.com
mynetworks = 127.0.0.0/8 192.168.1.0/24
myorigin = vmail1.judelawfirm.com
queue_run_delay = 120s
readme_directory = no
recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc
recipient_delimiter = +
sender_bcc_maps = pcre:/etc/postfix/recipient_bcc
smtp_enforce_tls = no
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = check_client_access
hash:/etc/postfix/white_list check_client_access
pcre:/etc/postfix/black_list_client_country check_client_access
hash:/etc/postfix/black_list
smtpd_data_restrictions = reject_unauth_pipelining
permit_mynetworks permit_sasl_authenticated
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated
permit_mynetworks reject_invalid_hostnamereject_non_fqdn_hostname
check_helo_access hash:/etc/postfix/white_list check_helo_access
pcre:/etc/postfix/black_list_helo_country check_helo_access
hash:/etc/postfix/black_list
smtpd_recipient_restrictions = permit_mynetworks
permit_sasl_authenticated check_sender_access
hash:/etc/postfix/white_list check_sender_access
hash:/etc/postfix/black_list check_sender_access
pcre:/etc/postfix/black_list_sender_country reject_unlisted_recipient
reject_non_fqdn_hostname reject_non_fqdn_sender
reject_non_fqdn_recipient reject_unauth_destination
reject_unauth_pipelining reject_invalid_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
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
strict_rfc821_envelopes = yes
transport_maps = hash:/etc/postfix/transports
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1000
virtual_transport = dovecot
virtual_uid_maps = static:1000