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