Code Monkey home page Code Monkey logo

bugfishtm / mail-relaying-over-dns Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 245.65 MB

๐Ÿ“ก Effortlessly set up a secondary Backup Mail MX Server for inbound emails with our open-source solution. Explore the documentation for details. Licensed under GPLv3.

Home Page: https://bugfishtm.github.io/Mail-Relaying-over-DNS/

License: GNU General Public License v3.0

PHP 82.29% JavaScript 0.27% HTML 12.54% CSS 4.91%
backup-server bugfish dns-server infrastructure-servers mail-server opensource server-automation webhosting bugfish-industries bugfishtm

mail-relaying-over-dns's Introduction

Bugfish Status License Version

Repository: https://github.com/bugfishtm/Mail-Relaying-over-DNS
Documentation: https://bugfishtm.github.io/Mail-Relaying-over-DNS/
The documentation is available in this repositories "docs" folder!

Mail Relaying over DNS [MRoD]

framework

Here you can see general informations about this software, you should check them urgently before you use it! I hope you will get an understanding what this software is for and how you can use it. If you have questions outside this documentations do not hesitate to contact me! This software will occupy the email functionality of the server it is installed on, keep this in mind - this script will break a running mail configuration and change it for its purpose! It can not be used with plesk or other software which does manage mail configurations side-by-side. It is clearly advised, to install this sofware on a dedicated server for it!

If you are using this software, remember to setup a secondary "MX" DNS Record on the related domain, to make incoming mail relayed to the server holding this software, when the first server times out.

This software will give you the opportunity to easily setup a backup MX Server for incoming E-Mails!

This websoftware makes your server to a mail backup relay! It can be used standalone, by users configuring domains which should be relay to master-mail-servers - besides that this panel can be used on a secondary dns server and fetch to registered dns domains. More informations below. To summarize, if you have a mail server which is receiving and sending mails this server will be untouched. But if you plan to have a second server as backup, so if your master-mail server goes offline and you want to store incoming mail on a secondary mail server until the master server is online again. The mail will then be forwarded to the "real" server. You can set up the related Master-Mail Server per domain and you can set up different Relay Servers, which than can be connected to Mail Domains.

Compatibility

This software has been tested on different linux system with postfix in standalone mode and with bind together if auto-domain-fetching for domain relaying is needed.
Tested on: Debian 8/9/10/11
Tested on: Ubuntu 16/18/20/22
Tested on: Different Postfix Versions (Standalone)
Tested on: DIfferent Bind9 Versions (Auto-Fetch Domains)
Feel free to try this software in higher OS versions.
There should be no compatibility problems, if the PHP8 Version is running.

Requirements

  • Mailserver running with Postfix
  • If you want to fetch Mail Relaying Information over DNS this is working only together with Bind9 (optional)
  • Webserver with PHP8 Support
  • Mysql Database

Example Image

plot

Automation with Slave DNS

If you have a secondary DNS Server already running in your infrastructure, you can use this as purpose. In this case you already have a server which contains domain informations, for domains which should maybe be relayed on this secondary dns server. You can use this websoftware on your secondary DNS Server. If you set up your settings.php with fitting configuration, if will automatically fetch the local domains from the Bind9 files and save them into database. The script will determine a relay server (you can change determination settings in settings.php) and then rewrite postfix configuration (automatically) with the cronjob, set up in the installation, so that the secondary dns domains will all be auto-registered into the webinterface. So you do not have to do anything like configure domains or anything. You can still intervene if you determined settings for a domain if wrong and change it like you need it.

DNS Entry for 2nd Server

If you have now a master mail server and this software running on another server, you need to edit your dns records for the incoming mail domain. You need to add a second MX Entrie with lower priority, the hostname shall be the mail hostname of your secondary mail backup server (where this software is running on). In this case, if a mail is sended to this domain and your first server is not available, the mail will than be delivered to your 2ndary server and be in a waiting list and delivered in time when the master server is back online again. The mail will then be forwarded to the server, which has been set up as relay in the webinterface. User Management

This webinterface comes with simple user management and permission system...

Urgent Information

Do never use this software in a running mail environment! It will break the mail configuration and function if you change configuration on a running plesk or other mail system! Only use on a dedicated server for this purpose (or maybe a secondary dns server). It is advised that you have some experience in mail administration if you use this script.

Example Image

plot

Default Login for Webinterface

Change this data after login!

Username: admin
Passwort: changeme

Support and Assistance

If you encounter any issues or require assistance, please visit bugfish.eu/forum for additional resources. You can also contact us at [email protected], and we will do our best to assist you.

This Android WebApp Example project offers a convenient way to deploy customized apps related to your website, enhancing your online presence and user experience.

Powered by Bugfish Framework

plot

License Information

The license details for this Mail Relaying over DNS project can be found in the "license.md" file within the project repository. Please review this file to understand the terms and conditions of use and distribution. It is essential to comply with the project's license to ensure legal and ethical usage of the provided resources.

mail-relaying-over-dns's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ipmbmc

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.