161 Commits (0a439891ee8077f0a2582ffc2bc477a4fcf8defa)

Author SHA1 Message Date
kaiyou bd69b7a491 Add support for SRS, related to #328 5 years ago
kaiyou 9b7a027d6f Fix the encoding of incoming user email and password 5 years ago
Michael Wyraz bee80b5c64 Remove rate limit reset 5 years ago
Michael Wyraz 889386b4a6 Limiter implementation 5 years ago
Michael Wyraz de2f166bd1 Resolve HOST_* to *_ADDRESS only if *_ADDRESS is not already set 6 years ago
Ionut Filip 075417bf90 Merged master and fixed conflicts 6 years ago
hoellen b720bedf72 Support domain literals for receiving emails 6 years ago
Ionut Filip 0ce0b5ec02 Fix addresses in front 6 years ago
Ionut Filip cebc64a280 Resolve HOST_WEBMAIL in admin 6 years ago
bors[bot] 86b4242f82 Merge #886
886: Ipv6 support r=mergify[bot] a=muhlemmer

## What type of PR?

(Feature, enhancement, bug-fix, documentation) -> A bit of everything

## What does this PR do?

Document how to use ipv6nat. This, however triggers some kind of flaky behavior with the Docker DNS resolver, resulting in lookup failures between containers.  So all resolving needs to be done during container startup/configuration.

In order not to pollute every single start.py file, we've created a small library called [Mailu/MailuStart](https://github.com/Mailu/MailuStart). As an addition, this library also defines the template generation function, including its logging facility.

Note: `docker-compose.yml` downgrade is necessary, as IPv6 settings are not supported by the Docker Compose file format 3 😞  

### Related issue(s)
Supersedes  PR #844
- Fixes #827 
- Hopefully helps with #829 and #834

## No backport yet

This PR directly imports MailuStart from git. This makes it a bit more simple to implement on the short term an do some testing and probably some future improvements. When everything is proved stable, we will create a proper PyPi package with versioning and consider back porting.

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: place entry in the [changelog](CHANGELOG.md), under the latest un-released version.


Co-authored-by: Ionut Filip <ionut.philip@gmail.com>
Co-authored-by: Tim Möhlmann <muhlemmer@gmail.com>
6 years ago
Ionut Filip f8dffe5a19
Resolve hosts in admin 6 years ago
Manuel Vázquez Acosta dfe5ddb18e
Check if sender address is not null before trying to check the domain. 6 years ago
hoellen 8fe1e788b3 add missing route fixes 6 years ago
hoellen d5d4d6c337 harden email address validation and fix routes with user_email 6 years ago
TheLegend875 999d2a9557 changed default.sieve to send displayed name 6 years ago
mergify-bot 09a50b6cfc Merge branch 'master' into 'master' 6 years ago
kaiyou 4060ac2223 Remove some forgotten debugging 6 years ago
kaiyou 087841d5b7 Fix the way we handle the application context
The init script was pushing an application context, which maked
flask.g global and persisted across requests. This was evaluated
to have a minimal security impact.

This explains/fixes #738: flask_wtf caches the csrf token in the
application context to have a single token per request, and only
sets the session attribute after the first generation.
6 years ago
Tim Möhlmann 8172f3eab8
Move the Mailu Docker network to a fixed subnet.
This will make network configuration and host based authentication
more robust, across different deployment platforms.
The options `RELAYNETS` and`POD_ADDRESS_RANGE` are kept for compatibility.
However, their usage have become optional.
6 years ago
kaiyou d0f07984b0 Merge remote-tracking branch 'upstream/master' into refactor-config 6 years ago
mergify[bot] 37027cfce7
Merge pull request #633 from kaiyou/fix-sender-checks
Improve sender checks
6 years ago
Tim Möhlmann eff6c34632
Catch asterisk before resolve_domain
Asterisk results in IDNA error and a 500 return code.
6 years ago
David Rothera 88c174fb7a Query alternative table for domain matches
At present postfix checks this view for matches in the domain table and is used to accept/deny messages sent into it however it never checks for matches in the alternative table.

Fixes #718
6 years ago
kaiyou 5b769e23da Merge branch 'master' into refactor-config 6 years ago
Tim Möhlmann 5fa2aac569
Fix imap login when no webmail selected 6 years ago
Tim Möhlmann aed80a74fa
Rectify decleration of domain_name 6 years ago
Tim Möhlmann 2d382f2d67
Merge branch 'master' into fix-sender-checks 6 years ago
kaiyou 1fcaef7c7e
Merge branch 'master' into fix-sender-checks 6 years ago
hoellen 857ad50509
Merge branch 'master' into feat-reply-startdate 6 years ago
kaiyou fc24426291 First batch of refactoring, using the app factory pattern 6 years ago
kaiyou dba8f1810d Do not check the password another time in Dovecot 6 years ago
kaiyou 5ada669f43 Rebase reply startdate on master 6 years ago
kaiyou c6846fd8db Merge branch 'master' into feat-reply-startdate 6 years ago
kaiyou 508e519a34 Refactor the postfix views and implement sender checks 6 years ago
kaiyou fc99eb7b34 Re-enable sender access check to prevent source spoofing 6 years ago
kaiyou f5668dea51 Handle relays as virtual transports through podop 7 years ago
kaiyou 42c6bdb4df Split the internal blueprint into multiple view files 7 years ago
kaiyou f9c6c98180 Remove fetchmail dependency to the databse 7 years ago
kaiyou 0d52364eac Fix alias resolution through podop 7 years ago
kaiyou 6ba55ee377 Implement the sieve script name resolution pattern 7 years ago
kaiyou 3c725bf634 Only support generating the default sieve script 7 years ago
kaiyou ca6c0bc8fd Fix the user sieve script generation 7 years ago
kaiyou 4d25083847 Move sieve script generation to the admin container 7 years ago
kaiyou cfeaa189f9 Use proper 404 return codes for missing objects 7 years ago
kaiyou d8365bfbcf Use simpler routes for Dovecot 7 years ago
kaiyou 7143fb8c47 Implement some basic views for podop 7 years ago
kaiyou 68aa797720 Merge branch 'master' into feat-abstract-db 7 years ago
kaiyou 73ca5fb3d3 Provide a more generic skeletton for postfix virtual lookups 7 years ago
Pierre Jaury 809fe78f82 Add dovecot views to the internal API 7 years ago
Michal Prihoda f5e7751835 Return correct status codes from auth rate limiter failure. 7 years ago
Stefan Auditor e843f7ef1f Respect user enabled flag in admin authentication 7 years ago
Stefan Auditor c8540ddba7 Respect user enabled flag in basic authentication 7 years ago
Stefan Auditor 6fc22e5432 Respect user.enabled status in internal authentication 7 years ago
Mildred Ki'Lya f538e33dcf Parametrize hosts
Allows to use mailu without docker-compose when hostnames are not set up
by docker itself but provided via a separate resolver.

Use case: use mailu using nomad scheduler and consul resolver instead of
docker-compose. Other servers are provided by the DNS resolver that
resolves names like admin.service.consul or webmail.service.consul.
These names needs to be configurable.
7 years ago
kaiyou c545b8d110 Honor feature limitations for imap and pop3 7 years ago
kaiyou 17b184e5c8 Implement a basic authentication API 7 years ago
kaiyou 1a3f85fbc2 Make the rspamd webui available, fixes #157 7 years ago
kaiyou 6e61500eb1 Fix the authentication behavior with non-existing users 7 years ago
kaiyou 45902ae012 Fix a bug when trying to authenticate with a non existing user 7 years ago
kaiyou baff8dd043 Avoid blacklisting the webmail 7 years ago
kaiyou 689be5f2d9 Move all directories per theme 7 years ago