Skip to content

Commit

Permalink
REUSE-compliant licensing
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Jun 25, 2024
1 parent e149aca commit 50a2f50
Show file tree
Hide file tree
Showing 636 changed files with 2,422 additions and 12,880 deletions.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: I think I found a bug
description: File a bug report issue
description: File a bug report issue. If you have a question or are experiencing a problem, please start a [new discussion](https://github.com/stalwartlabs/mail-server/discussions/new?category=q-a) instead.
title: "[bug]: "
labels: ["bug"]
body:
Expand Down Expand Up @@ -33,8 +33,7 @@ body:
options:
- v0.8.x
- v0.7.x
- v0.6.x
- v0.5.x or lower
- v0.6.x or lower
validations:
required: true
- type: dropdown
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ contact_links:
- name: Join Stalwart's Discord
url: https://discord.gg/aVQr3jF8jd
about: Join our Discord server for help, discussions and release announcements.
- name: Join Stalwart's Matrix
url: https://matrix.to/#/#stalwart:matrix.org
about: Join our Matrix room for help, discussions and release announcements.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ members = [
"crates/nlp",
"crates/store",
"crates/directory",
"crates/enterprise",
"crates/utils",
"crates/common",
"crates/cli",
Expand Down
661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-only.txt

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions LICENSES/LicenseRef-SEL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Stalwart Enterprise License 1.0 (SELv1) Agreement
=================================================

Last Update: June 25, 2024

GRANT OF LICENSE

Stalwart Labs Ltd. ("Licensor") grants you ("Licensee") a non-exclusive, non-transferable, non-sublicensable, limited license to use the software ("Software") under the terms set forth in this Stalwart Enterprise License Agreement ("Agreement").

LICENSE RESTRICTIONS

1. Commercial Use: Licensee is authorized to use the Software for commercial purposes, including the provision of services utilizing the Software. However, Licensee is expressly prohibited from reselling, leasing, sublicensing, or otherwise redistributing the Software itself.

2. Subscription Requirement: The use of the Software is conditioned upon Licensee maintaining an active and valid paid subscription with Licensor. The Software shall not be used without a valid subscription.

3. Source-Available Commercial License: The Software provided under this Agreement is not open source. Accordingly, the Software may not be distributed or modified by Licensee. While the source code may be available for review, it is not open source and remains proprietary.

4. Additional Licensing Terms: This license is further governed by the terms and conditions set forth in any licensing agreements separately executed between Licensor and Licensee. In the event of any conflict between the terms of this Agreement and the terms of a signed licensing agreement, the terms of the signed licensing agreement shall control.


INTELLECTUAL PROPERTY RIGHTS

1. Ownership: The Licensor retains all rights, title, and interest in and to the Software, including all intellectual property rights therein. This Agreement does not transfer any ownership rights to the Licensee.

2. Proprietary Notices: The Licensee must not remove, alter, or obscure any proprietary notices (including copyright and trademark notices) on the Software.


TERMINATION

1. Termination by Licensor: The Licensor may terminate this Agreement immediately if the Licensee fails to comply with any terms and conditions of this Agreement.

2. Effect of Termination: Upon termination of this Agreement, the Licensee must cease all use of the Software and destroy all copies of the Software in their possession or control.


DISCLAIMER OF WARRANTIES

The Software is provided "as is" without warranty of any kind. The Licensor disclaims all warranties, express or implied, including but not limited to implied warranties of merchantability, fitness for a particular purpose, and non-infringement.


LIMITATION OF LIABILITY

In no event will the Licensor be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from (i) your use or inability to use the Software; (ii) any unauthorized access to or use of our servers and/or any personal information stored therein.


GOVERNING LAW

This Agreement shall be governed by and construed in accordance with the laws of the United Kingdom, without regard to its conflict of law principles.


ENTIRE AGREEMENT

This Agreement constitutes the entire agreement between the Licensor and the Licensee with respect to the subject matter hereof and supersedes all prior or contemporaneous understandings regarding such subject matter. No amendment to or modification of this Agreement will be binding unless in writing and signed by the Licensor.


CONTACT INFORMATION

If you have any questions about this Agreement, please contact Stalwart Labs Ltd. at:

Stalwart Labs Ltd.
128 City Road
London, United Kingdom
[email protected]

16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,9 @@ Additionally you may become a sponsor to obtain priority support from Stalwart L

## Roadmap

- [x] Performance enhancements
- [x] Distributed SMTP queues
- [x] Web-based admin panel
- [ ] JMAP Calendar, Contacts and Tasks support
- [ ] CalDAV and CardDAV support
- [ ] ActiveSync support

See the [open issues](https://github.com/stalwartlabs/mail-server/issues) for a full list of proposed features (and known issues).

Expand All @@ -139,13 +137,13 @@ If you find the project useful you can help by [becoming a sponsor](https://libe

## License

Licensed under the terms of the [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html) as published by
the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
See [LICENSE](LICENSE) for more details.
This project is dual-licensed under the **GNU Affero General Public License v3.0** (AGPL-3.0; as published by the Free Software Foundation) and the **Stalwart Enterprise License v1 (SELv1)**:

- The [GNU Affero General Public License v3.0](./LICENSES/AGPL-3.0-only.txt) is a free software license that ensures your freedom to use, modify, and distribute the software, with the condition that any modified versions of the software must also be distributed under the same license.
- The [Stalwart Enterprise License v1 (SELv1)](./LICENSES/LicenseRef-SEL.txt) is a proprietary license designed for commercial use. It offers additional features and greater flexibility for businesses that do not wish to comply with the AGPL-3.0 license requirements.

Each file in this project contains a license notice at the top, indicating the applicable license(s). The license notice follows the [REUSE guidelines](https://reuse.software/) to ensure clarity and consistency. The full text of each license is available in the [LICENSES](./LICENSES/) directory.

You can be released from the requirements of the AGPLv3 license by purchasing
a commercial license. Please contact [email protected] for more details.

## Copyright

Copyright (C) 2024, Stalwart Labs Ltd.
23 changes: 3 additions & 20 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::{
collections::HashMap,
Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/account.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::fmt::Display;

Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/cli.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use clap::{Parser, Subcommand, ValueEnum};
use jmap_client::client::Credentials;
Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/database.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2023 Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::collections::HashMap;

Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/domain.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::borrow::Cow;

Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/export.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2023 Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::{
path::{Path, PathBuf},
Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/group.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::vec;

Expand Down
23 changes: 3 additions & 20 deletions crates/cli/src/modules/import.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
/*
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
* SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd <[email protected]>
*
* This file is part of Stalwart Mail Server.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* in the LICENSE file at the top-level directory of this distribution.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* You can be released from the requirements of the AGPLv3 license by
* purchasing a commercial license. Please contact [email protected]
* for more details.
*/
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/

use std::{
collections::{HashMap, HashSet},
Expand Down
Loading

0 comments on commit 50a2f50

Please sign in to comment.