Change body of mail before sending
-
- New user
- Posts: 5
- Joined: 2022-06-21 13:28
Change body of mail before sending
Hi
I'm hoping somebody can help me with a issue.
I want to modify the body of a mail before it is sent.
This is what I currently did.
Added code to myEventHandlers.vbs script
"Sub AppendBody (oMessage)
oMessage.body = oMessage.body & "xxxxxxxxxxxxx"
oMessage.HTMLBody = oMessage.HTMLBody & "xxxxxxxxxxxxx"
oMessage.save
End Sub"
I've enabled scripts and reload scripts in advance
I've added rule that looks for subjects containing "xxxxx" and the run function AppendBody
It is not working, what am I doing wrong?
I'm hoping somebody can help me with a issue.
I want to modify the body of a mail before it is sent.
This is what I currently did.
Added code to myEventHandlers.vbs script
"Sub AppendBody (oMessage)
oMessage.body = oMessage.body & "xxxxxxxxxxxxx"
oMessage.HTMLBody = oMessage.HTMLBody & "xxxxxxxxxxxxx"
oMessage.save
End Sub"
I've enabled scripts and reload scripts in advance
I've added rule that looks for subjects containing "xxxxx" and the run function AppendBody
It is not working, what am I doing wrong?
Re: Change body of mail before sending
Can you be more specific about your rule?
-
- New user
- Posts: 5
- Joined: 2022-06-21 13:28
Re: Change body of mail before sending
Hi
Rule is added with criteria that looks for value contained within subject ,
Action is to run function that I created. See attached screenshots
Rule is added with criteria that looks for value contained within subject ,
Action is to run function that I created. See attached screenshots
- jimimaseye
- Moderator
- Posts: 9493
- Joined: 2011-09-08 17:48
Re: Change body of mail before sending
run this and post the results: https://www.hmailserver.com/forum/viewt ... 20&t=30914
Include rules.
[Entered by mobile. Excuse my spelling.]
Include rules.
[Entered by mobile. Excuse my spelling.]
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
-
- New user
- Posts: 5
- Joined: 2022-06-21 13:28
Re: Change body of mail before sending
Code: Select all
2022-06-22 Hmailserver: 5.6.8-B2574
DOMAINS
"Domain1.com" - fhxxxxxxxxxxx.co.za Enabled: True
SIGNATURE LIMITS DKIM ADVANCED
Enabled: True Max size: 0 Enabled: False
APPEND Max message size: 0 Plus addressing: False
Replies: False Max size of accounts: 0
Local: False Greylisting: False
-----------------------------------------------------------------------------------------------
GLOBAL RULES
1, Radcon Fraud Email Criteria: Use AND
From Contains radonpro@gmail.com
-----Actions-----
Forward manieb@Domain1.com
Forward garethc@Domain1.com
Delete
---------------------------------------------------------------------
2, Lemay Construction Fruad Criteria: Use AND
From Equals orders.lemaycon@gmail.com
-----Actions-----
Forward garethc@Domain1.com
Forward manieb@Domain1.com
Delete
---------------------------------------------------------------------
3, WhiteRiver Criteria: Use AND
From Equals sam@wrsm.co.za
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
4, siyanqoba Criteria: Use AND
From Contains siyanqoba
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
5, spam fliter "sex" Criteria: Use AND
Subject Contains sex
-----Actions-----
Forward admin@Domain1.com
Delete
---------------------------------------------------------------------
6, Free Lotto Criteria: Use AND
From Contains lotto
-----Actions-----
Forward junk@Domain1.com
Delete
Stop Rule Processing
---------------------------------------------------------------------
7, spam filter VIAGRA Criteria: Use AND
Subject Contains viagra
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
8, SPAM by Address Criteria: Use OR
From Contains support@opsa.org.za
From Contains penton.timothy@live.com
From Contains snippet@tracercqm.com
From Contains maillist@serv1.mailblast.co.za
From Contains @quepasa.com
From Contains @whereareyounow.net
From Contains freemanbiz@aol.com
From Contains tanya wallace
From Contains tanyawallace
From Contains WhatsApp
From Contains fdeutsch@machadoford.com
From Contains rujan.singh
From Contains telkomupdates8@gmail.com
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
9, Pierre spam filter Criteria: Use AND
From Contains noreply@m7.myzamanamail.com
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
10, tiptop Criteria: Use AND
From Equals marketing@tiptopjob.com
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
11, spam Criteria: Use OR
From Contains news@tarot.com
From Contains mailers@citymob.co.za
From Contains rt@lml14-net.com
From Contains @zyngamail.com
From Contains reminder@theanimalrescuesite.com
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
12, Louise.Theologo Criteria: Use OR
From Contains louise.theologo
From Equals louise.theologo@yahoo.co.uk
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
13, HSBC Advising Criteria: Use AND
Subject Contains CHAPS credits
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
14, Lottery Criteria: Use AND
From Contains lottery
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
15, s3xslave Criteria: Use AND
Body Contains s3xslave
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
16, MBD group Criteria: Use AND
From Contains letters@lettersonline.co.za
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
17, Mailbox Usage Criteria: Use AND
From Contains marketing@in4parts.com
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
18, Capacity Full Criteria: Use AND
Subject Contains Your mailbox Capacity is Full. Upgrade
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
19, ns18@saya.co.za Criteria: Use AND
From Contains ns18@saya.co.za
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
20, pieternkosigroup5@gmail.com Criteria: Use AND
From Contains pieternkosigroup5@gmail.com
-----Actions-----
Delete
Stop Rule Processing
---------------------------------------------------------------------
21, meet.spank.bang Criteria: Use AND
From Contains newsyork.eu
-----Actions-----
Delete
---------------------------------------------------------------------
22, epay@sarsefiling.co.za Criteria: Use AND
From Equals epay@sarsefiling.co.za
-----Actions-----
Delete
---------------------------------------------------------------------
23, @casagaillard.com Criteria: Use AND
From Contains @casagaillard.com
-----Actions-----
Delete
---------------------------------------------------------------------
24, .zw Criteria: Use AND
From Contains .zw
-----Actions-----
Delete
---------------------------------------------------------------------
25, Olx Criteria: Use AND
From Contains support@olx.co.za
-----Actions-----
Delete
---------------------------------------------------------------------
26, SPAM van zyl Criteria: Use AND
Subject Contains my sordid life
-----Actions-----
Delete
---------------------------------------------------------------------
27, Protonmail.ch Criteria: Use AND
From Contains protonmail.ch
-----Actions-----
Delete
---------------------------------------------------------------------
28, @pm.me Criteria: Use AND
From Contains @pm.me
-----Actions-----
Delete
---------------------------------------------------------------------
29, marietjie.theron1@yahoo.com Criteria: Use AND
From Contains marietjie.theron1@yahoo.com
-----Actions-----
Delete
---------------------------------------------------------------------
30, URGENT EMAILBOX VERIFICATION Criteria: Use AND
Subject Contains URGENT EMAILBOX VERIFICATION
-----Actions-----
Delete
---------------------------------------------------------------------
31, JHJ Training Criteria: Use AND
Custom: @jhj-training.co.za Contains @jhj-training.co.za
-----Actions-----
Forward sarelm@Domain1.com
Forward salesriviera@Domain1.com
---------------------------------------------------------------------
32, .ru domain block Criteria: Use AND
From Contains .co.ru
To Not Contains .co.ru
-----Actions-----
Delete
---------------------------------------------------------------------
33, Standard Bank Phishing 2021 Criteria: Use AND
Subject Equals We've made accessing your Digital Banking easier and more secure.
-----Actions-----
Forward admin@Domain1.com
Delete
---------------------------------------------------------------------
34, test Criteria: Use AND
Subject Contains test
-----Actions-----
Run Function AppendBodyPayroll
-----------------------------------------------------------------------------------------------
IP RANGES
IP: 192.168.131.16 - 192.168.131.16 Priority: 100 Name: HO-K8Email
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 154.66.151.15 - 154.66.151.50 Priority: 100 Name: Marion Email
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - False
External To Local - True External To Local - False
External To External - False
IP: 104.47.19.0 - 104.47.19.255 Priority: 100 Name: mso365
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - False
External To Local - True External To Local - False
External To External - False
IP: 52.0.0.0 - 52.255.255.255 Priority: 100 Name: o365
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: True
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - False
External To Local - True External To Local - False
External To External - False
IP: 104.209.35.0 - 104.209.35.255 Priority: 100 Name: Office365
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - False
External To Local - True External To Local - False
External To External - False
IP: 10.255.15.0 - 10.255.15.255 Priority: 100 Name: outlook365
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - False
External To External - False
IP: 41.185.28.1 - 41.185.28.254 Priority: 95 Name: TCi #2
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 151.236.42.22 - 151.236.42.22 Priority: 95 Name: TCI#3
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 192.168.130.0 - 192.168.140.255 Priority: 90 Name: FHC WAN
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 127.0.0.1 - 127.0.0.1 Priority: 90 Name: My computer
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 144.91.73.6 - 144.91.73.6 Priority: 90 Name: TCI#4
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 94.76.192.1 - 94.76.192.254 Priority: 89 Name: TCI
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 192.168.133.15 - 192.168.133.15 Priority: 51 Name: Trussco MFP
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 10.1.131.1 - 10.1.131.254 Priority: 50 Name: 120
Allow connections Other
SMTP: False Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
IP: 172.168.5.40 - 172.168.5.59 Priority: 50 Name: centcctvtest
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - False
External To Local - False
External To External - False
IP: 192.168.131.240 - 192.168.131.240 Priority: 50 Name: HO-BULKMAIL
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 192.168.131.112 - 192.168.131.112 Priority: 50 Name: HO-Kprint
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 172.168.2.40 - 172.168.2.50 Priority: 50 Name: rivcctv
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - False
External To Local - False
External To External - False
IP: 192.168.131.18 - 192.168.131.18 Priority: 50 Name: Riv-Kprint
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 192.168.131.116 - 192.168.131.116 Priority: 50 Name: SO-KPRINT1
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 172.16.1.10 - 172.16.1.10 Priority: 25 Name: Babbage xdsl
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - True External To External - True
IP: 10.210.1.0 - 10.210.1.254 Priority: 25 Name: K8 Server
Allow connections Other
SMTP: True Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - False
Local To External - True Local To External - False
External To Local - True External To Local - False
External To External - False
IP: 192.168.150.1 - 192.168.150.254 Priority: 25 Name: XDSL VPN
Allow connections Other
SMTP: True Antispam : True
POP3: True Antivirus: True
IMAP: True SSL/TLS: False
Allow Deliveries from Require Authentication from
Local To Local - True Local To Local - True
Local To External - True Local To External - True
External To Local - True External To Local - True
External To External - False
IP: 74.125.28.27 - 74.125.28.27 Priority: 20 Name: Auto-ban 1e100.net
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 37.58.116.162 - 37.58.116.162 Priority: 20 Name: Auto-ban: coordina
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 196.196.27.16 - 196.196.27.16 Priority: 20 Name: Auto-ban: guest
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 74.208.99.60 - 74.208.99.60 Priority: 20 Name: Auto-ban: hailie
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 209.66.128.102 - 209.66.128.102 Priority: 20 Name: Auto-ban: root
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 205.139.110.141 - 205.139.110.141 Priority: 20 Name: MANUALBAN - us-smtp-inbound-1.mimecast.com
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 0.0.0.0 - 255.255.255.255 Priority: 10 Name: Internet
Allow connections Other
SMTP: False Antispam : True
POP3: False Antivirus: True
IMAP: False SSL/TLS: False
IP: 67.223.117.148 - 67.223.117.148 Priority: 0 Name: namecheap
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
IP: 212.23.95.91 - 212.23.95.91 Priority: 0 Name: perspektiva-e.ru
Allow connections Other
SMTP: False Antispam : False
POP3: False Antivirus: False
IMAP: False SSL/TLS: False
------------------------------------------------------
AUTOBANNED Local Addresses:
No entries
-----------------------------------------------------------------------------------------------
AUTOBAN
Autoban Enabled: True Max invalid logon attempts: 10
Minutes Before Reset: 60 (1,00 hours, 0,04 days)
Minutes to Autoban: 1440 (24,00 hours, 1,00 days)
No problems were found in the IP range configuration.
-----------------------------------------------------------------------------------------------
INCOMING RELAYS
104.47.19.0 - 104.47.19.255
104.209.35.0 - 104.209.35.255
-----------------------------------------------------------------------------------------------
MIRRORING Disabled
-----------------------------------------------------------------------------------------------
PROTOCOLS
SMTP
GENERAL DELIVERY RFC COMPLIANCE ADVANCED
No. Connections: 0 No Retries: 48 Mins: 30 Plain Text: True Bind:
Host: EXTERNAL.TLD Empty sender: True Batch recipients: 40
Max Msg Size: 0 Relay:- Incorrect endings: True Use STARTTLS: True
EXTERNAL.TLD (unchecked) Disc. on invalid: False Delivered-To hdr: False
(No incest check - ext. IP unavailable)
Port: 25 Loop limit: 20
Req Auth: True *User Entered* Recipient hosts: 5
Con. Sec.: None
Routes:
No routes defined.
POP3
No. Connections: 0
IMAP
GENERAL PUBLIC FOLDERS ADVANCED
No. Connections: 0 Public folder name: #Public IMAP sort: True
IMAP Quota: True
IMAP Idle: True
IMAP ACL: True
Delim: "\"
-----------------------------------------------------------------------------------------------
ANTISPAM
GENERAL SPAM TESTS Score SPAMASSASSIN
Spam Mark: 6 Use SPF: True - 3 Use Spamassassin: False
Add X-HmailServer-Spam: True Check HELO host: True - 2
Add X-HmailServer-Reason: True Check MX records: True - 2
Add X-HmailServer-Subject: True Verify DKIM: True - 5
Subject Text: "[SPAM-HMAIL]"
Spam delete threshold: 20 Maximum message size: 1024
DNSBL ENTRIES:
zen.spamhaus.org Score: 3 Result: 127.0.0.2-8|127.0.0.10-11
bl.spamcop.net Score: 3 Result: 127.0.0.2
sbl-xbl.spamhaus.org Score: 3 Result: 127.0.0.*
wowmenow.co.uk Score: 0 Result:
peruibe2.sp.gov.br Score: 0 Result:
mail.peruibe2.sp.gov.br Score: 0 Result:
juno.ocn.ne.jp Score: 0 Result:
cssmap.com Score: 0 Result:
takamigumi.co.jp Score: 0 Result:
SURBL ENTRIES:
multi.surbl.org Score: 2
GREYLISTING:
Greylisting: False
WHITELISTING
0.0.0.0 to 255.255.255.255 [@t]healthinsite[dot]net
0.0.0.0 to 255.255.255.255 [@t]healthinsiteonline[dot]net
0.0.0.0 to 255.255.255.255 [@t]his-mail[dot]net
0.0.0.0 to 255.255.255.255 [@t]exec-care[dot]co[dot]za
0.0.0.0 to 255.255.255.255 [@t]chilts[@t]telkomsa[dot]net
0.0.0.0 to 255.255.255.255 [@t]trendmicro[dot]com
0.0.0.0 to 255.255.255.255 [@t]mail-phishinsight[dot]trendmicro[dot]com
0.0.0.0 to 255.255.255.255 [@t]mailrelaysrv[dot]com
0.0.0.0 to 255.255.255.255 [@t]esstee[dot]co[dot]za
0.0.0.0 to 255.255.255.255 [@t]lgtools[dot]co[dot]za
0.0.0.0 to 255.255.255.255 [@t]wrseta[dot]org[dot]za
0.0.0.0 to 255.255.255.255 [@t]saplastikor[dot]co[dot]za
41.161.81.75 to 41.161.81.75 [@t]fhchamberlain[dot]com
41.170.1.194 to 41.170.1.194 [@t]fhchamberlain[dot]com
104.47.19.1 to 104.47.19.255 [@t]fhchamberlain[dot]com
104.209.35.0 to 104.209.35.255 [@t]fhchamberlain[dot]com
151.236.42.16 to 151.236.42.23 [@t]fhchamberlain[dot]co[dot]za
154.66.151.19 to 154.66.151.36 [@t]fhchamberlain[dot]com
192.168.130.0 to 192.168.140.255 news[@t]fhchamberlain[dot]co[dot]za
192.168.130.2 to 192.168.140.254 [@t]fhchamberlain[dot]co[dot]za
-----------------------------------------------------------------------------------------------
ANTIVIRUS
GENERAL:
When found - Delete email. Notify Sender: False, Notify Receiver: True
Max Message Size: 4012
CLAM AV: True Hostname: localhost Port: 3310
CLAMWIN: False
CUSTOMAV: False
Block Attachments: True
*.7z 7 Zip files
*.ace ACE compressed file format
*.arj *.arj
*.avi Media format
*.bat Batch processing file
*.cab Cab
*.cmd Command file for Windows NT
*.com Command
*.cpl Windows Control Panel extension
*.csh CSH script
*.docm Word Open XML Macro-Enabled Document
*.exe Application Setup
*.gz G-Zip
*.hta Microsoft word excecutables HTML applications
*.inf Setup file
*.iso *.iso
*.jar *.jar
*.lnk Windows link file
*.mpa Windows media
*.mpeg Moving Picture Experts Group
*.msi Windows Installer file
*.msp Windows Installer patch
*.ps Powershell
*.rar WinRAR
*.reg Registration key
*.scf Windows Explorer command
*.scr Windows Screen saver
*.vbs Visual Basic Scripts
*.wm Windows Media
*.wma Windows Media
*.wmv Windows Media
*.xlam MS Excel add in
*.xlsm Excel Open XML Macro-Enabled Spreadsheet
*.xz .xz compressed files
*.zip Zip
-----------------------------------------------------------------------------------------------
SSL CERTIFICATES
No entries
-----------------------------------------------------------------------------------------------
SSL/TLS
TLS 1.0 : True
TLS 1.1 : True
TLS 1.2 : True
TLS 1.3 : True Verify Remote SSL/TLS Certs: True
SslCipherList :
ECDHE-RSA-AES128-GCM-SHA256 - ECDHE-ECDSA-AES128-GCM-SHA256 - ECDHE-RSA-AES256-GCM-SHA384
ECDHE-ECDSA-AES256-GCM-SHA384 - DHE-RSA-AES128-GCM-SHA256 - DHE-DSS-AES128-GCM-SHA256
kEDH+AESGCM - ECDHE-RSA-AES128-SHA256 - ECDHE-ECDSA-AES128-SHA256
ECDHE-RSA-AES128-SHA - ECDHE-ECDSA-AES128-SHA - ECDHE-RSA-AES256-SHA384
ECDHE-ECDSA-AES256-SHA384 - ECDHE-RSA-AES256-SHA - ECDHE-ECDSA-AES256-SHA
DHE-RSA-AES128-SHA256 - DHE-RSA-AES128-SHA - DHE-DSS-AES128-SHA256
DHE-RSA-AES256-SHA256 - DHE-DSS-AES256-SHA - DHE-RSA-AES256-SHA
AES128-GCM-SHA256 - AES256-GCM-SHA384 - ECDHE-RSA-RC4-SHA
ECDHE-ECDSA-RC4-SHA - AES128 - AES256
RC4-SHA - HIGH - !aNULL
!eNULL - !EXPORT - !DES
!3DES - !MD5 - !PSK;
-----------------------------------------------------------------------------------------------
TCPIP PORTS Connection Sec
0.0.0.0 / 25 / SMTP - None
0.0.0.0 / 110 / POP3 - None
0.0.0.0 / 143 / IMAP - None
0.0.0.0 / 587 / SMTP - None
-----------------------------------------------------------------------------------------------
LOGGING Logging Enabled: True
Paths:-
Current: C:\Program Files (x86)\hMailServer\Logs\hmailserver_2022-06-22.log
Error: C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2022-06-22.log - !! ERRORS PRESENT !!
Event: C:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log - Not present
Awstats: C:\Program Files (x86)\hMailServer\Logs\hmailserver_awstats.log
APPLICATION - .
SMTP - True
POP3 - True
IMAP - .
TCPIP - True
DEBUG - .
AWSTATS - True
-----------------------------------------------------------------------------------------------
SYSTEM TESTS
Database type: MSSQL
IPv6 support is available in operating system.
Backup directory C:\Backup Hmail is writable.
Relative message paths are stored in the database for all messages.
-----------------------------------------------------------------------------------------------
HMAILSERVER.INI
[Directories]
Program folder: C:\Program Files (x86)\hMailServer\
Database folder:
Data folder: C:\Program Files (x86)\hMailServer\Data
Log folder: C:\Program Files (x86)\hMailServer\Logs
Temp folder: C:\Program Files (x86)\hMailServer\Temp
Event folder: C:\Program Files (x86)\hMailServer\Events
[Database]
Type= MSSQL
Username= sa
PasswordEncryption=1
Port= 0
Server= LOCALHOST\SQLEXPRESS
Internal= 0
-----------------------------------------------------------------------------------------------
Re: Change body of mail before sending
WOW, lots of IP ranges there
Those with priority of 0 are useless, as the internet range at priority 10 will override
What is the contents of this file
C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2022-06-22.log
Those with priority of 0 are useless, as the internet range at priority 10 will override
What is the contents of this file
C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2022-06-22.log
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation
-
- New user
- Posts: 5
- Joined: 2022-06-21 13:28
Re: Change body of mail before sending
"ERROR" 3232 "2022-06-22 06:49:33.975" "Severity: 3 (Medium), Code: HM5007, Source: SMTPDeliverer::DeliverMessage(), Description: Message 11025916 could not be delivered. No remaining recipients. File: C:\Program Files (x86)\hMailServer\Data\{CEA250E5-DD85-49FD-B4A1-CC7C3EEA849F}.eml"
"ERROR" 11636 "2022-06-22 07:07:09.140" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 7052 "2022-06-22 07:11:29.295" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 7052 "2022-06-22 07:12:24.422" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11352 "2022-06-22 07:29:02.205" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 11352 "2022-06-22 07:29:08.344" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 9856 "2022-06-22 07:50:10.798" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9856 "2022-06-22 07:53:27.287" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9484 "2022-06-22 07:54:21.041" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 4508 "2022-06-22 08:16:05.276" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9648 "2022-06-22 08:22:18.695" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 4508 "2022-06-22 08:22:22.414" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 11352 "2022-06-22 08:22:50.306" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9648 "2022-06-22 08:30:58.731" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 11352 "2022-06-22 08:49:39.507" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 4508 "2022-06-22 08:52:52.202" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 8280 "2022-06-22 09:01:16.711" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 10256 "2022-06-22 09:04:00.091" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 964 "2022-06-22 09:05:08.174" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10256 "2022-06-22 09:05:11.424" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 2996 "2022-06-22 09:10:38.574" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11088 "2022-06-22 09:11:23.482" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 9484 "2022-06-22 09:11:37.794" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 8280 "2022-06-22 09:20:18.777" "Severity: 3 (Medium), Code: HM5064, Source: RuleApplier::ApplyAction_Forward, Description: Could not forward message. Maximum rule loop count reached."
"ERROR" 4508 "2022-06-22 09:20:22.324" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 10332 "2022-06-22 09:20:44.622" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10332 "2022-06-22 09:20:45.888" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10332 "2022-06-22 09:21:40.811" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10256 "2022-06-22 09:21:42.250" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10332 "2022-06-22 09:25:56.410" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10164 "2022-06-22 09:26:52.285" "Severity: 3 (Medium), Code: HM5064, Source: RuleApplier::ApplyAction_Forward, Description: Could not forward message. Maximum rule loop count reached."
"ERROR" 10164 "2022-06-22 09:29:09.824" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 2996 "2022-06-22 09:56:40.098" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11636 "2022-06-22 10:13:33.515" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 10640 "2022-06-22 10:16:50.928" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11636 "2022-06-22 07:07:09.140" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 7052 "2022-06-22 07:11:29.295" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 7052 "2022-06-22 07:12:24.422" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11352 "2022-06-22 07:29:02.205" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 11352 "2022-06-22 07:29:08.344" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 9856 "2022-06-22 07:50:10.798" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9856 "2022-06-22 07:53:27.287" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9484 "2022-06-22 07:54:21.041" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 4508 "2022-06-22 08:16:05.276" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9648 "2022-06-22 08:22:18.695" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 4508 "2022-06-22 08:22:22.414" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 11352 "2022-06-22 08:22:50.306" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 9648 "2022-06-22 08:30:58.731" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 11352 "2022-06-22 08:49:39.507" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 4508 "2022-06-22 08:52:52.202" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 8280 "2022-06-22 09:01:16.711" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 10256 "2022-06-22 09:04:00.091" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 964 "2022-06-22 09:05:08.174" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10256 "2022-06-22 09:05:11.424" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 2996 "2022-06-22 09:10:38.574" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11088 "2022-06-22 09:11:23.482" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 9484 "2022-06-22 09:11:37.794" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 8280 "2022-06-22 09:20:18.777" "Severity: 3 (Medium), Code: HM5064, Source: RuleApplier::ApplyAction_Forward, Description: Could not forward message. Maximum rule loop count reached."
"ERROR" 4508 "2022-06-22 09:20:22.324" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 10332 "2022-06-22 09:20:44.622" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10332 "2022-06-22 09:20:45.888" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10332 "2022-06-22 09:21:40.811" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10256 "2022-06-22 09:21:42.250" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10332 "2022-06-22 09:25:56.410" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 10164 "2022-06-22 09:26:52.285" "Severity: 3 (Medium), Code: HM5064, Source: RuleApplier::ApplyAction_Forward, Description: Could not forward message. Maximum rule loop count reached."
"ERROR" 10164 "2022-06-22 09:29:09.824" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01C2 - Description: Wrong number of arguments or invalid property assignment: 'AppendBodyPayroll' - Line: 396 Column: 0 - Code: (null)"
"ERROR" 2996 "2022-06-22 09:56:40.098" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 11636 "2022-06-22 10:13:33.515" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
"ERROR" 10640 "2022-06-22 10:16:50.928" "Severity: 3 (Medium), Code: HM4334, Source: SMTPDeliverer::_ApplyForwarding, Description: Could not forward message since target address as same as account address."
- jimimaseye
- Moderator
- Posts: 9493
- Joined: 2011-09-08 17:48
Re: Change body of mail before sending
I think in your evenhandler script,
should beSub AppendBody (oMessage)
(take the space out).Sub AppendBody(oMessage)
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
Re: Change body of mail before sending
and is it 'AppendBody' or 'AppendBodyPayroll'?
if jimimaseye's fix doesn't solve, please show the ten or so lines of your eventhandlers VBS on each side of line 396, with line numbering please
if jimimaseye's fix doesn't solve, please show the ten or so lines of your eventhandlers VBS on each side of line 396, with line numbering please
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation
-
- New user
- Posts: 5
- Joined: 2022-06-21 13:28
Re: Change body of mail before sending
Hi
The issue has been sorted
Thanks for the help
The issue has been sorted
Thanks for the help
- jimimaseye
- Moderator
- Posts: 9493
- Joined: 2011-09-08 17:48
Re: Change body of mail before sending
How?
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829