Code Monkey home page Code Monkey logo

Comments (3)

jancubillan avatar jancubillan commented on May 25, 2024 1

Change has been applied to master. Thanks!

from ansible-zimbra-single.

jancubillan avatar jancubillan commented on May 25, 2024

Hello @dark-vex , thanks for trying the project!

I'm unable to try a system with a public IP assigned on the NIC at the moment, would be great if you can test and confirm change below works:

{% if ansible_default_ipv4.address | ansible.netcommon.ipaddr('public') %}
zimbraMtaMyNetworks="127.0.0.0/8 [::1]/128"
{% else %}
zimbraMtaMyNetworks="127.0.0.0/8 [::1]/128 {{ (ansible_default_ipv4.address + '/' + ansible_default_ipv4.netmask) | ansible.netcommon.ipaddr('network/prefix') }}"
{% endif %}

from ansible-zimbra-single.

dark-vex avatar dark-vex commented on May 25, 2024

Hi @jancubillan thank you for your reply! I have tested it on Digital Ocean and it seems to be working fine that change:

root@mail:~# cat /opt/zimbra/common/conf/main.cf | grep mynetworks
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unlisted_recipient, reject_invalid_helo_hostname, reject_non_fqdn_sender, permit
local_header_rewrite_clients = permit_mynetworks,permit_sasl_authenticated
postscreen_access_list = permit_mynetworks
mynetworks = 127.0.0.0/8 [::1]/128
smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sender_restrictions = check_sender_access regexp:/opt/zimbra/common/conf/tag_as_originating.re, permit_mynetworks, permit_sasl_authenticated, permit_tls_clientcerts, check_sender_access regexp:/opt/zimbra/common/conf/tag_as_foreign.re
root@mail:~# 
root@mail:~# grep -r "zimbraMtaMyNetworks=" /opt/zimbra/
/opt/zimbra/log/zmsetup.20210912-110558.log:Sun Sep 12 11:08:03 2021 Updating cached config attribute for Server mail.example.com: zimbraMtaMyNetworks=127.0.0.0/8 [::1]/128
/opt/zimbra/config.812:zimbraMtaMyNetworks="127.0.0.0/8 [::1]/128"

from ansible-zimbra-single.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.