@@ -61,6 +61,7 @@ sub usage {
61
61
--envelope-sender <str> * Email envelope sender.
62
62
--smtp-server <str:int> * Outgoing SMTP server to use. The port
63
63
is optional. Default 'localhost'.
64
+ --smtp-server-option <str> * Outgoing SMTP server option to use.
64
65
--smtp-server-port <int> * Outgoing SMTP server port.
65
66
--smtp-user <str> * Username for SMTP-AUTH.
66
67
--smtp-pass <str> * Password for SMTP-AUTH; not necessary.
@@ -191,8 +192,9 @@ sub do_edit {
191
192
192
193
# Variables with corresponding config settings
193
194
my ($thread , $chain_reply_to , $suppress_from , $signed_off_by_cc , $cc_cmd );
194
- my ($smtp_server , $smtp_server_port , $smtp_authuser , $smtp_encryption );
195
- my ($identity , $aliasfiletype , @alias_files , @smtp_host_parts , $smtp_domain );
195
+ my ($smtp_server , $smtp_server_port , @smtp_server_options );
196
+ my ($smtp_authuser , $smtp_encryption );
197
+ my ($identity , $aliasfiletype , @alias_files , $smtp_domain );
196
198
my ($validate , $confirm );
197
199
my (@suppress_cc );
198
200
my ($auto_8bit_encoding );
@@ -213,9 +215,10 @@ sub do_edit {
213
215
my %config_settings = (
214
216
" smtpserver" => \$smtp_server ,
215
217
" smtpserverport" => \$smtp_server_port ,
218
+ " smtpserveroption" => \@smtp_server_options ,
216
219
" smtpuser" => \$smtp_authuser ,
217
220
" smtppass" => \$smtp_authpass ,
218
- " smtpdomain" => \$smtp_domain ,
221
+ " smtpdomain" => \$smtp_domain ,
219
222
" to" => \@to ,
220
223
" cc" => \@initial_cc ,
221
224
" cccmd" => \$cc_cmd ,
@@ -282,6 +285,7 @@ sub signal_handler {
282
285
" no-bcc" => \$no_bcc ,
283
286
" chain-reply-to!" => \$chain_reply_to ,
284
287
" smtp-server=s" => \$smtp_server ,
288
+ " smtp-server-option=s" => \@smtp_server_options ,
285
289
" smtp-server-port=s" => \$smtp_server_port ,
286
290
" smtp-user=s" => \$smtp_authuser ,
287
291
" smtp-pass:s" => \$smtp_authpass ,
@@ -1029,6 +1033,8 @@ sub send_message {
1029
1033
}
1030
1034
}
1031
1035
1036
+ unshift (@sendmail_parameters , @smtp_server_options );
1037
+
1032
1038
if ($dry_run ) {
1033
1039
# We don't want to send the email.
1034
1040
} elsif ($smtp_server =~ m # ^/# ) {
0 commit comments