# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: OpenTrashmail
spec:
    description: |
        A self-hosted disposable email service with its own SMTP server. No database required — all emails are stored as flat JSON files. Supports wildcard domains, RSS feeds, and a JSON API for managing received emails.
    coverImage: https://avatars.githubusercontent.com/u/28378629?v=4
    icon: https://avatars.githubusercontent.com/u/28378629?v=4
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access the OpenTrashmail web interface
    tags:
        - Email
        - Privacy
    readme: |
        # OpenTrashmail

        OpenTrashmail is a self-hosted disposable email service that ships its own SMTP server. No database is required — all emails are stored as flat JSON files. It supports wildcard domains, RSS feeds, and a JSON API.

        ## First-Time Setup

        1. Click the deployed URL to open the OpenTrashmail web interface.
        2. Enter any email address using your configured domain to view received emails.
        3. Emails sent to any address at your domain will appear automatically.

        ## Ports

        - **80** (HTTP — Web interface)
        - **25** (TCP — SMTP server for receiving emails)

        ## Important Note

        For full functionality, you need to configure DNS MX records pointing to your server so emails can be received on port 25. The web UI on port 80 displays received emails.

        ## Useful Links

        - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

        ## License

        Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    services:
        - name: opentrashmail
          icon: https://avatars.githubusercontent.com/u/28378629?v=4
          template: PREBUILT_V2
          spec:
            source:
                image: hascheksolutions/opentrashmail:1
            ports:
                - id: web
                  port: 80
                  type: HTTP
                - id: smtp
                  port: 25
                  type: TCP
            volumes:
                - id: data
                  dir: /var/www/opentrashmail/data
            portForwarding:
                enabled: true
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Servicio de correo desechable autohospedado con su propio servidor SMTP. No requiere base de datos: todos los correos se almacenan como archivos JSON planos. Soporta dominios comodin, feeds RSS y API JSON.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a la interfaz web de OpenTrashmail
        readme: |
            # OpenTrashmail

            OpenTrashmail es un servicio de correo desechable autohospedado que incluye su propio servidor SMTP. No requiere base de datos: todos los correos se almacenan como archivos JSON planos. Soporta dominios comodin, feeds RSS y API JSON.

            ## Configuracion inicial

            1. Haz clic en la URL desplegada para abrir la interfaz web de OpenTrashmail.
            2. Ingresa cualquier direccion de correo usando tu dominio configurado para ver los correos recibidos.
            3. Los correos enviados a cualquier direccion de tu dominio apareceran automaticamente.

            ## Puertos

            - **80** (HTTP — Interfaz web)
            - **25** (TCP — Servidor SMTP)

            ## Nota importante

            Para funcionalidad completa, necesitas configurar registros DNS MX apuntando a tu servidor para recibir correos en el puerto 25.

            ## Enlaces utiles

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## Licencia

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    id-ID:
        description: |
            Layanan email sekali pakai self-hosted dengan server SMTP sendiri. Tidak memerlukan database — semua email disimpan sebagai file JSON flat. Mendukung domain wildcard, RSS feed, dan JSON API.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses antarmuka web OpenTrashmail
        readme: |
            # OpenTrashmail

            OpenTrashmail adalah layanan email sekali pakai self-hosted yang dilengkapi server SMTP sendiri. Tidak memerlukan database — semua email disimpan sebagai file JSON flat. Mendukung domain wildcard, RSS feed, dan JSON API.

            ## Pengaturan Awal

            1. Klik URL yang telah di-deploy untuk membuka antarmuka web OpenTrashmail.
            2. Masukkan alamat email apa pun menggunakan domain yang dikonfigurasi untuk melihat email yang diterima.
            3. Email yang dikirim ke alamat apa pun di domain Anda akan muncul secara otomatis.

            ## Port

            - **80** (HTTP — Antarmuka web)
            - **25** (TCP — Server SMTP)

            ## Catatan Penting

            Untuk fungsionalitas penuh, Anda perlu mengonfigurasi DNS MX record yang mengarah ke server Anda agar email dapat diterima di port 25.

            ## Tautan Berguna

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## Lisensi

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    ja-JP:
        description: |
            独自の SMTP サーバーを備えたセルフホスト型の使い捨てメールサービス。データベース不要で、全てのメールはフラット JSON ファイルとして保存。ワイルドカードドメイン、RSS フィード、JSON API に対応。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: OpenTrashmail Web インターフェースにアクセスするためのドメイン
        readme: |
            # OpenTrashmail

            OpenTrashmail は独自の SMTP サーバーを備えたセルフホスト型の使い捨てメールサービスです。データベース不要で、全てのメールはフラット JSON ファイルとして保存されます。ワイルドカードドメイン、RSS フィード、JSON API に対応しています。

            ## 初回セットアップ

            1. デプロイされた URL をクリックして OpenTrashmail Web インターフェースを開きます。
            2. 設定したドメインの任意のメールアドレスを入力して受信メールを確認します。
            3. ドメインの任意のアドレスに送信されたメールが自動的に表示されます。

            ## ポート

            - **80** (HTTP — Web インターフェース)
            - **25** (TCP — メール受信用 SMTP サーバー)

            ## 重要事項

            完全な機能を利用するには、DNS MX レコードをサーバーに向けて設定し、ポート 25 でメールを受信できるようにする必要があります。

            ## 関連リンク

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## ライセンス

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    ko-KR:
        description: |
            자체 SMTP 서버를 갖춘 셀프 호스팅 일회용 이메일 서비스. 데이터베이스 없이 모든 이메일을 플랫 JSON 파일로 저장합니다. 와일드카드 도메인, RSS 피드, JSON API를 지원합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: OpenTrashmail 웹 인터페이스에 접속할 도메인
        readme: |
            # OpenTrashmail

            OpenTrashmail은 자체 SMTP 서버를 갖춘 셀프 호스팅 일회용 이메일 서비스입니다. 데이터베이스 없이 모든 이메일을 플랫 JSON 파일로 저장합니다. 와일드카드 도메인, RSS 피드, JSON API를 지원합니다.

            ## 초기 설정

            1. 배포된 URL을 클릭하여 OpenTrashmail 웹 인터페이스를 엽니다.
            2. 설정된 도메인의 아무 이메일 주소를 입력하여 수신된 이메일을 확인합니다.
            3. 도메인의 모든 주소로 보낸 이메일이 자동으로 표시됩니다.

            ## 포트

            - **80** (HTTP — 웹 인터페이스)
            - **25** (TCP — SMTP 서버)

            ## 중요 참고

            전체 기능을 사용하려면 DNS MX 레코드를 서버를 가리키도록 구성하여 포트 25에서 이메일을 수신할 수 있도록 해야 합니다.

            ## 관련 링크

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## 라이선스

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    th-TH:
        description: |
            บริการอีเมลแบบใช้แล้วทิ้งแบบ self-hosted พร้อมเซิร์ฟเวอร์ SMTP ของตัวเอง ไม่ต้องใช้ฐานข้อมูล อีเมลทั้งหมดจัดเก็บเป็นไฟล์ JSON แบบ flat รองรับโดเมนแบบ wildcard, RSS feed และ JSON API
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึงหน้าเว็บ OpenTrashmail
        readme: |
            # OpenTrashmail

            OpenTrashmail เป็นบริการอีเมลแบบใช้แล้วทิ้งแบบ self-hosted ที่มาพร้อมเซิร์ฟเวอร์ SMTP ของตัวเอง ไม่ต้องใช้ฐานข้อมูล อีเมลทั้งหมดจัดเก็บเป็นไฟล์ JSON แบบ flat รองรับโดเมนแบบ wildcard, RSS feed และ JSON API

            ## การตั้งค่าเริ่มต้น

            1. คลิก URL ที่ deploy แล้วเพื่อเปิดหน้าเว็บ OpenTrashmail
            2. กรอกที่อยู่อีเมลใดก็ได้ที่ใช้โดเมนที่กำหนดไว้เพื่อดูอีเมลที่ได้รับ
            3. อีเมลที่ส่งไปยังที่อยู่ใดก็ได้ในโดเมนของคุณจะปรากฏอัตโนมัติ

            ## พอร์ต

            - **80** (HTTP — หน้าเว็บ)
            - **25** (TCP — เซิร์ฟเวอร์ SMTP)

            ## หมายเหตุสำคัญ

            สำหรับการทำงานเต็มรูปแบบ คุณต้องกำหนด DNS MX record ให้ชี้ไปยังเซิร์ฟเวอร์ของคุณเพื่อรับอีเมลที่พอร์ต 25

            ## ลิงก์ที่เป็นประโยชน์

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## สัญญาอนุญาต

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    zh-CN:
        description: |
            自托管的一次性电子邮件服务，内置 SMTP 服务器。无需数据库，所有邮件以平面 JSON 文件存储。支持通配符域名、RSS 订阅源及 JSON API。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 OpenTrashmail 网页界面的域名
        readme: |
            # OpenTrashmail

            OpenTrashmail 是一款自托管的一次性电子邮件服务，内置 SMTP 服务器。无需数据库，所有邮件以平面 JSON 文件存储。支持通配符域名、RSS 订阅源及 JSON API。

            ## 首次设置

            1. 点击部署后的网址打开 OpenTrashmail 网页界面。
            2. 输入任何使用您配置域名的电子邮件地址以查看收到的邮件。
            3. 发送至您域名任何地址的邮件将自动出现。

            ## 端口

            - **80** (HTTP — 网页界面)
            - **25** (TCP — SMTP 服务器接收邮件)

            ## 重要提醒

            若要完整运作，您需要配置 DNS MX 记录指向您的服务器，以便在 25 端口接收邮件。

            ## 相关链接

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## 授权

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
    zh-TW:
        description: |
            自架的一次性電子郵件服務，內建 SMTP 伺服器。無需資料庫，所有郵件以平面 JSON 檔案儲存。支援萬用字元網域、RSS 訂閱源及 JSON API。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 OpenTrashmail 網頁介面的網域
        readme: |
            # OpenTrashmail

            OpenTrashmail 是一款自架的一次性電子郵件服務，內建 SMTP 伺服器。無需資料庫，所有郵件以平面 JSON 檔案儲存。支援萬用字元網域、RSS 訂閱源及 JSON API。

            ## 首次設定

            1. 點擊部署後的網址開啟 OpenTrashmail 網頁介面。
            2. 輸入任何使用您設定網域的電子郵件地址以查看收到的郵件。
            3. 傳送至您網域的任何地址的郵件將自動出現。

            ## 埠

            - **80** (HTTP — 網頁介面)
            - **25** (TCP — SMTP 伺服器接收郵件)

            ## 重要提醒

            若要完整運作，您需要設定 DNS MX 記錄指向您的伺服器，以便在 25 埠接收郵件。

            ## 相關連結

            - [OpenTrashmail GitHub](https://github.com/HaschekSolutions/opentrashmail)

            ## 授權

            Apache-2.0 — [GitHub](https://github.com/HaschekSolutions/opentrashmail)
