]> git.proxmox.com Git - pmg-api.git/commitdiff
pmg-smtp-filter: rename proxtest.com to pmg.example
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 21 Feb 2024 20:26:51 +0000 (21:26 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 21 Feb 2024 20:26:55 +0000 (21:26 +0100)
the proxtest.com addresses have been hardcoded for a long while, and
are used for the regression tests.

While the regression tests do not send out mails - certain
configurations might - e.g.:
```
section: mail
        ndr_on_block 1
```

noticed while running the regression tests with this setting and
seeing that my queue had messages, which could not be delivered due to
a time-out

replace the addresses with `pmg.example` (longer names make the
test-output wrap to multiple lines causing more churn in the
regressions tests) - pmg.example is safe as .example is reserved (for
such purposes) [0]

[0] https://en.wikipedia.org/wiki/.example

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/bin/pmg-smtp-filter

index 385e8daa432b492b349d63b4b09140f0ccdb0652..835af2d7a13d02e6589c4a9e8aad331f7d94dfdf 100755 (executable)
@@ -948,10 +948,10 @@ if (!$opt_testmode) {
        $server->run();
     } else {
 
-       my $sender ='sender@proxtest.com';
-       my $targets = ['target1@proxtest.com',
-                      'target2@proxtest.com',
-                      'target3@proxtest.com'];
+       my $sender ='sender@pmg.example';
+       my $targets = ['target1@pmg.example',
+                      'target2@pmg.example',
+                      'target3@pmg.example'];
 
        my $smtp;
        while (!$smtp) {