Skip to content

A self-hosted solution for reading custom domain email content, designed for applications like verification bots.

Notifications You must be signed in to change notification settings

cpwillis/smtp-mail-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smtp-mail-bot

Welcome to the Custom Domain SMTP Mail Bot Server! This self-hosted solution allows you to read email content from your custom domain, making it perfect for applications like verification bots. Below you'll find detailed instructions on setting up and running the server.

Config

1. Prerequisites

  • A custom domain (e.g. devmailserver.xyz)
  • Access to your domain registrar's DNS settings (highly recommend cloudflare)
  • Port forwarding configuration on your router (if running locally)

2. DNS Records Configuration

A Record

Type: A
Name: devmailserver.xyz
Content/Value: 123.123.123.123 (replace with your public IP address)
TTL: Automatic

MX Record

Type: MX
Name: devmailserver.xyz
Content/Value: devmailserver.xyz
Priority: 10
TTL: Automatic

3. Port Forwarding

Ensure that port 25 is forwarded to the private IP address of the machine where the server will run. Refer to your router's manual or online guides for port forwarding instructions.

4. Code

Within smtp-mail-bot.py, configure the constants to your purposes (ie DOMAIN, HOST, PORT), and then run:

python smtp-mail-bot.py

About

A self-hosted solution for reading custom domain email content, designed for applications like verification bots.

Resources

Stars

Watchers

Forks

Languages