diff --git a/exec/listgate.js b/exec/listgate.js index 78456a06356931e735bc7900c8ee93cbab825403..009adb78d2be267641431c2c7f9a5fe4b8c34bf1 100644 --- a/exec/listgate.js +++ b/exec/listgate.js @@ -83,6 +83,9 @@ for(i in area) { from = area[i].from; + if(from.indexOf('@')<0) // automaticalliy append system's e-mail host/domain name + from+=('@'+system.inet_addr); + msgbase = new MsgBase(sub); if(msgbase.open!=undefined && msgbase.open()==false) { log(LOG_ERR,format("!ERROR %s opening msgbase: %s\r\n",msgbase.last_error,sub));