On Wed, Oct 21, 2020 at 02:20:18PM +0800, Luan Shengde wrote:
On Wed, Oct 21, 2020 at 11:58:04AM +0800, Wu Fengguang wrote:
On Wed, Oct 21, 2020 at 11:53:18AM +0800, Luan Shengde wrote:
On Wed, Oct 21, 2020 at 11:32:54AM +0800, Wu Fengguang wrote:
On Wed, Oct 21, 2020 at 10:57:33AM +0800, Luan Shengde wrote:
On Wed, Oct 21, 2020 at 10:31:34AM +0800, Wu Fengguang wrote:
>+SEND_MAIL_HOST = defaults['SEND_MAIL_HOST'] || localhost >+SEND_MAIL_PORT = defaults['SEND_INTERNET_MAIL_PORT'] || 11312
不大对称,可能有问题。 SEND_MAIL_HOST是啥东西?
SEND_MAIL_HOST is the host which send_mail service running on
为啥HOST可以复用, PORT不能复用?
because there are two service: send-mail: send intranet email(crystal.ci) send-internet-mail: send internet mail The two service may run on a single host
那我想让他们在两台机器上跑呢?
SEND_INTERNET_MAIL_PORT => SEND_MAIL_PORT_INTERNET
不是PORT啦,现在需要HOST不一样。
then you may also set SEND_MAIL_HOST_INTERNET SEND_MAIL_HOST_INTRANET for the two services on different hosts
send internet email: SEND_MAIL_HOST <=> SEND_MAIL_HOST_INTERNET send intranet email: SEND_MAIL_HOST <=> SEND_MAIL_HOST_INTRANET
OK.
Thanks, Fengguang
set SEND_MAIL_PORT_INTERNET: xxxx1 SEND_MAIL_PORT_INTRANET: xxxx2 in ~/.config/compass-ci/default/$USER.yaml
no matter the two service run on a single host or two start file: send internet email: SEND_MAIL_PORT <=> SEND_MAIL_PORT_INTERNET send intranet email: SEND_MAIL_PORT <=> SEND_MAIL_PORT_INTRANET
mail-post.rb just receive variable: SEND_MAIL_PORT no matter send internet email or send intranet email, the mail-post can get the right port.
Thanks Luan Shengde
Thanks, Fengguang