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...

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_host = ldaps://myhosthere:636
version = 3
search_base = ou=someou,o=myorg
query_filter = (mail=%s)
result_attribute = cn
result_format = %s
bind = no
dereference = 3

The intended behavior is as follows: If there is an e-mail to:

something.h...@mydoman.tld

LDAP query checks for all users that have the 'mail' (for example, the name doesn't matter here) field set to 'something.h...@mydoman.tld' and delivers this message to those users. It works fine.

The problem is: If the 'mail' field of a user 'smithj' (there is such a user) is NOT set to 'smi...@mydoman.tld' I don't want e-mails to 'smi...@mydoman.tld' to be delivered to this user. I'm afraid they are :-(

May I ask for some tips what setting should I investigate?

Best regards,
Marek


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to