]> git.proxmox.com Git - pmg-api.git/commitdiff
fix bug #1701: implement smarthostport setting
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Sep 2018 06:29:22 +0000 (08:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Sep 2018 06:29:22 +0000 (08:29 +0200)
PMG/Config.pm
templates/main.cf.in
templates/main.cf.in.demo

index 107cea50d3819bc1e84f4b87b389b433b783a556..07ea74868b8e942e418e9445f46a2cb5bd6b0c02 100755 (executable)
@@ -467,6 +467,13 @@ sub properties {
            description => "When set, all outgoing mails are deliverd to the specified smarthost.",
            type => 'string', format => 'address',
        },
+       smarthostport => {
+           description => "SMTP port number for smarthost.",
+           type => 'integer',
+           minimum => 1,
+           maximum => 65535,
+           default => 25,
+       },
        banner => {
            description => "ESMTP banner.",
            type => 'string',
@@ -599,6 +606,7 @@ sub options {
        int_port => { optional => 1 },
        ext_port => { optional => 1 },
        smarthost => { optional => 1 },
+       smarthostport => { optional => 1 },
        relay => { optional => 1 },
        relayport => { optional => 1 },
        relaynomx => { optional => 1 },
index a1785350f35e175847086c6e312d1a9421847ea3..7bf9afa7049a425d222fbfe49bd9e46528c4aeac 100644 (file)
@@ -42,7 +42,7 @@ relay_transport = smtp:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
 [% END %]
 
 [% IF pmg.mail.smarthost %]
-default_transport = smtp:[% pmg.mail.smarthost %]
+default_transport = smtp:[% pmg.mail.smarthost %]:[% pmg.mail.smarthostport %]
 [% END %]
 
 content_filter=scan:127.0.0.1:10024
index 92a708e71d2f0f876f55a4580772ebfb13f55775..2c346ec07360beb3405c06290dc3dfa508f64368 100644 (file)
@@ -42,7 +42,7 @@ relay_transport = smtp:[% pmg.mail.relay %]:[% pmg.mail.relayport %]
 [% END %]
 
 [% IF pmg.mail.smarthost %]
-default_transport = smtp:[% pmg.mail.smarthost %]
+default_transport = smtp:[% pmg.mail.smarthost %]:[% pmg.mail.smarthostport %]
 [% END %]
 
 mail_name = Proxmox