LDAP User refresh sync parameter ?

atec666

Member
Mar 8, 2019
136
4
18
Issoire
is there a way to set a refresh time ?
(we 're using PMG with action to reject user when not in LDAP user )

Proxmox Mail Gateway synchronizes the relevant user and group info periodically, so that the information is available in a fast manner, even when the LDAP/AD server is temporarily not accessible.
After a successful sync, the groups and users should be visible on the web interface. After that, you can create rules targeting LDAP users and groups.

The question is when and how to set up this ?

It gave me some :
550: 5.1.1 <xxxx@domain.com>: Recipient address rejected: undeliverable address: Recipient address lookup failed


...
i can't wait, then force synchronize ...
and finally got :

double-bounce@my mailer ... rejected ...
then accepted ... in message queue !
 
Last edited:
Can this could be changed / tuned ?

You could overwrite the pmg-hourly.timer unit to trigger more often, note that this may also affect some other things like when the SpamAssasin bayes learning journal is synced to the database.

You can use systemctl edit pmg-hourly.timer for this, it will open your cli $EDITOR where you can define an override section. You always have to reset the current schedule first with an empty "OnCalendar=" line - else both will be merged, then the new one can be set.

For reducing to daily:
INI:
[Timer]
OnCalendar=
OnCalendar=daily

To do it every four hours:
INI:
[Timer]
OnCalendar=
OnCalendar=0/4:00:00