Server IP : 172.67.158.161 / Your IP : 3.138.124.96 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/ |
Upload File : |
(* Module: Test_Postfix_Transport Provides unit tests and examples for the <Postfix_Transport> lens. *) module Test_Postfix_Transport = (* View: conf *) let conf = "# a comment the.backed-up.domain.tld relay:[their.mail.host.tld] .my.domain : * smtp:outbound-relay.my.domain example.com uucp:example example.com slow: example.com :[gateway.example.com] [email protected] smtp:bar.example:2025 [email protected] discard: .example.com error:mail for *.example.com is not deliverable " (* Test: Postfix_Transport.lns *) test Postfix_Transport.lns get conf = { "#comment" = "a comment" } { "pattern" = "the.backed-up.domain.tld" { "transport" = "relay" } { "nexthop" = "[their.mail.host.tld]" } } { "pattern" = ".my.domain" { "transport" } { "nexthop" } } { "pattern" = "*" { "transport" = "smtp" } { "nexthop" = "outbound-relay.my.domain" } } { "pattern" = "example.com" { "transport" = "uucp" } { "nexthop" = "example" } } { "pattern" = "example.com" { "transport" = "slow" } { "nexthop" } } { "pattern" = "example.com" { "transport" } { "nexthop" = "[gateway.example.com]" } } { "pattern" = "[email protected]" { "transport" = "smtp" } { "nexthop" = "bar.example:2025" } } { "pattern" = "[email protected]" { "transport" = "discard" } { "nexthop" } } { "pattern" = ".example.com" { "transport" = "error" } { "nexthop" = "mail for *.example.com is not deliverable" } } (* Test: Postfix_Transport.lns Bug #303 *) test Postfix_Transport.lns get "[email protected] [12.34.56.78]:587\n" = { "pattern" = "[email protected]" { "host" = "[12.34.56.78]" } { "port" = "587" } }