DEV Community

David Velho
David Velho

Posted on • Originally published at gist.github.com

1 2

Not so pro tips for mail-in-a-box users

Disclaimer: I am in no way a professional. I'm just a student who has had the (un)fortunate experience of maintaining a mailinabox server. I thought i would share my experiences along the way so that i may save some time for those looking for it.
I've used DigitalOcean here , but similar steps can be followed with your cloud provider of choice.

I want to move Mail-in-a-box to another Digital Ocean account (The Shortcut, but not recommended)

  • If you have any important data, be sure to always keep a backup
  • Create a snapshot of your droplet (you can power off the droplet after the snapshot)
  • Change the owner of your snapshot, see this guide
  • Resume the transferred snapshot
  • Change the DNS records to point to the new droplet
  • Log into the web admin panel at /admin . If there are no errors, everything is good. If there are errors (red text), re-install Mail-in-a-box

How do i re-install Mail-in-a-box ? (Unofficial, however, this should work in most cases)

  • Delete the mailinabox directory commonly located at ~/mailinabox
  • Rename the /etc/nginx/conf.d/local.conf to /etc/nginx/conf.d/local.conf.deleted if you would want a copy - Rename the /etc/nginx/conf.d/ssl.conf to /etc/nginx/conf.d/ssl.conf.deleted if you want to keep a copy - Restart nginx systemctl reload nginx . - Run the installer from the official website and once its done, everything should continue to work as normal.

BCC-ing people: (credits namsnath )

BCC all mails sent to a given address:

  • nano /etc/postfix/main.cnf
  • add to the end: sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps
  • nano /etc/postfix/sender_bcc_maps
  • Add lines in this format: <sender@email.com> <bcc@email.com>

BCC all mails recieved on a given address:

  • nano /etc/postfix/main.cnf
  • add to the end: recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps
  • nano /etc/postfix/recipient_bcc_maps
  • Add lines in this format: <recipient@email.com> <bcc@email.com>

Fancy Skins:

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay