Hold Tight...

0 %
Driving cybersecurity excellence
Innovator behind Kodachi OS
  • Residence:
    ::0
  • Uptime Binary:
    110001
  • Mantra:
    Innovate, Secure, Repeat
ONS
EEDS
NSSG
Cybersecurity
Programming & R&D
Cryptocurrency
AI & vibe coding
  • Bash
  • Gambas
  • Delphi
  • PHP
  • Visual Basic
  • Rust

Getting Your Mass Marketing Email to the Inbox: Effective Email Techniques

06/03/2015
5 min readDeep Tech2 code examplesUpdated October 2026

Key points

  • Since February 2024, Gmail and Yahoo require bulk senders to pass SPF, DKIM and DMARC, offer one-click unsubscribe and keep complaints under 0.3%; Outlook.com followed in May 2025.
  • Send only to people who opted in, and clean the list before you send: the Linux and Windows tools for that are below.
  • For a large list today I would use a newsletter tool (MailPoet or listmonk) sending through Amazon SES, Brevo or Mailgun.

Getting Marketing Email Directly to the Inbox

Updated October 2026: Deliverability rules for marketing email have tightened since I wrote this in 2015. Since February 2024, Gmail and Yahoo require anyone who sends more than 5,000 messages a day to their accounts to authenticate with SPF, DKIM and DMARC, to offer one-click unsubscribe (the List-Unsubscribe and List-Unsubscribe-Post headers of RFC 8058) and to keep the spam complaint rate under 0.3%. Outlook.com has required SPF, DKIM and DMARC from high-volume senders since May 2025. For the methods below, that means:

  • Mandrill is now Mailchimp Transactional, a paid add-on to a Standard or Premium Mailchimp plan, built for one-to-one messages such as receipts and password resets rather than newsletters. For a large list I would use a newsletter tool (MailPoet inside WordPress, or a self-hosted list manager such as listmonk) sending through Amazon SES, Brevo or Mailgun.
  • Send only to people who opted in (double opt-in is safest) and remove hard bounces after every campaign. Running sendmail -bv only shows how your own server would route an address; it does not prove that the mailbox exists.
  • The old trick of sending from your recipients’ own addresses now fails SPF, DKIM and DMARC, and mail providers junk or reject it.
  • No service can guarantee the inbox: your domain’s reputation decides it, and Google Postmaster Tools shows your spam rate.

Why inbox delivery now costs money

Today, I am going to show you how to deliver all your marketing messages directly to the mail inbox. Email marketing used to be free and easy, but now you will have to pay a few bucks due to the significant improvements in spam detection techniques, which are now very strict on blocking mass emails, regardless of their legitimacy. Before I delve into the current method, allow me to share my experience with the old method that worked for me from 2001 to 2009.

Old Classic Method

Using Visual Basic, I developed a custom multi-email sender application that loaded a specific list of email addresses for the recipients of my marketing messages. The application cleverly selected the sender from the same list, so each user would send an email to another user. Although this method was smart, it was unethical, so I advise against using it. Occasionally, I had to make the user send the email to themselves to ensure delivery.

The VB application relied on a local SMTP application called QK SMTP, which then forwarded the emails to the desired addresses. It also allowed for setting up remote SMTP details in case local delivery failed. I chose this application because of its excellent multi-threading capabilities, ensuring that no matter how many emails were in the queue, they would be processed and delivered efficiently.

Feel free to try the VB application, though I believe QK SMTP has been discontinued.

Mass Mailer application window
Mass Mailer
QK SMTP Server log window
QK SMTP

Download the VB application with full source from here.


Modern Method

Technology has evolved, and now we have mailing list management services built for inbox delivery, such as Mailchimp and AWeber. However, these services can be expensive, especially if your list exceeds 300,000 contacts, as is the case for me. As a cost-effective alternative, I manage my list via WordPress using K-News Pro and pay a lower fee for the SMTP service provided by Mandrill.

Here’s how you can set this up:

  1. Import Your List: Import your email list into K-News.
  2. Create Your Message: Use K-News’ built-in templates to create your message.
  3. SMTP Setup: Configure K-News to use Mandrill as the SMTP server. Obtain your API key from Mandrill and set up DKIM and SPF options for better deliverability.
  4. Bounce Management: While K-News has a bouncing management feature, not all bounced messages will be delivered to the specified mailbox. To work around this, use the Mandrill Outbound page to identify bounced and rejected messages. Export these messages and import them back into K-News, setting them as bounced with the overwrite option enabled.

This approach helps you clean up your mailing list, ensuring that you only send emails to valid addresses. In the long run, this method is more cost-effective, as it reduces the number of undeliverable emails and optimizes your email marketing efforts.

K-News newsletter statistics dashboard
K-News
Mandrill sending statistics charts
Mandrill

Cleaning your mailing list

You may need to clean up your lists before you start sending emails to avoid account termination. Here are some methods I use:

I use Linux to clean up a list by reading a file line by line, checking if the email is valid, and outputting the results to a text file.

ShellScript
while read line; do sendmail -bv "$line"; done < emails.txt |grep failed > invalidemails.txt
ShellScript

Now you can grep all email addresses from a text file using regular expressions:

ShellScript
grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" invalidemails.txt > invalidemails2.txt
ShellScript

In Windows, I use eMail Extractor to extract emails from files and eMail Verifier to verify them.


Mail Storage

Managing large volumes of email can be challenging. I used to store my 29 GB of email messages, totaling 3.5 million emails, using MS Outlook. Dealing with PST files was tough, and I had no choice but to manage it. I also tried Mozilla Thunderbird, but the size was still too large for it to handle effectively.

Recently, I discovered a very powerful free email archiving tool that significantly improved my email management. This tool reduced my storage size from 29 GB to 11 GB, removed all duplicate entries, and made searching much easier. It allows for easy archiving from any email format, as well as live retrieval from online email accounts such as Gmail and Outlook.com (then Windows Live). Additionally, it provides the ability to export emails into well-known formats such as EML and PST.

If you’re facing issues with managing a huge number of emails, don’t miss out on this tool. The tool is called MailStore Home, and you can get it here.

MailStore Home archive window
MailStore

Posted in Deep TechTags: