Advertisement
UHLHosting

postfix

Oct 6th, 2022
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 24.76 KB | None | 0 0
  1. [root@cp clamd.d]# cpcmd scope:get cp.bootstrapper postfix_add_sasl_auth_header
  2.  
  3. [root@cp clamd.d]# cpcmd scope:set cp.bootstrapper postfix_add_sasl_auth_header true
  4. INFO   : Setting variable `postfix_add_sasl_auth_header'. Previous not present in apnscp-vars-runtime.yml.
  5. ----------------------------------------
  6. MESSAGE SUMMARY
  7. Reporter level: OK
  8. INFO: Setting variable `postfix_add_sasl_auth_header'. Previous not present in apnscp-vars-runtime.yml.
  9. ----------------------------------------
  10. 1
  11. [root@cp clamd.d]# upcp -sb mail/configure-postfix
  12.  
  13. PLAY [localhost] ******************************************************************************************************************************************************
  14. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/set-configuration.yml for localhost
  15. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/setup-cyrus.yml for localhost
  16.  
  17. TASK [mail/configure-postfix : fail] **********************************************************************************************************************************
  18. fatal: [localhost]: FAILED! => {"changed": false, "msg": "NON-FATAL NOTICE: Data center mode enabled but address verify map or postscreen map not shared in memcache instance! Set postfix_address_verify_map and postfix_postscreen_cache_map for best performance."}
  19. ...ignoring
  20. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/register-password.yml for localhost
  21. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/install-postsrs.yml for localhost
  22.  
  23. TASK [mail/configure-postfix : Create Postfix user] *******************************************************************************************************************
  24. changed: [localhost]
  25. included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml for localhost
  26. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/set-configuration.yml for localhost
  27.  
  28. TASK [mail/configure-postfix : {{ item.value | default(false, true) | ternary('Set', 'Remove') }} {{item.key}} => {{ item.value}} in {{ config_file }}] ***************
  29. changed: [localhost] => (item=Set smtpd_sasl_authenticated_header => yes)
  30. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/manage-alias.yml for localhost
  31. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/manage-alias.yml for localhost
  32.  
  33. RUNNING HANDLER [common : Restart postfix] ****************************************************************************************************************************
  34. changed: [localhost]
  35.  
  36. PLAY RECAP ************************************************************************************************************************************************************
  37. localhost                  : ok=37   changed=3    unreachable=0    failed=0    skipped=15   rescued=0    ignored=1  
  38.  
  39. [root@cp clamd.d]# cpcmd scope:set cp.bootstrapper postfix_address_verify_map true
  40. INFO   : Setting variable `postfix_address_verify_map'. Previous not present in apnscp-vars-runtime.yml.
  41. ----------------------------------------
  42. MESSAGE SUMMARY
  43. Reporter level: OK
  44. INFO: Setting variable `postfix_address_verify_map'. Previous not present in apnscp-vars-runtime.yml.
  45. ----------------------------------------
  46. 1
  47. [root@cp clamd.d]# cpcmd scope:set cp.bootstrapper postfix_postscreen_cache_map true
  48. INFO   : Setting variable `postfix_postscreen_cache_map'. Previous not present in apnscp-vars-runtime.yml.
  49. ----------------------------------------
  50. MESSAGE SUMMARY
  51. Reporter level: OK
  52. INFO: Setting variable `postfix_postscreen_cache_map'. Previous not present in apnscp-vars-runtime.yml.
  53. ----------------------------------------
  54. 1
  55. [root@cp clamd.d]# upcp -sb mail/configure-postfix
  56.  
  57. PLAY [localhost] ******************************************************************************************************************************************************
  58. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/set-configuration.yml for localhost
  59. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/setup-cyrus.yml for localhost
  60.  
  61. TASK [mail/configure-postfix : fail] **********************************************************************************************************************************
  62. fatal: [localhost]: FAILED! => {"msg": "The conditional check 'data_center_mode and (\n  -1 == postfix_address_verify_map.find(\"memcache:\") or\n  -1 == postfix_postscreen_cache_map.find(\"memcache:\")\n)\n' failed. The error was: error while evaluating conditional (data_center_mode and (\n  -1 == postfix_address_verify_map.find(\"memcache:\") or\n  -1 == postfix_postscreen_cache_map.find(\"memcache:\")\n)\n): 'bool object' has no attribute 'find'\n\nThe error appears to be in '/usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/main.yml': line 27, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when: postfix_smarthost_enabled | bool\n- fail:\n  ^ here\n"}
  63. ...ignoring
  64. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/register-password.yml for localhost
  65. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/install-postsrs.yml for localhost
  66.  
  67. TASK [mail/configure-postfix : Create Postfix user] *******************************************************************************************************************
  68. changed: [localhost]
  69. included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml for localhost
  70.  
  71. TASK [mail/configure-postfix : set_fact] ******************************************************************************************************************************
  72. fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ postfix_config }}: {'smtpd_tls_cert_file': '/etc/ssl/certs/server.pem', 'virtual_mailbox_domains': 'proxy:pgsql:/etc/postfix/domains.cf', 'alias_maps': 'proxy:hash:{{aliases_file}}', 'virtual_transport': 'vmaildrop', 'local_transport': 'local:$myhostname', 'virtual_alias_maps': 'proxy:pgsql:/etc/postfix/aliases.cf', 'vmaildrop_destination_recipient_limit': 1, 'localmaildrop_destination_recipient_limit': '$vmaildrop_destination_recipient_limit', 'virtual_uid_maps': 'proxy:pgsql:/etc/postfix/uids.cf', 'virtual_mailbox_base': '/home/virtual', 'disable_vrfy_command': 'yes', 'virtual_minimum_uid': 500, 'virtual_mailbox_maps': 'proxy:pgsql:/etc/postfix/mailboxes.cf', 'smtp_sasl_auth_enable': \"{{ postfix_smarthost_enabled | ternary('yes', 'no') }}\", 'smtpd_sasl_auth_enable': \"{{ mail_enabled | ternary('yes', 'no') }}\", 'smtpd_sasl_type': \"{{ mail_enabled | ternary('dovecot', 'cyrus') }}\", 'mail_spool_directory': '/var/spool/mail', 'smtpd_sasl_path': \"{{ mail_enabled | ternary('private/auth', None) }}\", 'recipient_delimiter': '{{ postfix_recipient_delimiter }}', 'transport_maps': 'hash:/etc/postfix/transport', 'proxy_read_maps': '$local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtp_sasl_auth_cache_name', 'proxy_write_maps': \"$smtpd_tls_session_cache_database $smtp_sasl_auth_cache_name {% if -1 != postfix_address_verify_map.find('memcache:') %} {{ postfix_local_address_verify_map  }} {{ postfix_local_postscreen_cache_map }} {% else %} $postscreen_cache_map $address_verify_map {% endif %}\", 'smtpd_recipient_restrictions': '{{ postfix_relay_mynetworks | bool | ternary(\"permit_mynetworks,\", \"\") }} permit_sasl_authenticated, reject_unknown_recipient_domain, reject_non_fqdn_helo_hostname, reject_non_fqdn_sender, check_client_access pcre:/etc/postfix/client_access, check_sender_access pcre:/etc/postfix/access, reject_unknown_recipient_domain, reject_unverified_recipient, reject_non_fqdn_recipient, reject_unauth_pipelining, reject_invalid_hostname, reject_unknown_sender_domain, reject_unknown_reverse_client_hostname', 'smtpd_relay_restrictions': '{{ postfix_relay_mynetworks | bool | ternary(\"permit_mynetworks,\", \"\") }}permit_sasl_authenticated,defer_unauth_destination', 'smtpd_helo_required': 'yes', 'smtpd_error_sleep_time': 60, 'maximal_backoff_time': '8h', 'local_header_rewrite_clients': 'permit_inet_interfaces,permit_sasl_authenticated', 'always_add_missing_headers': 'no', 'smtpd_timeout': '${stress?10}${stress:300}', 'vmaildrop_destination_rate_delay': '{{ postfix_local_delivery_delay }}', 'localmaildrop_destination_rate_delay': '$vmaildrop_destination_rate_delay', 'smtpd_sasl_security_options': 'noanonymous', 'mailbox_size_limit': '$message_size_limit', 'mailbox_transport': 'localmaildrop', 'minimal_backoff_time': '4h', 'queue_run_delay': '8h', 'data_directory': '{{ postfix_data_dir }}', 'smtpd_tls_session_cache_database': 'proxy:btree:$data_directory/smtpd_scache', 'smtp_sasl_auth_cache_name': 'proxy:btree:$data_directory/sasl_auth_cache', 'smtp_sasl_auth_cache_time': '{{ postfix_sasl_cache_duration | default(1800) }}', 'message_size_limit': '{{ postfix_message_size_limit | default(100000000) }}', 'virtual_mailbox_limit': '$message_size_limit', 'smtpd_soft_error_limit': '${stress?2}${stress:5}', 'smtpd_hard_error_limit': 2, 'virtual_destination_rate_delay': '1s', 'smtpd_proxy_options': 'speed_adjust', 'smtpd_tls_loglevel': '0', 'postscreen_access_list': 'permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr', 'postscreen_dnsbl_threshold': 2, 'postscreen_dnsbl_sites': 'bl.spamcop.net*2 b.barracudacentral.org*2 zen.spamhaus.org=127.0.[0;1;2].[0..254]*2 list.dnswl.org*-2', 'postscreen_dnsbl_action': 'enforce', 'postscreen_greet_action': 'enforce', 'postscreen_non_smtp_command_enable': \"{{ postfix_use_deep_protocol_tests | ternary('yes', 'no') }}\", 'postscreen_pipelining_enable': \"{{ postfix_use_deep_protocol_tests | ternary('yes', 'no') }}\", 'smtpd_tls_mandatory_protocols': \"!SSLv2, !SSLv3{{ postfix_insecure_ssl | ternary('', ', !TLSv1, !TLSv1.1') }}\", 'smtpd_tls_protocols': '${smtpd_tls_mandatory_protocols}', 'smtp_tls_mandatory_protocols': '${smtpd_tls_mandatory_protocols}', 'smtp_tls_protocols': '${smtp_tls_mandatory_protocols}', 'require_home_directory': 'yes', 'home_mailbox': '{{ maildir_home }}/', 'postscreen_dnsbl_ttl': '24h', 'postscreen_pipelining_action': 'drop', 'address_verify_map': '{{ postfix_address_verify_map }}', 'postscreen_cache_map': '{{ postfix_postscreen_cache_map }}', 'postscreen_cache_cleanup_interval': '{{ postfix_postscreen_cache_cleanup_interval | default(43200) }}', 'inet_protocols': \"{{ (has_ipv4 and has_ipv6) | ternary('all', '') }} {{ (has_ipv4 and not has_ipv6) | ternary('ipv4', None) }} {{ (not has_ipv4 and has_ipv6) | ternary('ipv6', None) }}\", 'postscreen_greet_wait': '${stress?2}${stress:6}s', 'address_verify_cache_cleanup_interval': 0, 'postscreen_dnsbl_whitelist_threshold': -1, 'compatibility_level': 2, 'smtp_tls_security_level': '{{ postfix_smtp_tls_security_level }}', 'smtp_tls_wrappermode': '{{ postfix_smtps_wrapper_mode }}', 'smtpd_tls_security_level': 'may', 'sender_dependent_default_transport_maps': 'hash:/etc/postfix/sender_transport', 'inet_interfaces': \"{{ postfix_inet_interfaces | default('all') }}\", 'mydomain': '{{ postfix_mydomain }}', 'smtpd_upstream_proxy_protocol': \"{{ haproxy_enabled | ternary('haproxy', None) }}\", 'postscreen_upstream_proxy_protocol': \"{{ haproxy_enabled | ternary('haproxy', None) }}\", 'smtpd_sasl_authenticated_header': \"{{ postfix_add_sasl_auth_header | ternary('yes', 'no')}}\", 'smtp_sasl_tls_security_options': \"{{ postfix_smarthost_enabled | ternary('noanonymous', None) }}\", 'smtp_sasl_password_maps': \"{{ postfix_smarthost_enabled | ternary('hash:' + postfix_smarthost_auth_file, None) }}\", 'relayhost': '{{ postfix_smarthost_enabled | ternary(postfix_smarthost_credentials.host, None) }}', 'sender_canonical_maps': \"{{ postsrsd_enabled | ternary('pgsql:/etc/postfix/canonical_map_rewrite.cf,tcp:127.0.0.1:' + postsrsd_sender_map_port|string, None) }}\", 'sender_canonical_classes': \"{{ postsrsd_enabled | ternary('envelope_sender', None) }}\", 'recipient_canonical_maps': \"{{ postsrsd_enabled | ternary('tcp:127.0.0.1:' + postsrsd_recipient_map_port|string, None) }}\", 'recipient_canonical_classes': \"{{ postsrsd_enabled | ternary('envelope_recipient,header_recipient', None) }}\", 'strict_rfc821_envelopes': \"{{ postfix_strict_envelope | ternary('yes', 'no')}}\", 'strict_smtputf8': \"{{ postfix_strict_envelope | ternary('yes', 'no')}}\"}: 'bool object' has no attribute 'find'\n\nThe error appears to be in '/usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml': line 14, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Using LCI + undefined variable halts evaluation of keyed expressions, merge expressions into single line\n- set_fact:\n  ^ here\n"}
  73.  
  74. PLAY RECAP ************************************************************************************************************************************************************
  75. localhost                  : ok=26   changed=1    unreachable=0    failed=1    skipped=10   rescued=0    ignored=1  
  76.  
  77. [root@cp clamd.d]# cpcmd scope:set cp.bootstrapper postfix_postscreen_cache_map false
  78. 1
  79. [root@cp clamd.d]# cpcmd scope:set cp.bootstrapper postfix_address_verify_map false
  80. 1
  81. [root@cp clamd.d]# upcp -sb mail/configure-postfix
  82.  
  83. PLAY [localhost] ******************************************************************************************************************************************************
  84. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/set-configuration.yml for localhost
  85. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/setup-cyrus.yml for localhost
  86.  
  87. TASK [mail/configure-postfix : fail] **********************************************************************************************************************************
  88. fatal: [localhost]: FAILED! => {"msg": "The conditional check 'data_center_mode and (\n  -1 == postfix_address_verify_map.find(\"memcache:\") or\n  -1 == postfix_postscreen_cache_map.find(\"memcache:\")\n)\n' failed. The error was: error while evaluating conditional (data_center_mode and (\n  -1 == postfix_address_verify_map.find(\"memcache:\") or\n  -1 == postfix_postscreen_cache_map.find(\"memcache:\")\n)\n): 'bool object' has no attribute 'find'\n\nThe error appears to be in '/usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/main.yml': line 27, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when: postfix_smarthost_enabled | bool\n- fail:\n  ^ here\n"}
  89. ...ignoring
  90. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/register-password.yml for localhost
  91. included: /usr/local/apnscp/resources/playbooks/roles/mail/configure-postfix/tasks/install-postsrs.yml for localhost
  92.  
  93. TASK [mail/configure-postfix : Create Postfix user] *******************************************************************************************************************
  94. changed: [localhost]
  95. included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml for localhost
  96.  
  97. TASK [mail/configure-postfix : set_fact] ******************************************************************************************************************************
  98. fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ postfix_config }}: {'smtpd_tls_cert_file': '/etc/ssl/certs/server.pem', 'virtual_mailbox_domains': 'proxy:pgsql:/etc/postfix/domains.cf', 'alias_maps': 'proxy:hash:{{aliases_file}}', 'virtual_transport': 'vmaildrop', 'local_transport': 'local:$myhostname', 'virtual_alias_maps': 'proxy:pgsql:/etc/postfix/aliases.cf', 'vmaildrop_destination_recipient_limit': 1, 'localmaildrop_destination_recipient_limit': '$vmaildrop_destination_recipient_limit', 'virtual_uid_maps': 'proxy:pgsql:/etc/postfix/uids.cf', 'virtual_mailbox_base': '/home/virtual', 'disable_vrfy_command': 'yes', 'virtual_minimum_uid': 500, 'virtual_mailbox_maps': 'proxy:pgsql:/etc/postfix/mailboxes.cf', 'smtp_sasl_auth_enable': \"{{ postfix_smarthost_enabled | ternary('yes', 'no') }}\", 'smtpd_sasl_auth_enable': \"{{ mail_enabled | ternary('yes', 'no') }}\", 'smtpd_sasl_type': \"{{ mail_enabled | ternary('dovecot', 'cyrus') }}\", 'mail_spool_directory': '/var/spool/mail', 'smtpd_sasl_path': \"{{ mail_enabled | ternary('private/auth', None) }}\", 'recipient_delimiter': '{{ postfix_recipient_delimiter }}', 'transport_maps': 'hash:/etc/postfix/transport', 'proxy_read_maps': '$local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtp_sasl_auth_cache_name', 'proxy_write_maps': \"$smtpd_tls_session_cache_database $smtp_sasl_auth_cache_name {% if -1 != postfix_address_verify_map.find('memcache:') %} {{ postfix_local_address_verify_map  }} {{ postfix_local_postscreen_cache_map }} {% else %} $postscreen_cache_map $address_verify_map {% endif %}\", 'smtpd_recipient_restrictions': '{{ postfix_relay_mynetworks | bool | ternary(\"permit_mynetworks,\", \"\") }} permit_sasl_authenticated, reject_unknown_recipient_domain, reject_non_fqdn_helo_hostname, reject_non_fqdn_sender, check_client_access pcre:/etc/postfix/client_access, check_sender_access pcre:/etc/postfix/access, reject_unknown_recipient_domain, reject_unverified_recipient, reject_non_fqdn_recipient, reject_unauth_pipelining, reject_invalid_hostname, reject_unknown_sender_domain, reject_unknown_reverse_client_hostname', 'smtpd_relay_restrictions': '{{ postfix_relay_mynetworks | bool | ternary(\"permit_mynetworks,\", \"\") }}permit_sasl_authenticated,defer_unauth_destination', 'smtpd_helo_required': 'yes', 'smtpd_error_sleep_time': 60, 'maximal_backoff_time': '8h', 'local_header_rewrite_clients': 'permit_inet_interfaces,permit_sasl_authenticated', 'always_add_missing_headers': 'no', 'smtpd_timeout': '${stress?10}${stress:300}', 'vmaildrop_destination_rate_delay': '{{ postfix_local_delivery_delay }}', 'localmaildrop_destination_rate_delay': '$vmaildrop_destination_rate_delay', 'smtpd_sasl_security_options': 'noanonymous', 'mailbox_size_limit': '$message_size_limit', 'mailbox_transport': 'localmaildrop', 'minimal_backoff_time': '4h', 'queue_run_delay': '8h', 'data_directory': '{{ postfix_data_dir }}', 'smtpd_tls_session_cache_database': 'proxy:btree:$data_directory/smtpd_scache', 'smtp_sasl_auth_cache_name': 'proxy:btree:$data_directory/sasl_auth_cache', 'smtp_sasl_auth_cache_time': '{{ postfix_sasl_cache_duration | default(1800) }}', 'message_size_limit': '{{ postfix_message_size_limit | default(100000000) }}', 'virtual_mailbox_limit': '$message_size_limit', 'smtpd_soft_error_limit': '${stress?2}${stress:5}', 'smtpd_hard_error_limit': 2, 'virtual_destination_rate_delay': '1s', 'smtpd_proxy_options': 'speed_adjust', 'smtpd_tls_loglevel': '0', 'postscreen_access_list': 'permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr', 'postscreen_dnsbl_threshold': 2, 'postscreen_dnsbl_sites': 'bl.spamcop.net*2 b.barracudacentral.org*2 zen.spamhaus.org=127.0.[0;1;2].[0..254]*2 list.dnswl.org*-2', 'postscreen_dnsbl_action': 'enforce', 'postscreen_greet_action': 'enforce', 'postscreen_non_smtp_command_enable': \"{{ postfix_use_deep_protocol_tests | ternary('yes', 'no') }}\", 'postscreen_pipelining_enable': \"{{ postfix_use_deep_protocol_tests | ternary('yes', 'no') }}\", 'smtpd_tls_mandatory_protocols': \"!SSLv2, !SSLv3{{ postfix_insecure_ssl | ternary('', ', !TLSv1, !TLSv1.1') }}\", 'smtpd_tls_protocols': '${smtpd_tls_mandatory_protocols}', 'smtp_tls_mandatory_protocols': '${smtpd_tls_mandatory_protocols}', 'smtp_tls_protocols': '${smtp_tls_mandatory_protocols}', 'require_home_directory': 'yes', 'home_mailbox': '{{ maildir_home }}/', 'postscreen_dnsbl_ttl': '24h', 'postscreen_pipelining_action': 'drop', 'address_verify_map': '{{ postfix_address_verify_map }}', 'postscreen_cache_map': '{{ postfix_postscreen_cache_map }}', 'postscreen_cache_cleanup_interval': '{{ postfix_postscreen_cache_cleanup_interval | default(43200) }}', 'inet_protocols': \"{{ (has_ipv4 and has_ipv6) | ternary('all', '') }} {{ (has_ipv4 and not has_ipv6) | ternary('ipv4', None) }} {{ (not has_ipv4 and has_ipv6) | ternary('ipv6', None) }}\", 'postscreen_greet_wait': '${stress?2}${stress:6}s', 'address_verify_cache_cleanup_interval': 0, 'postscreen_dnsbl_whitelist_threshold': -1, 'compatibility_level': 2, 'smtp_tls_security_level': '{{ postfix_smtp_tls_security_level }}', 'smtp_tls_wrappermode': '{{ postfix_smtps_wrapper_mode }}', 'smtpd_tls_security_level': 'may', 'sender_dependent_default_transport_maps': 'hash:/etc/postfix/sender_transport', 'inet_interfaces': \"{{ postfix_inet_interfaces | default('all') }}\", 'mydomain': '{{ postfix_mydomain }}', 'smtpd_upstream_proxy_protocol': \"{{ haproxy_enabled | ternary('haproxy', None) }}\", 'postscreen_upstream_proxy_protocol': \"{{ haproxy_enabled | ternary('haproxy', None) }}\", 'smtpd_sasl_authenticated_header': \"{{ postfix_add_sasl_auth_header | ternary('yes', 'no')}}\", 'smtp_sasl_tls_security_options': \"{{ postfix_smarthost_enabled | ternary('noanonymous', None) }}\", 'smtp_sasl_password_maps': \"{{ postfix_smarthost_enabled | ternary('hash:' + postfix_smarthost_auth_file, None) }}\", 'relayhost': '{{ postfix_smarthost_enabled | ternary(postfix_smarthost_credentials.host, None) }}', 'sender_canonical_maps': \"{{ postsrsd_enabled | ternary('pgsql:/etc/postfix/canonical_map_rewrite.cf,tcp:127.0.0.1:' + postsrsd_sender_map_port|string, None) }}\", 'sender_canonical_classes': \"{{ postsrsd_enabled | ternary('envelope_sender', None) }}\", 'recipient_canonical_maps': \"{{ postsrsd_enabled | ternary('tcp:127.0.0.1:' + postsrsd_recipient_map_port|string, None) }}\", 'recipient_canonical_classes': \"{{ postsrsd_enabled | ternary('envelope_recipient,header_recipient', None) }}\", 'strict_rfc821_envelopes': \"{{ postfix_strict_envelope | ternary('yes', 'no')}}\", 'strict_smtputf8': \"{{ postfix_strict_envelope | ternary('yes', 'no')}}\"}: 'bool object' has no attribute 'find'\n\nThe error appears to be in '/usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml': line 14, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# Using LCI + undefined variable halts evaluation of keyed expressions, merge expressions into single line\n- set_fact:\n  ^ here\n"}
  99.  
  100. PLAY RECAP ************************************************************************************************************************************************************
  101. localhost                  : ok=26   changed=1    unreachable=0    failed=1    skipped=10   rescued=0    ignored=1  
  102.  
  103. [root@cp clamd.d]# cpcmd scope:set cp.bootstrapper clamav_clamd_config__custom 'ConcurrentDatabaseReload = "yes"'
  104. INFO   : Setting variable `clamav_clamd_config__custom'. Previous not present in apnscp-vars-runtime.yml.
  105. ----------------------------------------
  106. MESSAGE SUMMARY
  107. Reporter level: OK
  108. INFO: Setting variable `clamav_clamd_config__custom'. Previous not present in apnscp-vars-runtime.yml.
  109. ----------------------------------------
  110. 1
  111. [root@cp clamd.d]# upcp -sb clamav/setup
  112.  
  113. PLAY [localhost] ******************************************************************************************************************************************************
  114. included: /usr/local/apnscp/resources/playbooks/roles/clamav/setup/tasks/setup-clamav.yml for localhost
  115. included: /usr/local/apnscp/resources/playbooks/roles/clamav/setup/tasks/configure-clamav.yml for localhost
  116.  
  117. TASK [clamav/support : Check if the DB directories exist] *************************************************************************************************************
  118. changed: [localhost]
  119.  
  120. TASK [clamav/setup : Whitelist spurious unofficial signatures] ********************************************************************************************************
  121. changed: [localhost] => (item=Sanesecurity.Foxhole.JS_Zip_19.UNOFFICIAL)
  122.  
  123. RUNNING HANDLER [clamav/support : Restart Clamd service] **************************************************************************************************************
  124. changed: [localhost]
  125.  
  126. PLAY RECAP ************************************************************************************************************************************************************
  127. localhost                  : ok=42   changed=3    unreachable=0    failed=0    skipped=17   rescued=0    ignored=0  
  128.  
  129. [root@cp clamd.d]#
  130.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement