Re: Disabling delivery to local users

2020-09-28 Thread Viktor Dukhovni
On Sat, Sep 26, 2020 at 09:08:55AM +0200, Marek Kozlowski wrote: > First of all. The Directory structure and the config may seems a little > bit strange but, in fact, there are some important historical reasons > (backward compatibility, many, many years ago we started with Novell NDS > and Net

Re: Disabling delivery to local users

2020-09-26 Thread Marek Kozlowski
:-) First of all. The Directory structure and the config may seems a little bit strange but, in fact, there are some important historical reasons (backward compatibility, many, many years ago we started with Novell NDS and NetWare4 and so on...) for having it as described. It's worth mentioni

Re: Disabling delivery to local users

2020-09-25 Thread Viktor Dukhovni
On Tue, Sep 22, 2020 at 04:43:22PM +0200, Marek Kozlowski wrote: > Let's imagine that my SMTP server is an MX for 'mydomain.tld' (and some > other ones). I've defined LDAP query for 'virtual_alias_maps', something > like: Tables used with virtual(5) need to implement a mapping between envelope

Re: Disabling delivery to local users

2020-09-25 Thread Marek Kozlowski
As far as I can see the problem regards only mails sent from this server (from local users). If there is a mail from a remote one it works fine, that is: Recipient address rejected: User unknown in local recipient table error occurs. Hmm? On 9/22/20 4:43 PM, Marek Kozlowski wrote: :-) Well..

Disabling delivery to local users

2020-09-22 Thread Marek Kozlowski
:-) Well... Let's imagine that my SMTP server is an MX for 'mydomain.tld' (and some other ones). I've defined LDAP query for 'virtual_alias_maps', something like: virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf The query file in some very simplified form can be expressed as: server_h