Trustwave Unveils 2025 Cybersecurity Threat Report for Energy and Utilities Sector. Learn More

Trustwave Unveils 2025 Cybersecurity Threat Report for Energy and Utilities Sector. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Microsoft Security
Unlock the full power of Microsoft Security
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

HOWTO: Using the Prepend rule action on messages with no subject

Expand / Collapse


This article applies to:

  • MailMarshal SMTP
  • Rule action "Prepend text to message subject"

Question:

  • Want to add text such as "[External]" to all message subjects
  • How do I add warning text to the subject when the message has no Subject: header?

Background:

Many organizations use the MailMarshal "Prepend to subject" rule action on all incoming messages to tag messages as external. 

  • Current default rules for new installations include this rule in the "Business Email Compromise" policy.

If the message does not have a "Subject:" header the prepend action does not work.

Procedure:

To resolve this issue, you can add the missing header. This action can be applied in the same rule with the Prepend action.

  1. Edit the rule, and select the action "Rewrite message headers using expressions"
  2. Click to add the expressions.
  3. Add an expression named "insert subject"
  4. On the General tab, select the following:
    • field parsing method: Entire line
    • header fields: Subject
  5. On the Expressions tab, enter the following:
    • Field substitute: Insert if missing
    • Text:  [No subject]
    • NOTE: when entering the text, there must be a space before the [   (the first character in any “insert if missing” text must be a space)
If this action is added to the warning rule that is present by default in new installations, the rule will appear as follows:
When a message arrives,
And the message is incoming
Then rewrite message headers using 'insert subject'
  And prepend [EXTERNAL] to message subject
  And continue processing

To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.