Skip to content
Snippets Groups Projects
Commit 00146d6f authored by rswindell's avatar rswindell
Browse files

Requires a relay_user's last logon to be within the hour.

parent d4cc43e4
No related branches found
No related tags found
No related merge requests found
......@@ -1949,6 +1949,7 @@ static void smtp_thread(void* arg)
if(p!=alias_buf /* forced relay by alias */ &&
(!(startup->options&MAIL_OPT_ALLOW_RELAY)
|| relay_user.number==0
|| relay_user.laston < time(NULL)-(60*60)
|| relay_user.rest&(FLAG('G')|FLAG('M'))) &&
!findstr(&scfg,host_name,relay_list) &&
!findstr(&scfg,host_ip,relay_list)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment