Configure pickup folders for EA SMTP Server

A default pickup folder is configured at the EA SMTP Server Installation path\Pickup folder. Correctly formatted email message files that you copy to the Pickup directories are submitted for delivery automatically by the EA SMTP Server.

Message format requirements

  • It must be a text file complying with the basic SMTP message format (MIME headers and content are supported).
  • It must have an .eml file extension.
  • It must include at least one email address in the X-Sender or From header fields.
  • It must include at least one email address in the To, Cc, Bcc, or X-Receiver header fields.
  • A blank line must separate the message header from the message body.

Example 1 (basic valid message):

To: test@contoso.com
From: rcpt@contoso.com
Subject: Message subject

This is the body of the message.

Example 2 (with X-Sender and X-Receiver fields):

X-Sender: <test@contoso.com>
X-Receiver: <rcpt@contoso.com>
To: test@contoso.com
From: rcpt@contoso.com
Subject: Message subject

This is the body of the message.

# it also support DSN extensions
# Example of DSN extension

X-Sender: <test@contoso.com> RET=HDRS ENVID=12345ABCD
X-Receiver: <rcpt@contoso.com> NOTIFY=NEVER ORcpt=rcpt@contoso.com
To: test@contoso.com
From: rcpt@contoso.com
Subject: Message subject

This is the body of the message.

The X-Sender and X-Receiver fields specify the actual sender and recipient when the file is dropped into the pickup folder. X-Receiver only support one email address. If you need to specify multiple recipients, you can use multiple X-Receiver fields.

Configure multiple pickup folders

You can configure multiple pickup folders by adding additional objects to the JSON array. Each object represents a separate pickup folder with its own settings.

The config file is located at the EA SMTP Server Installation path\Config\Pickup\PickupFolders.json file.

# Default Configuration file.

[
   {
        "Path": "Pickup",
        "IsEnabled": true,
        "MaxHeaderSize": 64,
        "MaxRecipientsPerMessage": 200,
        "MaxMessagesPerMinute": 100,
        "StripLeadingDot": true,
        "HeloDomain": ""
    }
]


# Example of adding another pickup folder
[
   {
        "Path": "Pickup",
        "IsEnabled": true,
        "MaxHeaderSize": 64,
        "MaxRecipientsPerMessage": 200,
        "MaxMessagesPerMinute": 100,
        "StripLeadingDot": true,
        "HeloDomain": ""
    },
    {
        "Path": "AnotherPickup",
        "IsEnabled": true,
        "MaxHeaderSize": 64,
        "MaxRecipientsPerMessage": 200,
        "MaxMessagesPerMinute": 100,
        "StripLeadingDot": true,
        "HeloDomain": ""
    }
]

You can use full path in Path instead of just the folder name. If no full path is specified, the server will look for the folder relative to the installation directory.

After modifying the PickupFolders.json file, you need to restart the EA SMTP Server for the changes to take effect.

Restart-Service -Name "EASmtpSvc"

Strip leading dot option

When this option is enabled, any leading dot in the message body will be stripped before delivery. This is useful for ensuring compatibility with certain email clients and servers that may interpret leading dots in a special way.

Here is a list of how the strip leading dot option is handled in different email servers:

Target pickup What you write in eml body line Result in final mail
IIS SMTP Pickup ..This is a test .This is a test
Exchange Server Pickup .This is a test .This is a test
EA SMTP Server Pickup Default ..This is a test .This is a test
EA SMTP Server Pickup With StripLeadingDot false .This is a test .This is a test
  • IIS path: apply dot-stuffing (prefix extra . for line-leading .)
  • Exchange path: do not apply dot-stuffing
  • EA SMTP Server path with StripLeadingDot true: apply dot-stuffing (prefix extra . for line-leading .)
  • EA SMTP Server path with StripLeadingDot false: do not strip leading dot

Free Email Support

Not enough? Please contact our technical support team.

Support@EmailArchitect.NET

Remarks

We usually reply emails within 24hours. The reason for getting no response is likely that your SMTP server bounced our reply. In this case, please try to use another email address to contact us. Your Gmail, Hotmail or Office 365 email account is recommended.