1
Using SPOOL Proc and changing destination recipient
Question asked by Merz Official - 2/26/2025 at 11:52 AM
Unanswered
I just need clarification on the following.  I have a node.js script that watches the Proc folder and processes files in there looking for certain criteria.  IF I should want to change WHO the email is going to (re-route it to another inbox) -- would I just change the "To: email@address.com " in the HDR?  Do I need to change it multiple places (including the .EML file too?).  I do know that after changing things, I need to move it back to the SPOOL folder to continue processing. 

Help me properly snag and re-route emails! Thank you in advance! 

4 Replies

Reply to Thread
1
Merz Official Replied
Looking further through the forums it appears that the HDR file is pretty irrelevant.
Am I right in saying that I only need to modify the EML file and put it back in spool? 
And if so, are there multiple places in the .EML file that I should worry about? Or just the To: line (if I want to change the destination recipient) 

Thx
1
Kyle Kerst Replied
Employee Post
There are two ways to handle that depending on how you're setup currently. If you handle messages in the normal subspool folders you'll just need to modify the HDR because we use that to address the EML. If you want to place them back in the drop folder though you'll need to modify the EML because we don't process HDRs in that folder. 
Kyle Kerst Acting IT Manager SmarterTools Inc. www.smartertools.com
0
Merz Official Replied
Thanks Kyle, so you're confirming that if I enable the proc folder, my script can simply modify the EML file and move it back to the spool folder? 

Also, is there one place in the EML I should modify or multiple? 


1
Douglas Foster Replied
No.   The HDR file preserves the SMTP routing which is independent of themessage being carried..   theEML file is the message being delivered.  The SMTP From and To can be very different from the EML From and To.

You need to use proc folder and edit the HDR file

Reply to Thread

Enter the verification text