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:Re: catchall with relay_recipient_maps
Group:Postfix-users
From:Rajkumar S
Date:24 Jan 2008


 
On Jan 24, 2008 1:46 AM, Magnus Bäck <magnus> wrote:

> No, that configuration would only make catchall a valid
> address. The following filter will make sure the lookup of any address
> returns a valid result iff the target domain has a catchall
> address in the mail attribute (adding support for mailAlternateAddress
> is left as an exercise).
>
> |(mail=%s)(mail=catchall@%d)

Thanks, I have it working now, with following configuration.

server_host = ldap://localhost
bind = no
search_base = o=isp
query_filter = (&(objectClass=qmailUser)(|(mail=%s)(mailAlternateAddress=%s)(mai
lAlternateAddress=catchall@%d)))
result_attribute = mail,mailAlternateAddress

raj


© 2004-2008 readlist.com