| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have a functioning system, with most of the mail (from several domains) being delivered to dbmail over lmtp, and two administrator accounts (both from a single domain) being delivered to local boxes via procmail. I also want to give /etc/aliases _piority_ over the aliases supported by dbmail. Currently my problem is that /etc/aliases is globally applied to all domains, as I have all of the domains currently listed in mydestination, and the user part of both admin accounts is matched against _any_ domain. So my question is how do I rewrite my configuration (probably using virtual_mailbox_domains) in such a way that: * /etc/aliases is consulted _first_ for all deliveries to primary.domain, but not for deliveries to v1.domain nor v2.domain * mail with final destinations for a1 and a2 gets delivered via procmail * all other mail is fed to dbmail-lmtp * reject_unlisted_recipient still works across all domains Thanks for the help! Here are the relevant parts of my current config: /etc/postfix/main.cf ==================== content_filter = scanner:[localhost]:10025 mydestination = /etc/postfix/local_domains alias_maps = hash:/etc/aliases local_recipient_maps = hash:/etc/postfix/mailspool_delivery $alias_maps mysql:/etc/postfix/dbmail_address_list.cf mailbox_command = procmail -a "$EXTENSION" mailbox_transport = dbmail-lmtp:[localhost]:24 mailbox_transport_maps = hash:/etc/postfix/mailspool_delivery /etc/postfix/local_domains ========================== localhost primary.domain v1.domain v2.domain /etc/postfix/mailspool_delivery =============================== a1 forcelocal: a2 forcelocal: /etc/postfix/dbmail_address_list.cf =================================== user = xxxxxx password = xxxxxx hosts = 127.0.0.1 dbname = dbmail query = SELECT `alias` FROM dbmail_aliases WHERE `alias` = '%s' /etc/postfix/master.cf ====================== # dbmail transport and local maildrop overriding mailbox_transport routing dbmail-lmtp unix - - - - - lmtp -o disable_dns_lookups=yes forcelocal unix - n n - - local -o mailbox_transport_maps= -o mailbox_transport= # virus scanning transports scanner unix - - - - 3 smtp -o smtp_send_xforward_command=yes -o smtp_data_done_timeout=900 -o disable_dns_lookups=yes -o max_use=20 localhost:10026 inet n - - - - smtpd -o content_filter= -o inet_interfaces=127.0.0.1 -o disable_dns_lookups=yes -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_inet_interfaces,reject -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_inet_interfaces,reject -o smtpd_data_restrictions= -o smtpd_end_of_data_restrictions= -o smtpd_etrn_restrictions= -o smtpd_hard_error_limit=19 -o smtpd_soft_error_limit=20 -o smtpd_error_sleep_time=0 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_mi lters -o local_header_rewrite_clients=
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
© 2004-2008 readlist.com