diff --git a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct.pass.sh b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct.pass.sh index 2c263e4dadf7..28fb54b2f07a 100644 --- a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct.pass.sh +++ b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct.pass.sh @@ -2,3 +2,5 @@ # packages = postfix echo "inet_interfaces = loopback-only" > /etc/postfix/main.cf +systemctl enable postfix +systemctl start postfix diff --git a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct_commented.fail.sh b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct_commented.fail.sh index 92472f26ba73..7e7eab9e818a 100644 --- a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct_commented.fail.sh +++ b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/correct_commented.fail.sh @@ -2,4 +2,5 @@ # packages = postfix echo "#inet_interfaces = loopback-only" > /etc/postfix/main.cf -echo "inet_interfaces = something_different" >> /etc/postfix/main.cf +systemctl enable postfix +systemctl start postfix diff --git a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong.fail.sh b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong.fail.sh index f8ce16ba9bb1..cd1f2cae59a3 100644 --- a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong.fail.sh +++ b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong.fail.sh @@ -1,4 +1,6 @@ #!/bin/bash # packages = postfix -echo "inet_interfaces = some_different_interface,loopback-only" > /etc/postfix/main.cf +echo "inet_interfaces = all" > /etc/postfix/main.cf +systemctl enable postfix +systemctl start postfix diff --git a/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong_but_disabled.pass.sh b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong_but_disabled.pass.sh new file mode 100644 index 000000000000..5fb37d11601e --- /dev/null +++ b/linux_os/guide/services/mail/postfix_client/postfix_network_listening_disabled/tests/wrong_but_disabled.pass.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# packages = postfix + +echo "inet_interfaces = all" > /etc/postfix/main.cf +systemctl stop postfix +systemctl disable postfix