27
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]

Hi,

I would like to host my own email server.

I know the pros and cons of doing so, please do not post about the advantage or disadvantage, there is others open topics for it.

I would like my setup fit those "requirements"

  • FLOSS
  • Be able to create complex rules for incoming/outgoing email ( with 🐍 Python language preferably ).
    • based on any properties (subject, ip, header, size, attachment, signed, encrypted, etc.. )
    • able to modify, delete, fw, etc... the email
  • Manage the limit of sending by size and number of outgoing over time (min, hours, week, etc..)

 

If you know a matrix comparison between email servers I'm all ears.

If you have any feedback with a solution this is most welcome too.

I plan to update this post to create a matrix/spreadsheet of all the solutions that I'll gather.

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 9 points 1 week ago

I have heard people have successfully utilised Mailcow without any issues for many years.

Personally gave it a try once but setting up ports, firewalls, virus scans, anti spams, dns felt too much effort for what I was going to use it for

[-] [email protected] 2 points 1 week ago

Using Mailcow for years now, love it, but I don't think it checks the custom scripts box of OP. Since it's all containers, you'd have to do some custom bind mounts to hook the underlying containers and keep the scripts, which might have some unintentional consequences depending on the upgrade.

[-] [email protected] 1 points 1 week ago

I second Mailcow. I use it on a residential IP and have a smarthost for relaying in/out since my isp blocks port 25.

For relay, I use mxroute.com, I have a lifetime account and Mailcow has a fetchmail option.

this post was submitted on 25 May 2025
27 points (86.5% liked)

Selfhosted

46672 readers
705 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS