TODO

  • a way to see dovecot log
  • loading indicator na stranicama
  • Toasts
  • Block lists (ASN, Country code, Client, From)

Important dovecot conf

Development

On first run a data folder is going to be created and it going to fail because you need to put cert.crt & cert.key in data/certs folder.

Migrations

dotnet build
dotnet ef migrations add --no-build -c SqliteDbContext -o ./Entities/Migrations/Sqlite Initial
dotnet ef migrations add --no-build -c PostgresDbContext -o ./Entities/Migrations/Postgres Initial
dotnet ef migrations add --no-build -c MysqlDbContext -o ./Entities/Migrations/Mysql Initial

postgres

SELECT *, pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE pid <> pg_backend_pid()
AND datname = 'dev_poshtar';

DROP DATABASE dev_poshtar;

CREATE DATABASE dev_poshtar
    WITH
    OWNER = dev
    ENCODING = 'UTF8'
    LC_COLLATE = 'hr_HR.utf8'
    LC_CTYPE = 'hr_HR.utf8'
    CONNECTION LIMIT = -1
    IS_TEMPLATE = False;

OpenAPI

To clear cache and use latest run rm -rf ~/.npm/_npx

cd src/web
npx openapi-typescript-codegen --useOptions --input http://localhost:5080/swagger/v1/swagger.json --output ./src/api

SMTP test

nc -Cv localhost 5025

From: Sender <sender@example.com>
Date: Wed, 22 Mar 2023 07:15:35 +0100
Subject: Re: Testing
To: Recipient <recipient@example.com>

Test
.

IMAP

openssl s_client -quiet -crlf -connect localhost:5993

Thunderbird

  • 5993 SSL/TLS
  • 5465 SSL/TLS
  • 5587 STARTTLS