时间:2021-07-01 10:21:17 帮助过:32人阅读
<?php
require_once('class.phpmailer.php');
require_once('class.pop3.php');
$username = getenv('username');
$password = getenv('password');
$pop = new POP3();
$auth = $pop->Authorise('your.mailserver.com', 110, 30, "$username", "$password", 1);
if ($auth){
# echo OK;
exit(0);
} else {
# echo "FAIL";
exit(255);
}
?>
保存为 auth_user.php , 设置为 可执行
server.conf 直接
auth-user-pass-verify auth_user.php via-env