Modifying the email subject

Robert_K

New member
Joined
Sep 3, 2025
Messages
2
Hello,

It is possible to modify the subject of all incoming messages by adding the prefix [external] to them ?
 
Hello,

Yes, it is. You might use this example https://www.root42.de/blog/?p=87 and adjust it for your case:

Code:
# Exim filter
if "$h_to:" matches Nroot@.*.your.domain.deN then
   headers add "New-Subject: [System] $h_subject:"
   headers remove subject
   headers add "Subject: $h_new-subject:"
   headers remove new-subject
endif

p.s. This is an example, though it has valid lines for exim configuration, the files and paths specified in the guide are not suitable for servers with DirectAdmin.
 
Back
Top