@@ -2781,12 +2781,15 @@ func (repman *ReplicationManager) setClusterSetting(mycluster *cluster.Cluster,
2781
2781
new_secret .Value = mycluster .Conf .MailSMTPPassword
2782
2782
new_secret .OldValue = mycluster .Conf .GetDecryptedValue ("mail-smtp-password" )
2783
2783
mycluster .Conf .Secrets ["mail-smtp-password" ] = new_secret
2784
+ mycluster .Mailer .UpdateAuth (mycluster .Conf .MailSMTPUser , new_secret .Value )
2784
2785
case "mail-smtp-user" :
2785
2786
mycluster .Conf .SetMailSmtpUser (value )
2787
+ mycluster .Mailer .UpdateAuth (value , mycluster .Conf .GetDecryptedValue ("mail-smtp-password" ))
2786
2788
case "mail-to" :
2787
2789
mycluster .Conf .SetMailTo (value )
2788
2790
case "mail-from" :
2789
2791
mycluster .Conf .SetMailFrom (value )
2792
+ mycluster .Mailer .SetFrom (value )
2790
2793
case "scheduler-alert-disable-time" :
2791
2794
val , _ := strconv .Atoi (value )
2792
2795
mycluster .SetSchedulerAlertDisableTime (val )
@@ -3528,14 +3531,15 @@ func (repman *ReplicationManager) setRepmanSetting(name string, value string) er
3528
3531
new_secret .Value = repman .Conf .MailSMTPPassword
3529
3532
new_secret .OldValue = repman .Conf .GetDecryptedValue ("mail-smtp-password" )
3530
3533
repman .Conf .Secrets ["mail-smtp-password" ] = new_secret
3531
- repman .Mailer .UpdateAuth (repman .Conf .MailSMTPUser , repman . Conf . MailSMTPPassword )
3534
+ repman .Mailer .UpdateAuth (repman .Conf .MailSMTPUser , new_secret . Value )
3532
3535
case "mail-smtp-user" :
3533
3536
repman .Conf .SetMailSmtpUser (value )
3534
- repman .Mailer .UpdateAuth (repman .Conf .MailSMTPUser , repman .Conf .MailSMTPPassword )
3537
+ repman .Mailer .UpdateAuth (repman .Conf .MailSMTPUser , repman .Conf .GetDecryptedValue ( "mail-smtp-password" ) )
3535
3538
case "mail-to" :
3536
3539
repman .Conf .SetMailTo (value )
3537
3540
case "mail-from" :
3538
3541
repman .Conf .SetMailFrom (value )
3542
+ repman .Mailer .SetFrom (value )
3539
3543
case "cloud18-shared" :
3540
3544
if repman .Conf .Cloud18 {
3541
3545
repman .Conf .Cloud18Shared = isactive
0 commit comments