Comments (5)
I would accept that. It's something I've wanted to do.
The main thing I would want to discuss more is "Add the option to disable web hosting and A/AAAA records check on single domains":
- Disabling web hosting is frequently asked for, but it's not exactly a sensible request. If the domain has an A record that points to the box, then the box has to respond to web requests. It can't not respond since it's already listening on its IP address for all of the other websites (including the admin). If the user sets a custom A record pointing elsewhere, or is using External DNS and sets an A record pointing elsewhere, then it doesn't matter if the box is configured to do web hosting for that domain.
- I would like to talk through what exactly would be disabled with different settings for the domain.
- I'd like to discuss the database table schema so that we get something that is easy to maintain for the future.
But these don't have to stop you from starting.
from mailinabox.
Hi, thanks for your kind response
Database table schema:
Currently I've added a domains
table with the fields domain
and options
. I've modelled the options
field to work as the privileges
fields in the table users
. The options in options
act as a boolean value, true if present and false if not.
There is only one option for now, no-web
that should do what I described in the OP.
What will be disabled:
Let's make an example with a domain example.com.
box.example.com
- box domainexample.com
- primary domainanotherexample.com
- secondary domain
box.example.com
can't enable this option as it's needed to show the admin panel, the webmail and nextcloud.
example.com
and anotherexample.com
can enable this option.
This option will:
- skip creating the servers on nginx for the root and www subdomains
- remove the entries from the DNS
- hide and skip the checks for the A and AAAA records on root and www subdomains
- hide the actions in the SSL certificates panel and the web panels for the root and www subdomains
As for the why:
The secondary domain is not connected via glue nameservers so the web hosting could be on another server.
The primary domain should have an option to disable the web hosting if the box is using an external DNS without glue records or the user doesn't want to host a static website and wants to use their own server with their own instance of nginx.
When using glue records the user could still remove the web server and add A AAAA or even CNAME records using the Custom DNS panel already present in the admin.
If any point is not clear enough let me know and I'll try to explain it better.
from mailinabox.
@JoshData similar to what tognee said, i want box.example.com to be the email server but example.com to be a different IP. is it possible to do that? i see an entry in external dns file example.com - box.example.com. how do i decouple box and primary domain?
from mailinabox.
@test2a What you want is possible and not really related to this discussion. Please ask on the forum for help.
from mailinabox.
I've made some work on this feature on my own branch. It's still not ready for merging and development is proceeding slow as I need to destroy the VM and rebuild it every time I make a change (which takes quite a while).
https://github.com/tognee/mailinabox/tree/feat/domains
I might create a draft pull request when I get it working like I intended
from mailinabox.
Related Issues (20)
- When should a GitHub issue be opened for the Mail-in-a-Box project? HOT 3
- Upgrade PHP from v8.0 to v8.1
- Upgrade Nextcloud to latest v27 HOT 16
- Apply small Nextcloud upgrade to 26.0.13 HOT 1
- Empty email log scan HOT 2
- Problema no login box.mergenst.com/mail
- Mail-in-a-Box Version: v68 - Not Installing because of repositery error
- B2 Bucket using for Bucket throws error
- No password prompt during v69 install which causes install to quit HOT 4
- Fresh install does not load admin page HOT 7
- How do you add a second domain to this? HOT 6
- Updated to a new version, but still have an error on "System Status" page
- Status Checks errate version v69b HOT 2
- What does postfix config sqlite query do on mail.-users.sh line 118? HOT 1
- No backups shown in the admin interface and failing manually since new duplicity version has been installed HOT 12
- Python rtyaml Module Missing HOT 10
- Spamhaus check on status page should separately check both IPv4 and IPv6 addresses HOT 1
- Question regarding smuggling protection in main.cf HOT 1
- Roundcube flaws allow easy email account compromise (CVE-2024-42009, CVE-2024-42008) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailinabox.