5-Step Mailpit Configuration for Offline Email Testing

  • Riju
    Riju Ghosh
  • sundew
    5 min.read
  • sundew
    December 3rd, 2024
  • Technology
sundew

There are several ways to test and debug SMTP emails. The most common method is to use an online service like Mailtrap or Mailgun. While these tools are incredibly useful, they often come with a cost and require an internet connection, leading to resource constraints, especially with the free tiers.

Developers often find themselves sending email notifications frequently to test different functionalities. In the search for efficient and cost-effective solutions, professionals often look for alternatives that could be used offline. 

Among these are two offline-based software options for testing emails locally: Helo (Paid) and Mailpit (Free | Open Source). Given that Mailpit is free and open-source, it is a go-to tool for many. In this blog, get familiar with how to install and configure Mailpit, making email testing both accessible and efficient.

How to Use Mailpit for Offline Email Testing?

If you’re wondering how to set up Mailpit, the following steps can help you get started.

Step 1 - Download Mailpit

Follow the install instructions here:

GitHub - axllent/mailpit: An email and SMTP testing tool with API for developers

For windows you can check the releases page. There can be multiple variants, namely AMD, ARM and x386. You would need to download the file based on your OS and processor type.

  • AMD/AMD64 - For Intel/AMD processors
  • ARM - ARM processor (mostly found in mobile devices)
  • x386 - 32-bit Intel processors

Step 2 - Install Mailpit

While installing on Linux is easy, there are a few more steps to follow on Windows.

Once the zip file is downloaded, extract it to a location as per your choice. The extracted contents will look like this:

Install Mailpit

Step 3 - Add mailpit path to environment

To add the mailpit path to environment $PATH variable, follow these steps:

3.1. Search for env

Search for env

3.2. Click on the control panel item. It will open this window. Then click on the highlighted button. 

System Properties

3.3. You may choose to modify either the user or system variables. Select path and then click on edit according to your selection.

Select Path

3.4. In the newly opened window, click on New and add mailpit installation path like the following.

Edit Environment Variable

3.5. Click OK → OK → Apply → OK.

Step 4 - Using persistent storage

All email data will be lost once mailpit closes. To mitigate this, we can use a sqlite database.

Just create a blank file but make sure to keep its extension as .sqlite

You can keep the file anywhere on your system but it is suggested to create the file in the installation folder.

Step 5 - Launch Mailpit

Run the following command in your terminal to launch Mailpit with persistent storage.

mailpit -d "" -v

Replace  with the actual path to your sqlite DB file. -v is used to enable verbose logging

Once the mailpit server starts, you can access it via 127.0.0.1:8025.

Other customization options can be found in their official documentation.

Bonus: Create alias to launch mailpit

alias mpit=mailpit -d "C:\\mailpit\\maildb.sqlite" -v $*

Wrapping Up

Thank you for reading! Hopefully, this guide on Mailpit configuration and use for offline email testing has been helpful. If you have any questions or need further assistance, please don't hesitate to contact us. We’d love to hear about your experiences with Mailpit or any other tools you use for email testing.

Stay connected for more tips and tutorials!

Happy coding!

Thoughts and Trends
Across Our Focus Areas

sundew

Blog

Generative AI Security: Compliance Burden or a Strategic Advantage?

For many global enterprises, generative AI security started as a legal concern. Risk and compliance teams were often the first to raise their hands and ask.Can we use this tool?Is our data exposed?What will regulators say?But that conversation is evolving. Fast.In present times, GenAI security is less about passing audits and more about enabling scale. It plays a direct role in how confidently and securely you roll out AI across customer platforms, internal copilots, and decision-support systems. The real question is no longer “Are we compliant?” It is “Are we secure enough to move forward without hesitation?”This blog answers all your doubts and shows how security, governance, and compliance can shift from being a hurdle and become your secret weapon for standing out.Why Traditional Security Doesn't Cut It AnymoreThink about how we've always approached security. Build a perimeter. Control access. Monitor for breaches. It worked when you knew exactly what your systems would do. But Generative AI doesn't work that way.These systems create new content, make recommendations, and directly influence business decisions. A customer service chatbot trained on your knowledge base might inadvertently expose proprietary information. A contract review tool could perpetuate biases from historical data. A marketing assistant could easily draft content that drifts away from brand guidelines or, more concerning, crosses regulatory boundaries without anyone noticing at first.Microsoft's GitHub Copilot demonstrated this challenge in 2023 when research revealed the tool could suggest code snippets containing real credentials and API keys from its training data. Researchers extracted over 2,700 hard-coded credentials, with at least 200 being valid, active secrets. The issue wasn't a breach in the traditional sense. It was just the model behaving exactly as designed, just with unintended consequences.How Generative AI Security Flips Risk into a WinWhen you align AI risk management with your business priorities, vulnerabilities stop being roadblocks and start becoming differentiators. Security, governance, and compliance form an interconnected framework that protects both innovation and trust.Instead of treating security as IT’s compliance burden, leading enterprises are turning it into a competitive edge. Curious how? Let’s look at a few use cases: Banking and Finance Sector: The major concerns of banks and financial institutions are data privacy and security. Isn’t it? And GenAI systems often require access to sensitive financial data, which raises valid concerns under regulations such as GDPR and CCPA. Many organizations view data minimization as a limitation. In reality, it’s a discipline. By restricting models to only essential customer data, masking sensitive fields, and narrowing dataset scope, banks can reduce exposure while maintaining performance and regulatory confidence.The outcome was clear: faster compliance reviews, reduced security exposure, and more predictable model performance. What began as a GDPR-driven adjustment ultimately improved operational efficiency and strengthened client trust during enterprise audits.The Healthcare Industry: Several hospital networks are using GenAI to pre-fill patient intake summaries and assist with clinical documentation. Instead of layering AI governance and compliance later, they defined it upfront. Every interaction is logged. Outputs are traceable. Bias testing runs alongside deployment cycles. Access to patient records is tightly permissioned.What‘s the Payoff?Compliance teams gained visibility. Clinicians gained efficiency. And when partnering with insurers and digital health platforms, documented AI controls strengthened credibility during due diligence reviews.A Supply Chain Example: In 2025–2026, global logistics leaders such as Samsung SDS, DHL, and Walmart have expanded AI monitoring across forecasting and routing systems. Instead of relying on static deployment checks, they strengthened security controls, introducing drift detection, output validation, role-based access restrictions, and real-time anomaly tracking.So, what changed for the businesses? Forecast accuracy became more consistent, even during demand swings. Reduced risk of flawed predictions, data leakage, and unauthorized model interactions. Operations teams were able to identify anomalies earlier, rather than react after delays had already occurred. AI oversight also shifted closer to day-to-day operations. Planning, routing, and inventory decisions were supported by systems leadership could actually trust, which translated into steadier delivery performance and tighter cost control across regions.How Secure AI Deployments Win Enterprise Trust and Become a Growth EnablerEnterprises often ask: Is AI security just about passing audits, or is it about building trust? The truth is, regulators, customers, and partners are all expecting more, and the upside of meeting that expectation extends well beyond simply staying compliant. The two questions that change everything: What are Regulators Really Expecting?Global frameworks, from the EU AI Act to FTC guidance, are pushing for transparency and lifecycle accountability. Waiting until deployment to think about compliance often leads to delays. Embedding regulatory alignment into development keeps scale predictable.Why is Governance Suddenly a Competitive Advantage?  Because your customers are asking harder questions, an IBM Data Breach Report found that 97% of organizations that experienced an AI-related security incident lacked adequate AI access controls. Why does it matter? Because your customers and partners aren't just evaluating your features, they are evaluating your judgment.Strong governance is your SUPERPOWER for building trust.  It’s what distinguishes enterprises that operate with discipline from those simply assuming things will work out.How To Reframe Your AI Security Framework: A Checklist To Gain Market AdvantageCompliance can slow you down, or it can sharpen your edge. The difference lies in how you approach it. Here's your quick compliance checklist to build trust and speed:Think like your customers, not your auditors: Anticipate regulatory shifts and don’t wait for mandates to arrive. Track emerging standards and align early with what your customers will expect in terms of transparency and accountability.Use data discipline to move faster: Limit models to only the data they truly need. Leaner datasets reduce exposure, simplify oversight, and accelerate approvals.Engineer security into day one: Privacy and access controls shouldn’t follow deployment. Build them into architecture and product design so expansion doesn’t trigger rework.Maintain clear documentation: Structured records of model decisions, updates, and controls make audits manageable and reduce friction during reviews.Turn explainability into a selling point: Help your customers understand how your AI reaches conclusions. Clarity builds confidence, and confidence drives adoption.The pattern is clear. Those who lead with this mindset don’t treat enterprise generative AI security as overhead. They use it to strengthen products, credibility, and long-term position.Now It’s Your Turn. Is Your Enterprise Ready?Ask yourself this first: Are you building compliance in from the start, or are you planning to address it after everything else is in place?Most organizations rush to production, then someone from Legal shows up asking about audit trails. Or a customer asks how your Generative AI makes decisions, and nobody has a good answer. So you layer in safeguards, documentation, and controls,  hoping everything holds up under review.That approach slows momentum and increases exposure. So, what’s the right way to do this? Build compliance into the foundation of your enterprise AI strategy and embed privacy controls directly into user workflows. With that structure in place, you will be better positioned to scale responsibly, protect your reputation, and operate with certainty.Connect with our experts to assess where your GenAI initiatives stand and define a secure path forward.

Read More
sundew

Blog

The Future of Banking - AIs Impact on Financial Services

The integration of artificial intelligence (AI) is reshaping the way banks operate, interact with customers, and make decisions. As we stand on the cusp of a new era, it's crucial to delve into the revolutionary changes AI brings to banking and envision the future for financial institutions and their customers.AI as a Catalyst for TransformationIn a recent Deloitte survey, 86% of AI adopters in the banking sector foresee AI becoming the major driving force for their business growth within two years. AI acts as a catalyst, ushering in transformative changes across various facets of the industry, including operational efficiency, customer experience, fraud detection, credit scoring, financial planning, and data security.Operational Efficiency EnhancementAI's impact on banking operations goes beyond streamlining processes to deliver a more secure and reliable user experience. By reducing manual errors through the processing of large datasets, AI integration becomes a groundbreaking addition, simplifying operations and cutting operational costs. The use of AI-driven Robotic Process Automation (RPA) further automates repetitive tasks, offering cost-effective and smooth operations while opening doors to new revenue streams.Revolutionizing Customer ExperiencesIntegrating AI into traditional banking systems enhances connectivity and smooth customer interactions. AI analyzes and understands customer needs, facilitating more relevant touchpoints. Chatbots and visual assistance, available 24/7, transform customer handling, delivering accurate information and services. AI-driven chatbots and virtual assistance improve real-time customer interaction, seamlessly managing both simple and complex operations, from fund transfers to personalized financial advice.Fraud Detection ReinventedAI revolutionizes fraud detection by continuously monitoring and analyzing anomalies in banking operations, detecting suspicious patterns, and notifying against fraudulent activities. Beyond detection, AI provides real-time preventive measures, such as temporarily blocking transactions when encountering fraudulent activity, strengthening the banking sector's defense against sensitive data exposure.Empowering Improved Credit DecisionsAI reshapes financial services by enhancing credit scoring and decision-making processes. Analyzing large datasets, including unconventional data, AI-driven banking systems consider a wide range of factors, leading to safer and more profitable credit decisions. This technology aids in processing loans by assessing credit history, patterns, and customer behavior while also detecting unusual patterns and behaviors to minimize the risk of default.Data Security and Compliance AssuranceIn an industry where data security and compliance are paramount, AI ensures regulatory compliance, safeguarding the integrity of the banking sector. Strengthening data security and compliance, AI aids in adopting regulatory changes and transformations required for banking services, maintaining a robust security approach.The Future of Banking with AIAI serves as an innovative solution, offering accurate, secure, and efficient decision-making for financial operations. Predictive analytics, financial planning, and the integration of AI with blockchain emerge as key elements shaping the future of banking. Predictive analytics designs tailored products and services, promoting effective risk management, while financial planning provides accurate advice based on market trend forecasting. Integrating AI and blockchain ensures additional security and automation, supporting efficient financial planning and informed decision-making. AI stands at the forefront as the future unfolds, shaping a dynamic and efficient landscape for the banking industry.

Read More
sundew

Blog

7 Cutting edge Web Design Trends to maximize visibility

While designing a web page every designer needs to refine their creativity in order to grab the attention of the visitors. In a tech-savvy world, a website is the face of a company so it’s important to follow the emerging trends to stay ahead of the competition.  The design can make or break the reputation of the business online. If the website doesn’t attract or leave an impact at the first glance, chances are visitors won’t return to the website and one might lose them forever.A good website design is the primary foundation of success across all industries.  So integrating the latest design trends can deliver the best results possible and make your website appear neat and professional. In fact, applying design thinking methods help create user-centric designs, ensuring your website not only looks great but also delivers meaningful user experiences.The top web design trends that companies and designers are adopting:1.    Carefully crafted typographyIn the battle of grabbing eyeballs, typography is one of the most powerful weapons that one can resort to while planning a website design.   In recent years, the use of serif and sans-serif fonts on the web has broadened to create a dynamic user experience. To keep up with this trend, designers are opting for typography with tons of typefaces not only for laying emphasis but also for creating an aesthetic effect.2.    More creative formattingAs the device resolutions are getting sharper, simplifying the legibility factor is also opening the door for a rise in custom formation and layouts. Developers put their best foot forward in finding ways to create more engaging and creative formatting styles that work. Grid Layout is one such kind of approach which helps in placing multiple elements on a single page as there are several columns in the grid format.  Usually, a responsive Grid view layout has twelve columns which adjust as per the browsers. It allows images and texts to overlap and converge creating a stunning juxtaposition of bitmap and letterform.3.    Brighter colours and Bolder GradientsBold and striking colors are expected to revamp the industry. This may have been continuing for a little while, but this trend is branching out and holding strong since it made a comeback in the last year. Along with a variety of textures, designers are experimenting with brighter colors and bolder gradient shades. Today a number of brands give preference to solid color palettes to draw the optimum attention of the users. In the era of latest technologies, color-rich sites look sharper and elusive on the high-resolution displays.4.    CinemagraphsIncorporating high-quality videos or animations that run on a smooth, continuous loop have become a popular way to enhance visual performance to otherwise static pages. We’ve seen ample of simple designs already. Now, it’s high time to switch for more appealing visual elements. In this High-Definition world, nobody likes blurry images on the websites.  So make your images more stimulating by using SVG (Scalable Vector Graphics). The benefit of using SVG images on websites is that your images’ pixels won’t get tainted when zoomed. The perks of Cinemagraphs are that they are available in all formats like HD, SD, 4K and so on.5.    Micro-interactions on websitesRecently many brands are integrating animations or Emojis into their web pages to draw the viewer’s attention.  These are a part of a marketing strategy, where one can share their feelings through Emojis without actually using words. It feels good to see some Emojis waving around on the screen. These micro-interactions are now getting popular and became a trend in website designing.6.    Custom IllustrationsIllustrations those are eye-catching and tailored to the brand’s appearance, perceived as creative and are more approachable to their customers. While this trend is perfect for businesses that are energetic and has a subtle mix of quirkiness in their approach. Whatever your business deals with, there’s likely an illustration style to match your brand’s identity.7.    Improving Mobile PresenceIn this phase of digital transformation, about 50% of search queries are performed from the mobile devices which point towards making the design of the website mobile friendly. Also, it’s a known fact that Google priorities those sites that are mobile friendly. This obliges all businesses to have mobile-friendly sites to improve SERP and visibility over the internet. Businesses can ensure mobile-friendly behaviour of the website with Lambda Test’s emulators and simulators.Great web designs not only provide better readability and visual impression but it can also set the tone of your brand’s pursuance, evoke emotions and trigger associations. If all these web design elements are blend together, businesses will weave a perfect match for sites that do not want to leave their audience feel apathetic. 

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged