背景:
安装(我脑子里写的):
1.以root身份安装stunnel:
yum install stunnel -y
2.使用 nano 或 vi 为 stunnel 创建一个 conf 文件(安装 nano : yum install nano -y )
nano /etc/stunnel/stunnel.conf
3.在新创建的 stunnel.conf 中输入以下内容:
; Use it for client mode
client = yes
[ssmtp]
accept = 1925
connect = smtp.gmail.com:465
4. 使用任何方法重新启动 stunnel,例如 kill -9 并使用以下命令开始:
/usr/bin/stunnel
5.以管理员身份登录apex:http://yourhost:port/ords/apex_admin
Go to : Manage instance -> instance settings.
6.进行以下设置:
SMTP Host Address : 127.0.0.1 (or your local)
SMTP Host Port : 1925 (as u can see in stunnel.conf above).
SMTP Authentication Username : your gmail username : etai.guday (WITHOUT @gmail.com)
SMTP Authentication Password : gmail password
Use SSL/TLS : NO
Default Email From Address : etai.guday@gmail.com (including @gmail.com)
7.由于 gmail 限制,您必须启用:https://g.co/allowaccess 才能使用上述方法(使用相关的 gmail 帐户)。
8.使用以下示例启用 Oracle DB ACL
https://www.dropbox.com/s/2ieaawy5gme9a50/email_configuration_acl_for_apex.txt?dl=0
以上所有内容都应该工作 :-) 没有时间进一步测试或参考安全问题等