2 msgpostmap header_checks error
10 msgmailbox_command (dovecot lda) stopped working, ...
5 msgmynetworks via LDAP lookup
7 msgLocal recipient table in LDAP problem
2 msgproxy_read_maps
1 msgsmtpd_restriction_class and it's lookup
8 msgMessage Rejected
12 msgCustomize to filter attachment ?
2 msgRelay question
14 msgunnecessary routing?
4 msgdo not use 'reject_maps_rbl'?
9 msgFwd: Postfix in OpenVZ.
2 msgbypass body_checks for local mail?

catchall with relay_recipient_maps
\ Rajkumar S (23 Jan 2008)
. \ Noel Jones (23 Jan 2008)
. . \ Magnus Bäck (23 Jan 2008)
. . . \ Rajkumar S (24 Jan 2008)

4 msg'Name server failure' is output
3 msgsmtp_sasl_password_maps lookups
16 msgPostfix Queues on a Ram Disk
15 msgsendmail compared to smtp sending
3 msgPostfix does not recognize remote emails
2 msgHow to disable SSLv2 on smtpd opportunistic TLS?
Subject:catchall with relay_recipient_maps
Group:Postfix-users
From:Rajkumar S
Date:23 Jan 2008


 
Hello,

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