Guys any help.will he highly appreciated.


On Dec 10, 2016 1:16 PM, "Muhammad Yousuf Khan" <sir...@gmail.com> wrote:

> Hi,
>
> My postfix box working as a delivery agent to exchange Server, As per the
> document said replay_reciepient_maps shoulw disallow all unknown mailboxes
> however it is not happening. i am using ldap instead of hash but it does
> not return any email to sender in case when mailbox is not find. in every
> case it deliver the email on basis of relay_domains ip address. can you
> please help i do not want email to receive email for unknown mailboxes.
> here is my config
>
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> append_dot_mydomain = no
> biff = no
> config_directory = /etc/postfix
> content_filter = smtp-amavis:[127.0.0.1]:10024
> disable_vrfy_command = yes
> inet_interfaces = all
> mailbox_size_limit = 0
> message_size_limit = 51100000
> mydestination = exacto.creditexperts.org, localhost.creditexperts.org,
> localhost
> myhostname = legacylegalservice.com
> mynetworks = 10.81.128.0/24, 127.0.0.0/8
> myorigin = /etc/mailname
> recipient_delimiter = +
> relay_domains = hash:/etc/postfix/exchange_domains
> relay_recipient_maps = ldap:/etc/postfix/ldap-relay_recipients.cf
> smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
> smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
> smtpd_data_restrictions = reject_unauth_pipelining
> smtpd_helo_required = yes
> smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
> smtpd_recipient_restrictions = permit_mynetworks,
> reject_unauth_destination, reject_unauth_pipelining, check_client_access
> hash:/etc/postfix/sender_checks, check_sender_access
> hash:/etc/postfix/sender_checks, check_helo_access
> hash:/etc/postfix/helo_checks, reject_invalid_hostname,
> reject_non_fqdn_hostname, reject_non_fqdn_sender,
> reject_non_fqdn_recipient, reject_unknown_sender_domain,
> check_policy_service inet:127.0.0.1:60000
> smtpd_sender_restrictions = permit_auth_destination,
> reject_non_fqdn_sender, reject_unknown_sender_domain,
> reject_unknown_recipient_domain
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
> smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
> smtpd_use_tls = yes
> strict_rfc821_envelopes = yes
> transport_maps = hash:/etc/postfix/exchange_transport
>
> and here is my ldap cf file
>
> root@ajax:/etc/postfix# cat ldap-relay_recipients.cf
> server_host =  ldap://morpheus.company.mydomain.com
> version = 3
> search_base = dc=company, dc=,mydomain, dc=com
> query_filter = (&(objectClass=user)(mail=%s))
> result_attribute =
> bind_dn = CN=Thomas R. Paige,CN=Users,DC=company,DC=mydomain,DC=com
> #bind_dn = cn=postfix,ou=misc,dc=redflo,dc=de
> bind_pw = skdii23k2399dldsw2
> domain = company.mydomain.com
> debuglevel = 5
>
>

Reply via email to