65535)) $input_errors[] = 'The field \'SMTP server\' must contain a port ranging from 0 to 65535'; } function clamsmtp_resync() { global $g, $config; $avconf = $config['installedpackages']['clamav']['config'][0]; if ($avconf['scan_smtp'] == 'on') $outaddress = "{$avconf['smtp_server']}:{$avconf['smtp_port']}"; else $outaddress = '127.0.0.1:25'; $clamav_rundir = "{$g['varrun_path']}/clamav"; $clamsocket = "$clamav_rundir/clamd.socket"; $pidfile = "$clamav_rundir/clamsmtpd.pid"; $conf = <<