Please, How can I prevent access to emails outside working hours?

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,557
2,610
363
cPanel Access Level
Root Administrator
Hey there! I don't have any ready-made functions for this behavior, but what about this tool:


That suspends the email account login, so they wouldn't be able to use either a remote tool like Outlook or Thunderbird, or access Webmail. You could configure this on a cron for the account in question to suspend at one time and then unsuspend at another.
 

jissa2

Registered
May 21, 2023
2
0
1
Brasil
cPanel Access Level
Reseller Owner
Thanks for reply,

I found these instructions but I couldn't get it to work

deny condition = ${if match{$tod_full}{(Mon|Tue|Wed|Thu|Fri) (07|1[0-8]):} and match{$sender_address}{user1@domain|user2@domain}}

yours is better, it worked