Hi Zhang,
Kindly find the out put you requested:
1.
# postconf smtpd_recipient_restrictions
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
# postconf smtpd_sender_restrictions
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, check_policy_service inet:127.0.0.1:7778
# postconf smtpd_end_of_data_restrictions
smtpd_end_of_data_restrictions =
2. find below the contents in /opt/iredapd/etc/iredapd.ini
[general]
# Listen address and port.
listen_addr = 127.0.0.1
listen_port = 7777
# Run as a low privileged user.
# If you don't want to create one, you can try 'nobody'.
run_as_user = iredapd
# Background/daemon mode: yes, no.
# Run iRedAPD as daemon, detach iredapd from terminal.
run_as_daemon = yes
# Path to pid file.
pid_file = /var/run/iredapd.pid
# Log type: file.
# Set 'log_file = /dev/null' if you don't want to keep the log.
log_type = file
log_file = /var/log/iredapd.log
# Log level: info, error, debug.
log_level = error
# Backend: ldap, mysql.
backend = ldap
[ldap]
# For ldap backend only.
# LDAP server setting.
# Uri must starts with ldap:// or ldaps:// (TLS/SSL).
#
# Tip: You can get binddn, bindpw from /etc/postfix/ldap_*.cf.
#
uri = ldap://127.0.0.1:389
binddn = cn=vmail,dc=mydomain,dc=com
bindpw = ***********************
basedn = o=domains,dc=mydomain,dc=com
# Enabled plugins.
# - Plugin name is file name which placed under 'src/plugins/' directory.
# - Plugin names MUST be seperated by comma.
#
# Available plugins:
# * ldap_domain_wblist: per-domain white/blacklist support.
# Note: If you want to enable this plugin, it's better to make it the
# first one in enabled plugin list.
# * ldap_maillist_access_policy: mail list deliver restrictions.
# * block_amavisd_blacklisted_senders: per-user white/blacklist support.
plugins = ldap_maillist_access_policy, block_amavisd_blacklisted_senders, ldap_recipient_restrictions
[mysql]
# For MySQL backend only.
server = 127.0.0.1
db = vmail
user = vmail
password = ***************
# Enabled plugins.
# - Plugin name is file name which placed under 'src/plugins/' directory.
# - Plugin names MUST be seperated by comma.
plugins = ldap_maillist_access_policy, block_amavisd_blacklisted_senders, ldap_recipient_restrictions
3. LDIF data
dn: mail=test2@mydomain.com,ou=Users,domainName=mydomain.com,o=domains,dc=mydomain,dc=com
accountStatus: active
amavisLocal: TRUE
cn: Test2
enabledService: mail
enabledService: deliver
enabledService: lda
enabledService: smtp
enabledService: smtpsecured
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
homeDirectory: /var/vmail/vmail1/mydomain.com/t/e/s/test2-2012.02.13.11.58.41/
mail: test2@mydomain.com
mailBlacklistRecipient: @gmail.com
mailMessageStore: vmail1/mbaoa.com/t/e/s/test2-2012.02.13.11.58.41/
mailQuota: 104857600
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
shadowLastChange: 0
sn: test2
storageBaseDirectory: /var/vmail
uid: test2
userPassword: {SSHA}*************************
Thanks,
Regards,
Mohan