Coder Social home page Coder Social logo

mailmansecondarymx's Introduction

mailmanSecondaryMX.sh

Présentation

Cet outil est destiné à alimenter un serveur MX secondaire avec les adresses utilisées par l'outil Mailman en configuration avec domaines vrituels (cf. GNU Mailman Virtual domains).

Il va exporter la totalité de cette table, ou la filtrer en n'exportant que les entrées correspondant à un domaine particulier puis les déposer avec la commande scp sur le serveur MX secondaire et enfin lancer en SSH la commande postmap sur ce serveur secondaire.

Bug report

Si vous voulez me faire remonter un bug : ouvrir un bug.

Pré-requis avant installation et utilisation

1. Sur le serveur primaire sur lequel est exécuté l'outil mailmanSecondaryMX.sh

  • doit utiliser Mailman en configuration avec domaines vir``tuels (cf. GNU Mailman Virtual domains)
  • doit disposer d'un fichier virtual_alias_maps ou relay_recipient_maps pour Mailman correctement déclaré dans la configuration de Postfix (cf. /etc/postfix/main.cf), par exemple relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
  • la table virtual_alias_maps ou relay_recipient_maps pour Mailman doit être alimentée (fichier non vide)
  • le serveur MX primaire doit pouvoir accéder au serveur MX secondaire en SSH avec authentification par clé ([voir ici comment configurer les clés SSH] (https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2))

2. Sur le serveur MX secondaire :

  • le ou les domaines relayés doivent être déclarés dans la configuration de Postfix dans la table transport (par défaut la table transport /etc/postfix/transport), par exemple : domaine_relaye.com smtp:url_serveur_mx_primaire.domaine_relaye.com
  • le ou les domaines relayés doivent être déclarés dans la configuration de Postfix dans les relay_domains (par exemple : relay_domains = domaine_relaye.com)
  • table spécifique contenant les adresses relayées doit être déclarée en tant que relay_recipient_maps (par défaut, l'outil utilise la table /etc/postfix/mailmanSecondaryMX mais vous pouvez utiliser un autre fichier si besoin - voir paramètres du script). Par exemple : relay_recipient_maps = hash:/etc/postfix/mailmanSecondaryMX

Installation

Pour installer cet outil, téléchargez le script dans le dossier où vous voulez l'installer :

wget --no-check-certificate https://raw.github.com/yvangodard/mailmanSecondaryMX/master/mailmanSecondaryMX.sh ; 
sudo chmod 755 mailmanSecondaryMX.sh

Pour une aide complète, installez le script et lancez le :

./mailmanSecondaryMX.sh help

License

Ce script mailmanSecondaryMX.sh de Yvan GODARD est mis à disposition selon les termes de la licence Creative Commons 4.0 BY NC SA (Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions).

Licence Creative Commons

Limitations

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

mailmansecondarymx's People

Contributors

yvangodard avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.