Confused over virtual_alias_map and virtual_mailbox_map

From: Faejon (no email)
Date: Wed Oct 01 2003 - 08:01:01 EDT


I am running a mail server for a couple of domains. My current configuration
is delivering mail but I don't think it is configured efficiently. There are
a lot of extra lookups.

This is my setup -

I use ldap to store all the mail routing information. The recipient address
is stored in key mailLocalAdress as user at domain dot The routing information is
stored in key mailRoutingAddress as user_virtual_domain at FQDN_mailhost. Mail
aliases are stored in key(s) mailAlias as something at somewhere dot Home
directory is stored in key homeDirectory as
/virtfs/domain/domain.xxx/users/user/.

mail host - hostname.aaa.xxx
primary - aaa.xxx
virt1 - bbb.xxx
virt2 - ccc.xxx

When mail comes in the reject_unauth_destinations causes a look up in the
ldap on both the sender and recipient address. Then trivial-rewrite causes
another lookup in the ldap to canonicalize the user at domain to
user_virtual_domain at site then the transport is set as local. I would prefer
to use the virtual transport but haven't figured out how to get this to
happen yet. Mail is then sent to the active queue where it is sent to
amavis-new and then reinjected and a whole new set of ldap lookups happen.
Mail is then finally delivered to the users Maildir/ directory. I should
note that there are no real users on the box only virtual users at virtual
domains. Even root's mail is delivered to a virtual user looked up in the
ldap.

I only have a total of 5 users and am running this all on a PII 233 so I
want to optimize everything to reduce unnecessary lookups.

So we finally get to my questions. Which should I use to get final delivery
using the virtual transport and reduce the amount of ldap lookups needed to
get there?

Here is my configs -
[root at pippin postfix]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = $alias_database
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
disable_vrfy_command = yes
home_mailbox = Maildir/
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = $alias_maps
mail_owner = postfix
mailbox_size_limit = 6815744
message_size_limit = 6815744
mydestination = $myhostname, localhost
mydomain = aaa.xxx
myhostname = pippin.aaa.xxx
mynetworks_style = host
myorigin = $myhostname
program_directory = /usr/libexec/postfix
queue_directory = /var/spool/postfix
relay_domains = $myhostname, localhost, $mydomain,
hash:/etc/postfix/relay_domains
smtpd_banner = $myhostname ESMTP NO UCE $mail_name ($mail_version)
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_non_fqdn_sender,
reject_non_fqdn_recipient, permit_mynetworks, check_client_access
btree:/etc/postfix/dracd, warn_if_reject reject_unknown_sender_domain,
warn_if_reject reject_unknown_recipient_domain, reject_unauth_pipelining,
warn_if_reject reject_invalid_hostname, warn_if_reject
reject_non_fqdn_hostname, reject_rbl_client dnsbl.njabl.org,
reject_rbl_client list.dsbl.org, reject_rbl_client sbl.spamhaus.org,
reject_rbl_client bl.spamcop.net, reject_unauth_destination, permit
virtual_create_maildirsize = yes
virtual_gid_maps = ldap:ldapvirtualgidmap
virtual_mailbox_base = /
virtual_mailbox_domains = $mydomain, hash:/etc/postfix/destination_domains
virtual_mailbox_limit = 6815744
virtual_mailbox_limit_maps = ldap:ldapvirtualquota
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = ldap:ldapvirtualmailbox
virtual_maildir_extended = no
virtual_maildir_suffix = Maildir/
virtual_minimum_uid = 1000
virtual_uid_maps = ldap:ldapvirtualuidmap








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD