Dear List,

On Wednesday, January 21, 2009 3:04 AM Magnus Bäck wrote



>Okay, but since you allegedly list both domains in mydestination this
>will never be used. mydestination "wins" over virtual_mailbox_domains.
>Unless, of course, you've set local_transport = virtual.

>Anyway, time to see the "postconf -n" output.
The output of postconf -n is given below:
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_recipient_limit = 200
default_privs = vmail
default_process_limit = 105
disable_vrfy_command = yes
fallback_transport = virtual
home_mailbox = Maildir/
inet_interfaces = all
ipc_timeout = 5000s
local_transport = maildrop
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 25728640
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example1.com
myhostname = mail.example1.com
mynetworks = 127.0.0.0/8, 10.50.0.0/16
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
rbl_reply_maps = hash:/etc/postfix/imss_rbl_reply
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = check_sender_access
hash:/etc/postfix/rbl_sender_exception,reject_rbl_client
ASNQWAVAPX7S683TZDZFBFUVXP56QLC.r.mail-abuse.com,reject_rbl_client
ASNQWAVAPX7S683TZDZFBFUVXP56QLC.q.mail-abuse.com
smtpd_helo_required = yes
smtpd_recipient_limit = 250
smtpd_recipient_restrictions = permit_mynetworks,
permit_auth_destination,         permit_sasl_authenticated,         reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks,
reject_unknown_sender_domain,        permit_sasl_authenticated
smtpd_tls_auth_only = no
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ldap:forward
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = example2.com
virtual_mailbox_maps = ldap:/etc/postfix/virtual-mailbox-maps.cf
virtual_minimum_uid = 5000
virtual_uid_maps = static:5000

>Note that your configuration method is obsolete (but still works).
>Prefer the newer way of putting the table configuration in a separate
>file. See ldap_table(5).
Have already changed it as you will find from the postconf output.
>Then your virtual_mailbox_maps lookup doesn't work. Show the output of
>the following command:

  > postmap -q a...@example.com ldap:accounts || echo Not found

>This command should return the path to the mailbox.
The output of the command postmap -q a...@example2.com
ldap:virtual-mailbox-maps.cf is
postmap: warning: dict_ldap_lookup: virtual-mailbox-maps.cf: Search base ''
not found: 32: No such object
Same output is there for any account at example1.com

>(Please use example.com, example.net etc as example domains and not
>company2.com etc.)

Shall do from now onwards
I am really very thankful for your time and attention. I must have done
something terribly wrong here. Looking forward for your response and with
regards,
Goutam



Reply via email to