52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
// config/imap.php
|
|
|
|
return [
|
|
// IMAP 服务器连接字符串,包含端口、协议、SSL
|
|
'mailbox' => '{imap.feishu.cn:993/imap/ssl}INBOX',
|
|
'username' => 'info@borderlesscar.com',
|
|
'password' => 'ErkhUA629aocm7Bc',
|
|
// 最多拉取多少封邮件
|
|
'limit' => 5,
|
|
'per_page' => 20,
|
|
'batch_size'=> 100, // 可选:CLI 不传 -p 时使用
|
|
|
|
// stmp
|
|
'smtp' => [
|
|
'host' => 'smtp.feishu.cn',
|
|
'port' => 465,
|
|
'username' => 'info@borderlesscar.com',
|
|
'password' => 'ErkhUA629aocm7Bc',
|
|
'encryption' => 'ssl',
|
|
'from_address' => '',
|
|
'from_name' => ''
|
|
],
|
|
|
|
'smtp_xyh' => [
|
|
'host' => 'smtp.feishu.cn',
|
|
'port' => 465,
|
|
'username' => 'app@hnxinyouhe.com',
|
|
'password' => 'akyIUFJ6ihGGjI5h',
|
|
'encryption' => 'ssl',
|
|
'from_address' => 'app@hnxinyouhe.com',
|
|
'from_name' => '【XYH】'
|
|
],
|
|
];
|
|
|
|
// docker run \
|
|
// --name l2tp-vpn-server \
|
|
// --env VPN_IPSEC_PSK='Xyh123456' \
|
|
// --env VPN_USER='xinyouhe' \
|
|
// --env VPN_PASSWORD='Xyh.2025' \
|
|
// --restart=always \
|
|
// --privileged \
|
|
// -p 500:500/udp \
|
|
// -p 4500:4500/udp \
|
|
// -p 1701:1701/udp \
|
|
// -d hwdsl2/ipsec-vpn-server
|
|
|
|
|
|
// 拉取邮件的脚本顺序:
|
|
// php webman emails:fetch:uid
|
|
// php webman emails:fetch
|
|
// php webman parse:emails
|