Advertisement
Guest User

Postfix error

a guest
Jul 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. TASK [debops.postfix : Generate Postfix 'main.cf' configuration] **************************************************************************************************
  2. fatal: [rangers]: FAILED! => {"changed": false, "msg": "AnsibleError: An unhandled exception occurred while templating '{{ lookup(\"template\", \"lookup/postfix__init_maincf.j2\") }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while running the lookup plugin 'template'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ postfix__original_maincf + postfix__default_maincf + postfix__tls_maincf + postfix__restrictions_maincf + postfix__dependent_maincf_filter + postfix__maincf + postfix__group_maincf + postfix__host_maincf }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '[{u'comment': u'Debian specific: Specifying a file name will cause the first\\nline of that file to be used as the name. The Debian default\\nis /etc/mailname.\\n', u'option': u'myorigin', u'section': u'base', u'value': u'/etc/mailname', u'state': u'comment', u'name': u'myorigin_example'}, {u'section': u'base', u'name': u'smtpd_banner', u'value': u'$myhostname ESMTP $mail_name (Debian/GNU)'}, {u'section': u'base', u'name': u'biff', u'value': False}, {u'comment': u\"appending .domain is the MUA's job.\", u'section': u'base', u'name': u'append_dot_mydomain', u'value': False}, {u'comment': u'Uncomment the next line to generate \"delayed mail\" warnings', u'state': u'comment', u'name': u'delay_warning_time', u'value': u'4h', u'section': u'base'}, {u'section': u'base', u'name': u'readme_directory', u'value': u'{{ \"/usr/share/doc/postfix\" if postfix__doc_installed|bool else False }}'}, {u'comment': u'See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on\\nfresh installs.\\n', u'section': u'base', u'name': u'compatibility_level', u'value': 2, u'state': u'{{ \"present\" if (postfix__version is version_compare(\"3.0.0\", \">=\")) else \"ignore\" }}'}, {u'comment': u'TLS parameters', u'section': u'base', u'name': u'smtpd_tls_cert_file', u'value': u'{{ postfix__tls_cert_file }}'}, {u'section': u'base', u'name': u'smtpd_tls_key_file', u'value': u'{{ postfix__tls_key_file }}'}, {u'section': u'base', u'name': u'smtpd_use_tls', u'value': True}, {u'section': u'base', u'name': u'smtpd_tls_session_cache_database', u'value': u'btree:${data_directory}/smtpd_scache'}, {u'section': u'base', u'name': u'smtp_tls_session_cache_database', u'value': u'btree:${data_directory}/smtp_scache'}, {u'comment': u'See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for\\ninformation on enabling SSL in the smtp client.\\n', u'state': u'hidden', u'name': u'smtp_tls_client_comment', u'section': u'base'}, {u'section': u'base', u'name': u'smtpd_relay_restrictions', u'value': [{u'name': u'permit_mynetworks', u'weight': -300}, {u'name': u'permit_sasl_authenticated', u'weight': -200}, {u'name': u'defer_unauth_destination', u'weight': -100}], u'state': u'{{ \"present\" if (postfix__version is version_compare(\"2.10.0\", \">=\")) else \"ignore\" }}'}, {u'section': u'base', u'name': u'myhostname', u'value': u'{{ postfix__fqdn }}'}, {u'section': u'base', u'name': u'alias_maps', u'value': [u'hash:/etc/aliases']}, {u'section': u'base', u'name': u'alias_database', u'value': [u'hash:/etc/aliases']}, {u'section': u'base', u'name': u'myorigin', u'value': u'/etc/mailname'}, {u'section': u'base', u'name': u'mydestination', u'value': [u'{{ postfix__fqdn }}', {u'name': u'localhost.{{ postfix__domain }}', u'weight': 190}, {u'name': u'localhost', u'weight': 200}]}, {u'section': u'base', u'name': u'relayhost', u'value': u'{{ postfix__relayhost }}'}, {u'section': u'base', u'name': u'mynetworks', u'value': [{u'name': u'127.0.0.0/8', u'weight': 100}, {u'name': u'::ffff:127.0.0.0/104', u'weight': 100}, {u'name': u'::1/128', u'weight': 100}]}, {u'section': u'base', u'name': u'mailbox_size_limit', u'value': 0}, {u'section': u'base', u'name': u'recipient_delimiter', u'value': u'+'}, {u'section': u'base', u'name': u'inet_interfaces', u'value': u'all'}, {u'section': u'base', u'name': u'inet_protocols', u'value': u'all', u'state': u'{{ \"present\" if (ansible_distribution_release == \"stretch\") else \"ignore\" }}'}, {u'section': u'base', u'name': u'html_directory', u'value': u'{{ \"/usr/share/doc/postfix/html\" if postfix__doc_installed|bool else False }}'}]'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ (postfix__pki_path + \"/\" + postfix__pki_realm + \"/\" + postfix__pki_crt) if postfix__pki|bool else \"/etc/ssl/certs/ssl-cert-snakeoil.pem\" }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Unexpected templating type error occurred on ({{ (postfix__pki_path + \"/\" + postfix__pki_realm + \"/\" + postfix__pki_crt) if postfix__pki|bool else \"/etc/ssl/certs/ssl-cert-snakeoil.pem\" }}): coercing to Unicode: need string or buffer, list found"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement