Execution
Date
17 Apr 2026 11:47:46 +0100
Duration
00:00:09.44
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.13
ara
1.7.5 / 1.7.5
Python
3.10.10
Summary
1
Hosts
2
Tasks
2
Results
1
Plays
1
Files
0
Records
Task result details
-
StatusOK
-
Duration00:00:08.34
-
PlayPlaybook to install postmark and postfix
-
TaskRemove postfix and sendmail
-
Date17 Apr 2026 11:47:54 +0100
-
Module / Actionansible.builtin.shell (/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml:6)
-
Tags
- redeploy
| Field | Value |
|---|---|
| changed |
False |
| cmd |
set -o pipefail yum -y remove postfix sendmail rm -rf /etc/postfix/ yum -y install postfix cyrus-sasl-plain s-nail echo -e "\n#Sending all emails through postmark" >> /etc/postfix/main.cf echo "relayhost = [smtp.postmarkapp.com]:587" >> /etc/postfix/main.cf echo "smtp_sasl_auth_enable = yes" >> /etc/postfix/main.cf echo "smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" >> /etc/postfix/main.cf echo "smtp_sasl_security_options = noanonymous" >> /etc/postfix/main.cf echo "smtp_tls_security_level = may" >> /etc/postfix/main.cf echo "smtp_tls_loglevel = 1" >> /etc/postfix/main.cf echo "smtp_always_send_ehlo = yes" >> /etc/postfix/main.cf echo "[smtp.postmarkapp.com]:587 PM-T-mdmonitor-VLXylaXkYUznVO0nZVOX1:0ZnmCrZdSdpJGPGqoyQ2jukwGTrcyUb8Q5KI" > /etc/postfix/sasl_passwd echo "#end postmark" >> /etc/postfix/main.cf chmod 600 /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd systemctl enable --now postfix.service systemctl --no-pager status postfix.service |
| delta |
0:00:07.788183 |
| end |
2026-04-17 10:47:54.810800 |
| invocation |
{ "module_args": { "_raw_params": "set -o pipefail\nyum -y remove postfix sendmail\nrm -rf /etc/postfix/\nyum -y install postfix cyrus-sasl-plain s-nail\necho -e \"\\n#Sending all emails through postmark\" >> /etc/postfix/main.cf\necho \"relayhost = [smtp.postmarkapp.com]:587\" >> /etc/postfix/main.cf\necho \"smtp_sasl_auth_enable = yes\" >> /etc/postfix/main.cf\necho \"smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd\" >> /etc/postfix/main.cf\necho \"smtp_sasl_security_options = noanonymous\" >> /etc/postfix/main.cf\necho \"smtp_tls_security_level = may\" >> /etc/postfix/main.cf\necho \"smtp_tls_loglevel = 1\" >> /etc/postfix/main.cf\necho \"smtp_always_send_ehlo = yes\" >> /etc/postfix/main.cf\necho \"[smtp.postmarkapp.com]:587 PM-T-mdmonitor-VLXylaXkYUznVO0nZVOX1:0ZnmCrZdSdpJGPGqoyQ2jukwGTrcyUb8Q5KI\" > /etc/postfix/sasl_passwd\necho \"#end postmark\" >> /etc/postfix/main.cf\nchmod 600 /etc/postfix/sasl_passwd\npostmap /etc/postfix/sasl_passwd\nsystemctl enable --now postfix.service\nsystemctl --no-pager status postfix.service\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "expand_argument_vars": true, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
| msg |
|
| rc |
0 |
| start |
2026-04-17 10:47:47.022617 |
| stderr |
Created symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service. |
| stderr_lines |
[ "Created symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service." ] |
| stdout |
Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,
: yum-plugin-readykernel, yum-plugin-rk-repo
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-9.vl7 will be erased
---> Package sendmail.x86_64 0:8.14.7-6.vl7 will be erased
--> Processing Dependency: sendmail = 8.14.7-6.vl7 for package: sendmail-cf-8.14.7-6.vl7.noarch
--> Running transaction check
---> Package sendmail-cf.noarch 0:8.14.7-6.vl7 will be erased
--> Finished Dependency Resolution
Loading mirror speeds from cached hostfile
* epel: d2lzkl7pfhq30w.cloudfront.net
* jelastic-app: repo-mirror2.jelastic.com
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
postfix x86_64 2:2.10.1-9.vl7 installed 12 M
sendmail x86_64 8.14.7-6.vl7 installed 1.7 M
Removing for dependencies:
sendmail-cf noarch 8.14.7-6.vl7 installed 938 k
Transaction Summary
================================================================================
Remove 2 Packages (+1 Dependent package)
Installed size: 15 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : sendmail-cf-8.14.7-6.vl7.noarch 1/3
Erasing : sendmail-8.14.7-6.vl7.x86_64 2/3
Erasing : 2:postfix-2.10.1-9.vl7.x86_64 3/3
Verifying : sendmail-8.14.7-6.vl7.x86_64 1/3
Verifying : sendmail-cf-8.14.7-6.vl7.noarch 2/3
Verifying : 2:postfix-2.10.1-9.vl7.x86_64 3/3
Removed:
postfix.x86_64 2:2.10.1-9.vl7 sendmail.x86_64 0:8.14.7-6.vl7
Dependency Removed:
sendmail-cf.noarch 0:8.14.7-6.vl7
Complete!
Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,
: yum-plugin-readykernel, yum-plugin-rk-repo
Loading mirror speeds from cached hostfile
* epel: d2lzkl7pfhq30w.cloudfront.net
* jelastic-app: repo-mirror2.jelastic.com
1020 packages excluded due to repository priority protections
Package cyrus-sasl-plain-2.1.26-24.vl7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-9.vl7 will be installed
---> Package s-nail.x86_64 0:14.9.23-1.el7 will be installed
--> Processing Dependency: libidn2.so.0(IDN2_0.0.0)(64bit) for package: s-nail-14.9.23-1.el7.x86_64
--> Processing Dependency: libidn2.so.0()(64bit) for package: s-nail-14.9.23-1.el7.x86_64
--> Running transaction check
---> Package libidn2.x86_64 0:2.3.7-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
postfix x86_64 2:2.10.1-9.vl7 virtuozzolinux-base 2.4 M
s-nail x86_64 14.9.23-1.el7 epel 574 k
Installing for dependencies:
libidn2 x86_64 2.3.7-1.el7 epel 161 k
Transaction Summary
================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 3.2 M
Installed size: 14 M
Downloading packages:
--------------------------------------------------------------------------------
Total 5.4 MB/s | 3.2 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libidn2-2.3.7-1.el7.x86_64 1/3
Installing : s-nail-14.9.23-1.el7.x86_64 2/3
Installing : 2:postfix-2.10.1-9.vl7.x86_64 3/3
Verifying : s-nail-14.9.23-1.el7.x86_64 1/3
Verifying : 2:postfix-2.10.1-9.vl7.x86_64 2/3
Verifying : libidn2-2.3.7-1.el7.x86_64 3/3
Installed:
postfix.x86_64 2:2.10.1-9.vl7 s-nail.x86_64 0:14.9.23-1.el7
Dependency Installed:
libidn2.x86_64 0:2.3.7-1.el7
Complete!
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2026-04-17 10:47:54 UTC; 2ms ago
Process: 213561 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 213558 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 213543 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Main PID: 213632 (master)
Tasks: 3
Memory: 8.8M
CGroup: /system.slice/postfix.service
├─213632 /usr/libexec/postfix/master -w
├─213633 pickup -l -t unix -u
└─213634 qmgr -l -t unix -u
Apr 17 10:47:54 hna12.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...
Apr 17 10:47:54 hna12.j.layershift.co.uk postfix/postfix-script[213630]: starting the Postfix mail system
Apr 17 10:47:54 hna12.j.layershift.co.uk postfix/master[213632]: daemon started -- version 2.10.1, configuration /etc/postfix
Apr 17 10:47:54 hna12.j.layershift.co.uk systemd[1]: Started Postfix Mail Transport Agent.
|
| stdout_lines |
[ "Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,", " : yum-plugin-readykernel, yum-plugin-rk-repo", "Resolving Dependencies", "--> Running transaction check", "---> Package postfix.x86_64 2:2.10.1-9.vl7 will be erased", "---> Package sendmail.x86_64 0:8.14.7-6.vl7 will be erased", "--> Processing Dependency: sendmail = 8.14.7-6.vl7 for package: sendmail-cf-8.14.7-6.vl7.noarch", "--> Running transaction check", "---> Package sendmail-cf.noarch 0:8.14.7-6.vl7 will be erased", "--> Finished Dependency Resolution", "Loading mirror speeds from cached hostfile", " * epel: d2lzkl7pfhq30w.cloudfront.net", " * jelastic-app: repo-mirror2.jelastic.com", "", "Dependencies Resolved", "", "================================================================================", " Package Arch Version Repository Size", "================================================================================", "Removing:", " postfix x86_64 2:2.10.1-9.vl7 installed 12 M", " sendmail x86_64 8.14.7-6.vl7 installed 1.7 M", "Removing for dependencies:", " sendmail-cf noarch 8.14.7-6.vl7 installed 938 k", "", "Transaction Summary", "================================================================================", "Remove 2 Packages (+1 Dependent package)", "", "Installed size: 15 M", "Downloading packages:", "Running transaction check", "Running transaction test", "Transaction test succeeded", "Running transaction", " Erasing : sendmail-cf-8.14.7-6.vl7.noarch 1/3 ", " Erasing : sendmail-8.14.7-6.vl7.x86_64 2/3 ", " Erasing : 2:postfix-2.10.1-9.vl7.x86_64 3/3 ", " Verifying : sendmail-8.14.7-6.vl7.x86_64 1/3 ", " Verifying : sendmail-cf-8.14.7-6.vl7.noarch 2/3 ", " Verifying : 2:postfix-2.10.1-9.vl7.x86_64 3/3 ", "", "Removed:", " postfix.x86_64 2:2.10.1-9.vl7 sendmail.x86_64 0:8.14.7-6.vl7 ", "", "Dependency Removed:", " sendmail-cf.noarch 0:8.14.7-6.vl7 ", "", "Complete!", "Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,", " : yum-plugin-readykernel, yum-plugin-rk-repo", "Loading mirror speeds from cached hostfile", " * epel: d2lzkl7pfhq30w.cloudfront.net", " * jelastic-app: repo-mirror2.jelastic.com", "1020 packages excluded due to repository priority protections", "Package cyrus-sasl-plain-2.1.26-24.vl7.x86_64 already installed and latest version", "Resolving Dependencies", "--> Running transaction check", "---> Package postfix.x86_64 2:2.10.1-9.vl7 will be installed", "---> Package s-nail.x86_64 0:14.9.23-1.el7 will be installed", "--> Processing Dependency: libidn2.so.0(IDN2_0.0.0)(64bit) for package: s-nail-14.9.23-1.el7.x86_64", "--> Processing Dependency: libidn2.so.0()(64bit) for package: s-nail-14.9.23-1.el7.x86_64", "--> Running transaction check", "---> Package libidn2.x86_64 0:2.3.7-1.el7 will be installed", "--> Finished Dependency Resolution", "", "Dependencies Resolved", "", "================================================================================", " Package Arch Version Repository Size", "================================================================================", "Installing:", " postfix x86_64 2:2.10.1-9.vl7 virtuozzolinux-base 2.4 M", " s-nail x86_64 14.9.23-1.el7 epel 574 k", "Installing for dependencies:", " libidn2 x86_64 2.3.7-1.el7 epel 161 k", "", "Transaction Summary", "================================================================================", "Install 2 Packages (+1 Dependent package)", "", "Total download size: 3.2 M", "Installed size: 14 M", "Downloading packages:", "--------------------------------------------------------------------------------", "Total 5.4 MB/s | 3.2 MB 00:00 ", "Running transaction check", "Running transaction test", "Transaction test succeeded", "Running transaction", " Installing : libidn2-2.3.7-1.el7.x86_64 1/3 ", " Installing : s-nail-14.9.23-1.el7.x86_64 2/3 ", " Installing : 2:postfix-2.10.1-9.vl7.x86_64 3/3 ", " Verifying : s-nail-14.9.23-1.el7.x86_64 1/3 ", " Verifying : 2:postfix-2.10.1-9.vl7.x86_64 2/3 ", " Verifying : libidn2-2.3.7-1.el7.x86_64 3/3 ", "", "Installed:", " postfix.x86_64 2:2.10.1-9.vl7 s-nail.x86_64 0:14.9.23-1.el7 ", "", "Dependency Installed:", " libidn2.x86_64 0:2.3.7-1.el7 ", "", "Complete!", "\u25cf postfix.service - Postfix Mail Transport Agent", " Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)", " Active: active (running) since Fri 2026-04-17 10:47:54 UTC; 2ms ago", " Process: 213561 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)", " Process: 213558 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)", " Process: 213543 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)", " Main PID: 213632 (master)", " Tasks: 3", " Memory: 8.8M", " CGroup: /system.slice/postfix.service", " \u251c\u2500213632 /usr/libexec/postfix/master -w", " \u251c\u2500213633 pickup -l -t unix -u", " \u2514\u2500213634 qmgr -l -t unix -u", "", "Apr 17 10:47:54 hna12.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...", "Apr 17 10:47:54 hna12.j.layershift.co.uk postfix/postfix-script[213630]: starting the Postfix mail system", "Apr 17 10:47:54 hna12.j.layershift.co.uk postfix/master[213632]: daemon started -- version 2.10.1, configuration /etc/postfix", "Apr 17 10:47:54 hna12.j.layershift.co.uk systemd[1]: Started Postfix Mail Transport Agent." ] |