| |||||||||||||||||||||||||||||||
|
I am running a "smart host" mail server which acts as mx and forwards mails to real mail server (running qmail-ldap). I have enabled relay_recipient_maps to check with real mail server's ldap so that unknown users can be dropped. every thing is working except for catchall. In qmail-ldap if an account has mailAlternateAddress or mail as catchall then that account will accept mails for all unknown mail ids. This creates problems for relay_recipient_maps, because catchall is a "magic" value in qmail-ldap. Thus if a domain has a mail account as catchall relay_recipient_maps should allow all mails regardless of whether the particular email id is present or not. How can I implement this configuration in postfix? Thanks and regards, raj postconf -n -------------- alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases config_directory = /etc/postfix mydestination = $myhostname myhostname = smtp-tvm.mydomain.com mynetworks = 127.0.0.0/8 myorigin = $mydomain relay_domains = hash:/etc/postfix/rcpthosts relay_recipient_maps = ldap:/etc/postfix/relay_recipients transport_maps = hash:/etc/postfix/smtproutes smtpd_recipient_restrictions = reject_unknown_sender_domain, permit_mynetworks, reject_non_fqdn_sender, reject_unauth_destination, reject_non_fqdn_hostname, reject_invalid_hostname, permit cat /etc/postfix/relay_recipients --------------------------------------- server_host = ldap://127.0.0.1 bind = no search_base = o=isp query_filter = (&(objectClass=qmailUser)(|(mail=%s)(mailAlternateAddress=%s))) result_attribute = mail,mailAlternateAddress
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com