Re: bounce mail for unknown users

From: Ralf Hildebrandt (no email)
Date: Mon Jan 05 2004 - 04:31:48 EST


* fago <>:

> local_recipient_maps = ldap:accounts
> mydestination = bimbo.lan, localhost

mydestination = $myhostname, localhost

> myorigin = $myhostname
That's the default.

> transport_maps = hash:/etc/postfix/transport
> virtual_maps = ldap:aliases hash:/etc/aliases
>
>
> i think i had a configuration failur in my ldap look-up. Because i used
> the same lookup as before for the virtual_mailbox_maps parameter, which
> retrieved the mailbox attribute.

a) Your virtual_maps must not contain a catchall, otherwise all mail
   will be accepted.

b) What is your domain? I think you have a "real" domain that gets
   mapped to

b) local_recipient_maps only list the localpart, and mydestination is
   appended. So this can only work for -- and I guess
   nobody sends mail there...

>
> i think local_recipient_maps needs a list of all my mail adresses, so i
> changed the look-up to (just for testing without aliases):
>
> accounts_server_host = localhost
> accounts_search_base = o=hosting,dc=lan
> accounts_query_filter = (objectClass=CourierMailAccount)
> accounts_result_attribute = mail
> accounts_cache = yes
> accounts_bind = yes
> accounts_bind_dn= ou=Reader,dc=lan
> accounts_bind_pw= secret
>
> but i can't find this lookup in the logs!?? postfix is only looking for
> my aliases when it delivers a mail.

In which logs do you look?

> so i 've tried to set local_recipient_maps to and fago,
> to allow only this address, but postfix still passed all mail to
> maildrop :(
>
> what is wrong here?

Try without LDAP first.

-- 
Ralf Hildebrandt                                 
my current spamtrap                              
http://www.arschkrebs.de/postfix/                Tel. +49 (0)30-450 570-155
Why you can't find your system administrators:
Went to the room with padded walls that nobody dares open when the door's closed. 







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD