Back

Testing SMTP Mail Flow Using Exchange 2007 Pickup Folder

Neil fromhttpsmsexchangeorghttpsmsexchangeorgblogs about using simple text files to test Exchange 2007 SMTP mail flowIf you dont ne...

3 min read
Published on Apr 8, 2008
using-the-exchange-pickup-folder-to-test-smtp-mail-flow-on-exchange-2007

Neil from https://msexchange.org blogs about using simple text files to test Exchange 2007 SMTP mail flow.

If you don’t need to use text files, I recommend using this simple method using telnet (4 variables in bold):

telnet mailservername 25

ehlo

mail from: email@ifEmailBounce.com

rcpt to: email@destinationExchangeMailboxToTest.com

data

test message text

.    #must do single period then enter to end

Note - If you have Windows Vista - You may need to add telnet.exe it from Windows Components under Control Panel > Programs…it’s not installed by default Vista install. Here is part of the article:

… As I stated earlier in this article, the pickup folder is used to send email messages through the Exchange 2007 system simply by placing the email messages into the pickup folder. The email messages can be created in a simple text editor such as Notepad, saved as a file with a .eml extension and then placed into the pickup folder for processing. The actual message contents must be formatted correctly to be processed. An example of a simple text message is shown below in Figure 3. Note the fact that the filename is message.eml. For Exchange 2007 to process the message correctly, the file has to have a .eml extension.

Sample Mail Message Figure 3: Sample Mail Message

Let’s look at what happens when the file message.eml is copied to the pickup folder. First, you’ll see the message.eml file listed briefly in the folder before it is renamed to message.tmp as you can see in Figure 4. In my experience, this process occurred within 5 seconds of submission of the file to the folder. Assuming everything is configured correctly with regards to the formatting of the message, Exchange will then process it accordingly. The result will be, hopefully, that the message is delivered to the correct address as you can see from Figure 5. Interestingly, I noted that the .tmp file is locked open and cannot be opened via Notepad; efforts to do so resulted in an Access Denied error message.

Conversion To .TMP File Figure 4: Conversion To .TMP File

Delivered Message Figure 5: Delivered Message

These .tmp files are cleaned up automatically by the system on a periodic basis. It seemed logical to me that the Microsoft Exchange Transport service would be responsible for processing messages from the pickup folder so I was curious to know what happened if this service was stopped and restarted before the .tmp files were removed. Interestingly, with a previous .tmp file still existing in the pickup folder, I stopped and restarted the Microsoft Exchange Transport service and noted that any existing .tmp files were removed.

Read the complete article on MSExchange.org @> The Exchange Pickup Folder Learn more about our On-Prem Exchange Consulting.

This post has matured and its content may no longer be relevant beyond historical reference. To see the most current information on a given topic, click on the associated category or tag.

Related Posts

Office 365 License Comparison: Business Plans Vs. E5, E3 and E1

GCC High Vs GCC for Protecting CUI with CMMC

Learn the key differences between GCC and GCC High for handling CUI under CMMC, DFARS, and NIST 800-171. Find out which cloud meets your compliance needs.

Mar 31, 2025
4 min read
Risks of not using a CMMC RPO

The Risks of Not Using a CMMC RPO for Compliance and Certification Readiness

A CMMC RPO helps organizations prepare for certification and avoid compliance failures. Learn why working with an RPO is essential for achieving CMMC compliance.

Mar 20, 2025
8 min read
CMMC 2.0 Require GCC High for Compliance

Does CMMC 2.0 Require GCC High for Compliance?

Does CMMC 2.0 require GCC High? Learn the cloud options for compliance, data security, and protecting CUI under NIST 800-171 and DFARS.

Mar 17, 2025
10 min read
Office 365 License Comparison: Business Plans Vs. E5, E3 and E1

CMMC RPO vs a C3PAO: Understanding Their Roles in Compliance

Understanding the difference between an RPO and a C3PAO is crucial for CMMC compliance. Learn why they should be separate and how an RPO helps prepare for certification.

Mar 15, 2025
6 min read
Can You Meet CMMC with Google Workspace?

Can You Meet CMMC with Google Workspace?

Is Google Workspace CMMC compliant? Learn about its DFARS, NIST 800-171, and ITAR limitations and how migrating to GCC High ensures full compliance.

Mar 4, 2025
7 min read
Is Maintaining a GCC High Tenant Worth It for Non-Government

Evaluating the Need for a GCC High Tenant in Non-Government Organizations

Explore whether maintaining a GCC High tenant is necessary for organizations not involved in government work. Understand the pros and cons, costs, and compliance considerations.

Feb 25, 2025
7 min read

Ready to Secure and Defend Your Data
So Your Business Can Thrive?

Fill out the form to see how we can protect your data and help your business grow.

Loading...
Secure. Defend. Thrive.

Let's start a conversation

Discover more about Agile IT's range of services by reaching out.

Don't want to wait for us to get back to you?

Schedule a Free Consultation

Location

Agile IT Headquarters
4660 La Jolla Village Drive #100
San Diego, CA 92122

Secure. Defend. Thrive.

Don't want to wait for us to get back to you?

Discover more about Agile IT's range of services by reaching out

Schedule a Free Consultation