[SOLVED] How can we reject emails that are not ldap users to Proxmox MG?

sametileli

New Member
Aug 25, 2020
14
1
3
36
Hello friends
I created the ldap settings to Proxmox. but I have a problem like this. I want users who are not in ldap to be denied. For example, a mail is coming, the mail address is contoso@contoso.com. There is no such user in ldap, but mail is accepted. How can I prevent this?
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
6,862
1,040
164
Put shortly you have 2 options:
* simply enable recipient verification (GUI->Configuration-> Mail Proxy->Options) - that way postfix will directly reject mails, which it could not send to your downstream servers (this only works if your downstream server answers with 5xx for an unknown address)
* create a fitting rule in the Rulesystem:
** one Who Object which matches : 'Unknown LDAP address, any profile)
** an action of BLOCK

I hope this helps!
 
  • Like
Reactions: sametileli

sametileli

New Member
Aug 25, 2020
14
1
3
36
thank you for your reply.
I'll create a rule and ask to validate ldap users. I'll write the result tomorrow. thank you so much
 
  • Like
Reactions: Stoiko Ivanov

sametileli

New Member
Aug 25, 2020
14
1
3
36
Thank you, I'm reviewing immediately.
Teşekkür ederim hemen inceliyorum.

edit: thank you my friend... my problem is solved
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!