Dear Zhang,
please find the replies as per your request
1.Output of postconf -n
from pop.
[root@pop etc]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = simbanet.co
myhostname = pop.simbanet.co.tz
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = pop.simbanet.co.tz
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.5.9/README_FILES
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/etc/postfix/ldap/relay_domains.cf
relayhost = [mx1.simbanet.co.tz]
sample_directory = /usr/share/doc/postfix-2.5.9/samples
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient,check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname,smtpd_tls_security_level = may
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
virtual_gid_maps = static:513
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf
virtual_minimum_uid = 512
virtual_transport = dovecot
virtual_uid_maps = static:512
2.from mx
[root@mx1 /]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = simbanet.co
myhostname = mx1.simbanet.co.tz
mynetworks = 127.0.0.0/8,41.221.41.0/25
mynetworks_style = subnet
myorigin = mx1.simbanet.co.tz
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_bcc_maps = proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap/recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestinations, kibokowifi.com,pop.simbanet.co.tz proxy:ldap:/etc/postfix/ldap/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf, proxy:ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/etc/postfix/ldap/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf, proxy:ldap:/etc/postfix/ldap/catchall_maps.cf
virtual_gid_maps = static:502
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf
virtual_minimum_uid = 502
virtual_transport = dovecot
virtual_uid_maps = static:502
2. /etc/postfix/ldap/*.cf from pop.
1. less catchall_maps.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(objectClass=mailUser)(accountStatus=active)(|(mail=@%d)(shadowAddress=@%d)))
result_attribute= mailForwardingAddress
debuglevel = 0
2.[root@pop ldap]# less recipient_bcc_maps_domain.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
result_attribute= domainRecipientBccAddress
debuglevel = 0
3.[root@pop ldap]# less recipient_bcc_maps_user.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = ou=Users,domainName=%d,o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
result_attribute= userRecipientBccAddress
debuglevel = 0
recipient_bcc_maps_user.cf (END)
4.[root@pop ldap]# less relay_domains.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
bind = yes
start_tls = no
version = 3
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(domainBackupMX=yes)(accountStatus=active)(enabledService=mail))
result_attribute= domainName
debuglevel = 0
5.[root@pop ldap]# less sender_bcc_maps_domain.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
result_attribute= domainSenderBccAddress
debuglevel = 0
6.[root@pop ldap]# less sender_bcc_maps_user.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = ou=Users,domainName=%d,o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
result_attribute= userSenderBccAddress
debuglevel = 0
7.[root@pop ldap]# less sender_login_maps.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=smtp)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s))))
result_attribute= mail
debuglevel = 0
8.[root@pop ldap]# less transport_maps_domain.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail))
result_attribute= mtaTransport
debuglevel = 0
9.[root@pop ldap]# less virtual_alias_maps.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(|(mail=%s)(shadowAddress=%s))(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailAlias)(&(objectClass=mailUser)(enabledService=forward))))
result_attribute= mailForwardingAddress
debuglevel = 0
10.[root@pop ldap]# less virtual_group_maps.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(memberOfGroup=%s)(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailUser)(objectClass=mailExternalUser)))
result_attribute= mail
debuglevel = 0
virtual_group_maps.cf (END)
11.[root@pop ldap]# less virtual_mailbox_domains.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
bind = yes
start_tls = no
version = 3
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail))
result_attribute= domainName
debuglevel = 0
virtual_mailbox_domains.cf (END)
12.[root@pop ldap]# less virtual_mailbox_maps.cf
#
# File generated by iRedMail (2011.07.06.20.57.35):
#
# Version: 0.7.2
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 127.0.0.1
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = xxxxxxxxxxxxxxxxxxxxxxxx
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(objectClass=mailUser)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(accountStatus=active)(enabledService=mail)(enabledService=deliver))
result_attribute= mailMessageStore
debuglevel = 0
FROM MX1.
1.[root@mx1 ldap]# less catchall_maps.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(objectClass=mailUser)(accountStatus=active)(|(mail=@%d)(shadowAddress=@%d)))
result_attribute= mailForwardingAddress
debuglevel = 0
catchall_maps.cf (END)
2.[root@mx1 ldap]# less recipient_bcc_maps_domain.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
result_attribute= domainRecipientBccAddress
debuglevel = 0
recipient_bcc_maps_domain.cf (END)
3.[root@mx1 ldap]# less recipient_bcc_maps_user.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = ou=Users,domainName=%d,o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
result_attribute= userRecipientBccAddress
debuglevel = 0
recipient_bcc_maps_user.cf (END)
4.[root@mx1 ldap]# less relay_domains.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
bind = yes
start_tls = no
version = 3
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(domainBackupMX=yes)(accountStatus=active)(enabledService=mail))
result_attribute= domainName
debuglevel = 0
relay_domains.cf (END)
5.[root@mx1 ldap]# less sender_bcc_maps_domain.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%d)(domainAliasName=%d))(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
result_attribute= domainSenderBccAddress
debuglevel = 0
sender_bcc_maps_domain.cf (END)
6.[root@mx1 ldap]# less sender_bcc_maps_user.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = ou=Users,domainName=%d,o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
result_attribute= userSenderBccAddress
debuglevel = 0
7.[root@mx1 ldap]# less sender_login_maps.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=smtp)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s))))
result_attribute= mail
debuglevel = 0
sender_login_maps.cf (END)
8.[root@mx1 ldap]# less transport_maps_domain.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail))
result_attribute= mtaTransport
debuglevel = 0
9.[root@mx1 ldap]# less transport_maps_user.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = ou=Users,domainName=%d,o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailUser)(mail=%s)(accountStatus=active)(enabledService=mail))
result_attribute= mtaTransport
debuglevel = 0
10.[root@mx1 ldap]# less virtual_alias_maps.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(|(mail=%s)(shadowAddress=%s))(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailAlias)(&(objectClass=mailUser)(enabledService=forward))))
result_attribute= mailForwardingAddress
debuglevel = 0
virtual_alias_maps.cf (END)
11.[root@mx1 ldap]# less virtual_group_maps.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(memberOfGroup=%s)(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(objectClass=mailUser)(objectClass=mailExternalUser)))
result_attribute= mail
debuglevel = 0
virtual_group_maps.cf (END)
12.[root@mx1 ldap]# less virtual_mailbox_domains.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
bind = yes
start_tls = no
version = 3
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = one
query_filter = (&(objectClass=mailDomain)(|(domainName=%s)(&(enabledService=domainalias)(domainAliasName=%s)))(!(domainBackupMX=yes))(accountStatus=active)(enabledService=mail))
result_attribute= domainName
debuglevel = 0
virtual_mailbox_domains.cf (END)
13.[root@mx1 ldap]# less virtual_mailbox_maps.cf
#
# File generated by iRedMail (2011.09.05.13.56.30):
#
# Version: 0.7.3
# Project: http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
server_host = 41.221.41.2
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = cn=vmail,dc=simbanet,dc=co,dc=tz
bind_pw = password same as pop
search_base = o=domains,dc=simbanet,dc=co,dc=tz
scope = sub
query_filter = (&(objectClass=mailUser)(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(accountStatus=active)(enabledService=mail)(enabledService=deliver))
result_attribute= mailMessageStore
debuglevel = 0
virtual_mailbox_maps.cf (END)
1.i changed the /etc/postfix/ldap* .cf in pop as above
2.i changed /etc/openldap/ldap.conf to
BASE dc=simbanet,dc=co,dc=tz
URI ldap://41.221.41.2:389
restarted ldap services as well as postfix this is the error i get in mx1
''[root@mx1 /]# tail -f /var/log/maillog
Sep 20 12:41:42 mx1 postfix/master[3831]: warning: process /usr/libexec/postfix/trivial-rewrite pid 4562 exit status 1
Sep 20 12:42:33 mx1 postfix/proxymap[4424]: warning: dict_ldap_connect: Unable to bind to server ldap://41.221.41.2:389 as cn=vmail,dc=simbanet,dc=co,dc=tz: -1 (Can't contact LDAP server)
Sep 20 12:42:43 mx1 postfix/proxymap[4424]: warning: dict_ldap_connect: Unable to bind to server ldap://41.221.41.2:389 as cn=vmail,dc=simbanet,dc=co,dc=tz: -1 (Can't contact LDAP server)
Sep 20 12:42:53 mx1 postfix/proxymap[3888]: warning: dict_ldap_connect: Unable to bind to server ldap://41.221.41.2:389 as cn=vmail,dc=simbanet,dc=co,dc=tz: -1 (Can't contact LDAP server)
Sep 20 12:42:53 mx1 postfix/proxymap[4424]: warning: dict_ldap_connect: Unable to bind to server ldap://41.221.41.2:389 as cn=vmail,dc=simbanet,dc=co,dc=tz: -1 (Can't contact LDAP server)
Sep 20 12:42:53 mx1 postfix/trivial-rewrite[4563]: fatal: proxy:ldap:/etc/postfix/ldap/virtual_mailbox_domains.cf(0,lock|fold_fix)''