Skip to content
Snippets Groups Projects
Commit 875ffb6e authored by rswindell's avatar rswindell
Browse files

Don't perform MailAuth checks on connections from the server's IP address.

parent 4b22fe49
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,10 @@ if(user.number && !(user.security.restrictions&UFLAG_G))
var sender_host = sender_address.slice(sender_address.indexOf('@')+1);
if(sender_host == system.host_name
|| system.findstr(system.ctrl_dir + "domains.cfg", sender_host)) {
if((sender_host == system.host_name
|| system.findstr(system.ctrl_dir + "domains.cfg", sender_host))
&& client.ip_address!="127.0.0.1"
&& client.ip_address!=server.interface_ip_address) {
var error_file = new File(processing_error_filename);
if(!error_file.open("w")) {
log(LOG_ERR,format("!ERROR %d opening processing error file: %s"
......
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