Been running 5.6.8 for a long time now. Switched off TLS 1.0 and 1.1 last year.
Search found 4167 matches
- 2021-02-24 18:05
- Forum: General discussions
- Topic: Understanding the SSL/TLS ciphers list
- Replies: 18
- Views: 7797
- 2021-02-24 17:46
- Forum: General discussions
- Topic: Understanding the SSL/TLS ciphers list
- Replies: 18
- Views: 7797
Re: Understanding the SSL/TLS ciphers list
I don't have enough traffic to justify large scripts 
With the database my data is always updated and I can simply do a query from SQLyog
Someone like @palinka would wrap a webpage around it

With the database my data is always updated and I can simply do a query from SQLyog

Someone like @palinka would wrap a webpage around it

- 2021-02-24 17:23
- Forum: General discussions
- Topic: Understanding the SSL/TLS ciphers list
- Replies: 18
- Views: 7797
Re: Understanding the SSL/TLS ciphers list
You got me curious ... I do log TLS in some other logs but it's a pain to extract... Option Explicit '****************************************************************************************************************************** '********** Configuration ********** '*********************************...
- 2021-02-24 15:59
- Forum: Scripting
- Topic: VB.NET mit hMailServer
- Replies: 8
- Views: 154
Re: VB.NET mit hMailServer
"oMessage" is a reserved word. You CAN use it but eventually you will need it for something else :wink: Also, there is NO built in Shell object (WShell) in the script engine that hMailServer is using. You will have to declare it yourself. Check the scripting section of the forum, there are hundreds ...
- 2021-02-24 15:52
- Forum: General discussions
- Topic: Mail collector from the provider's external server.
- Replies: 3
- Views: 68
Re: Mail collector from the provider's external server.
OK. But these e-mails are spam or addressed to users that have been deleted. These emails must be deleted, and the sender must be informed about the delivery error. If it's not right to do it using an external account, then tell us how to do it right? If you respond you will be generating backscatt...
- 2021-02-24 15:23
- Forum: SpamAssassin implementation discussions
- Topic: Max. size to send to Spamassassin
- Replies: 34
- Views: 208
Re: Max. size to send to Spamassassin
I just spent half an hour on Google... The only result on searching for attachment size with malware was a document from 2010 by Sophos stating that they have seen up to (note: UP TO) 350 kB ... My view is let SpamAssassin be SPAMassassin and perhaps focus on ANTIvirus and ANTImalware protection eit...
- 2021-02-23 16:32
- Forum: General discussions
- Topic: Running a Python Script from a Rule or Server Event?
- Replies: 12
- Views: 129
Re: Running a Python Script from a Rule or Server Event?
Well... I created a rule in my postmaster account to "run function pyTest" if received message > 0 ... Python is NOT in my PATH environment variable. Python 2.7.13 win32 on Windows Server 2003 R2 ... Sub pyTest(oMessage) ' Python script: "hello_world.py" ' import optparse ' parser = optparse.OptionP...
- 2021-02-22 23:29
- Forum: SpamAssassin implementation discussions
- Topic: SA temp files picked up by windows defender virus
- Replies: 10
- Views: 84
- 2021-02-22 23:22
- Forum: General discussions
- Topic: eml files are not created
- Replies: 13
- Views: 120
Re: eml files are not created
If we forward emails to user account, its going to send email again to receiver with FW: in subject. And i am not sending email to single account. I am using one hamilserver account as from address and trying to send emails to different/multiple user accounts programmatically. I think forward optio...
- 2021-02-22 21:26
- Forum: General discussions
- Topic: Running a Python Script from a Rule or Server Event?
- Replies: 12
- Views: 129
Re: Running a Python Script from a Rule or Server Event?
Even though there is no error it would appear that hMailServer hates oShell I guess. Fails: EventLog.Write("Running script on: " & chr(34) & oMessage.Filename & chr(34)) Cmd = "cmd /c c:\C\RunPy.bat " & chr(34) & oMessage.Filename & chr(34) EventLog.Write("Command: " & Cmd) Dim oShell Set oShell = ...
- 2021-02-22 17:09
- Forum: General discussions
- Topic: Running a Python Script from a Rule or Server Event?
- Replies: 12
- Views: 129
- 2021-02-22 00:04
- Forum: General discussions
- Topic: Running a Python Script from a Rule or Server Event?
- Replies: 12
- Views: 129
Re: Running a Python Script from a Rule or Server Event?
I tried to use regex in the script file to do this but its not running on <img> tags in tables for some reason. So I was going to let Python handle this and have a script waiting to go. I added a rule to run a function to run it but its not being launched. Not sure how I would log whats going on he...
- 2021-02-21 01:06
- Forum: General discussions
- Topic: Mail collector from the provider's external server.
- Replies: 3
- Views: 68
Re: Mail collector from the provider's external server.
Hello. I am new to using a hMailServer. Tell us how to properly configure the mail collector from the provider's external server. I have created an account postmaster@domain.com. In the "external account" tab, I entered the pop3 parameters of our hoster and "deliver to recipients in MIME headers"....
- 2021-02-19 23:00
- Forum: General discussions
- Topic: Parse Received Headers
- Replies: 12
- Views: 110
Re: Parse Received Headers
I currently have 14 in SPAM... None escaped ;-) Not receiving SPAM will in the long run make learning harder... Return-Path: leconganh1972@gmail.com Delivered-To: spam@acme.inc X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on datacenter.acme.inc X-Spam-Flag: YES X-Spam-Level: ********* X-S...
- 2021-02-19 13:53
- Forum: General discussions
- Topic: help setup MX record, not receiving incoming mail
- Replies: 11
- Views: 197
Re: help setup MX record, not receiving incoming mail
Which domain is yours and which is your DDNS provider? www.bimpra.digital expired on 2021-01-15 13:24:38 One example could be ... to associate your IP with a hostname like: pavlino.ddns.net = 45.118.156.180 <== IP address assigned by DDNS hosting YOUR domain: bimpra.digital MX 10 pavlino.ddns.net ww...
- 2021-02-17 21:06
- Forum: General discussions
- Topic: hMailServer shows the welcome banner masked as ***** to external networks
- Replies: 5
- Views: 84
Re: hMailServer shows the welcome banner masked as ***** to external networks
Any masking is done by external influences and not by hmailserver. You will see this by looking in hmailserver logs (it sends full text and doesn't mask is). Check av or firewall interventions by the network or client being used. [Entered by mobile. Excuse my spelling.] Thanks for the tip! It does ...
- 2021-02-17 01:13
- Forum: General discussions
- Topic: Long time for 250 Queued
- Replies: 15
- Views: 171
Re: Long time for 250 Queued
https://superuser.com/questions/923688/data-retransmission-and-wsaeconnaborted-10053-socket-error I force close some connections in my scripting so I also see 10054 in my debug logs... WSAECONNRESET 10054 Connection reset by peer. An existing connection was forcibly closed by the remote host. This ...
- 2021-02-16 19:30
- Forum: General discussions
- Topic: Long time for 250 Queued
- Replies: 15
- Views: 171
Re: Long time for 250 Queued
As a last resort, I disabled the virtual network adapter attached to the load balancer. This is not a good way to operate, but at least it got rid of those 220 ESMTP requests, now the messages depart very quickly. I don't know why this changed things, as the requests were already bypassing the load...
- 2021-02-16 16:44
- Forum: General discussions
- Topic: Location of forwarding delay setting in source
- Replies: 15
- Views: 181
Re: Location of forwarding delay setting in source
Which reminds me of another fun project we did with prioritizing emails in the delivery queue.
https://www.hmailserver.com/forum/viewt ... 15#p211615

https://www.hmailserver.com/forum/viewt ... 15#p211615
- 2021-02-16 07:38
- Forum: General discussions
- Topic: Location of forwarding delay setting in source
- Replies: 15
- Views: 181
Re: Location of forwarding delay setting in source
Try rename PASSWORD to MyPASSWORD in your script... That worked! Holy crap. :lol: I mean, there was no error, but it didn't actually send the message. :roll: But I got it working. :lol: Sub OnExternalAccountDownload(oFetchAccount, oMessage, sRemoteUID) Dim extRecip, extFetchAccount, hMSFetchAccount...
- 2021-02-16 01:34
- Forum: General discussions
- Topic: Location of forwarding delay setting in source
- Replies: 15
- Views: 181
Re: Location of forwarding delay setting in source
I tried this, but I'm getting an error. Sub OnExternalAccountDownload(oFetchAccount, oMessage, sRemoteUID) Dim extRecip, extFetchAccount, hMSFetchAccount extFetchAccount = "someaccount@gmail.com" '<-- external account from which mail is POP3 downloaded hMSFetchAccount = "me@mydomain.tld" '<-- hMail...
- 2021-02-12 14:51
- Forum: General discussions
- Topic: Can i do this with HMailServer?
- Replies: 6
- Views: 144
Re: Can i do this with HMailServer?
They have a probe (I had to whitelist it in my IDS system) that randomly check recipient servers of known email addresses if recipient is STARTTLS capable. If NOT STARTTLS capable they will send notification email with link to their secure webmail where you can read the email. When you sign-up with...
- 2021-02-12 13:56
- Forum: General discussions
- Topic: Can i do this with HMailServer?
- Replies: 6
- Views: 144
Re: Can i do this with HMailServer?
I have downloaded hMailserver source code.and try to customize as per my requirment. requirment : as per my knowledge if recipient server support STARTLS then it Sent STARTTLS command .i need to stop actual mail sending process to recipient if recipient server not send me STARTTLS command and send ...
- 2021-02-12 13:39
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
I think I must have already asked the ISP to change the RDNS (it was the MX2 ipaddress) My local host name is [FQDN] my 1st ISP connection has a RDNS of [FQDN] My 2nd ISP connection has a RDNS of mx2.[FQDN] i can't have the same RDNS for two IP addresses can I?? You CAN have multiple IP's with the ...
- 2021-02-12 03:25
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
Your reply also ended in my spam folder I have 2 public IPv4 addresses, perhaps this is the cause (both are MX records for my domain) This >> https://serverfault.com/questions/997288/amavis-spamassassin-forged-spf-helo-and-spf-helo-pass suggests that HELO_NOT_RDNS is one of the sub rules, and depen...
- 2021-02-11 14:19
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
Can I PM you my complete eventhandlers.vbs for your perusal..? currently 113 Kb in size Most recent mini-dump 17th Jan Most recent auto-restart about an hour ago Got your email... SpamAssassin put you in my SPAM folder :mrgreen: This I don't really get ... * -0.0 SPF_HELO_PASS SPF: HELO matches SPF...
- 2021-02-11 09:15
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
Anyways, with scripting I have previously used a lot of "eventlog.Write()" and when they stop there is a bug in the script ;-) That also gives you a hint about where in the script it occur. I write lots of logs, and my server is pretty busy (Over a thousand messages per day) Can I PM you my complet...
- 2021-02-11 02:10
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
- 2021-02-11 02:01
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
You are probably correct Any ideas on how to read the minidumps... I think Dravion once wrote something here. For VS2013 I believe you can get a stand-alone application of sorts... Anyways, with scripting I have previously used a lot of "eventlog.Write()" and when they stop there is a bug in the sc...
- 2021-02-11 00:40
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
I'm not using 5.7 but 5.6.8 and when I was trying to access DCOM on my BackupMX from Eventhandlers.vbs on my Primary server I was getting truckloads of minidumps. Same version on both machine execpt one is WS2K3 and other is WS2K19. 99% sure your minidumps are script related and you are doing someth...
- 2021-02-10 18:56
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
Actually - I considered that because I remember that happening before. You once correctly pointed that out to me. However, I looked all over and could not find any script using dcom at the time of the backup. I will quadruple check, though. hMailAdmin does it too :mrgreen: hMailserver reference dat...
- 2021-02-10 18:35
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
Actually - I considered that because I remember that happening before. You once correctly pointed that out to me. However, I looked all over and could not find any script using dcom at the time of the backup. I will quadruple check, though. hMailAdmin does it too :mrgreen: hMailserver reference dat...
- 2021-02-10 18:31
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
$ServiceName = 'Serenade' $arrService = Get-Service -Name $ServiceName while ($arrService.Status -ne 'Running') { Start-Service $ServiceName write-host $arrService.status write-host 'Service starting' Start-Sleep -seconds 60 $arrService.Refresh() if ($arrService.Status -eq 'Running') { Write-Host '...
- 2021-02-10 18:29
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
Public Function IsServiceStop(ByVal serviceName) On Error Resume Next Dim objServices, service Set oWmiService = GetObject("winmgmts:\\.\root\cimv2") Set objServices = oWmiService.ExecQuery("Select * from Win32_Service where Name='" & serviceName & "'") For Each service In objServices IsServiceStop...
- 2021-02-10 18:05
- Forum: General discussions
- Topic: hMailServer Service spontaeously starting after shutdown
- Replies: 37
- Views: 626
Re: hMailServer Service spontaeously starting after shutdown
My backup script shuts down hmailserver service in order to perform the data folder backup, cycle logs, etc. My shutdown/restart routine has a bunch of checks built in to let me know that the service is actually shut down/running. Since February 4th, hmailserver service shuts down fine, but for som...
- 2021-02-10 18:01
- Forum: General discussions
- Topic: Using hMailServer for a listserv
- Replies: 3
- Views: 124
Re: Using hMailServer for a listserv
Hello, we're considering using hMailServer for our listservs (the software by L-Soft) - from what I've read hMailServer should be able to handle the expected traffic but as a general question I wonder if there are some user who can share some tips or things to look out for when setting it up. Thank...
- 2021-02-10 12:19
- Forum: Development & alpha discussions
- Topic: Manual Adding New IP Range To Ban IP Address Is Displayed Red And Included With Autoban Entries
- Replies: 3
- Views: 190
Re: Manual Adding New IP Range To Ban IP Address Is Displayed Red And Included With Autoban Entries
No bug, it is by design and 5.4.2 was the same. there has been no changes to the IP Range code in years.
- 2021-02-09 23:22
- Forum: General discussions
- Topic: Allow empty sender address
- Replies: 5
- Views: 155
Re: Allow empty sender address
For the Global Rule, am I looking for the following header: Return-Path: <> Nope, "Return-Path" is not available to rules. It is written to the headers later. As it is referred to as "empty sender" I would presume oMessage.FromAddress = "" and there is no header you can use in a rule. You can add t...
- 2021-02-09 19:10
- Forum: General discussions
- Topic: Block specific incoming email ...
- Replies: 13
- Views: 439
Re: Block specific incoming email ...
Datafile is not created until AFTER (!) OnSMTPData() You sure about that? The following properties are the only ones populated at the point of OnSMTPData firing: oMessage.Charset eg, utf-8 oMessage.Filename eg, e:\hMailData\{88ECA44E-D65A-4C8C-9797-EA1C3639D723}.eml oMessage.FromAddress eg, user@do...
- 2021-02-09 18:48
- Forum: General discussions
- Topic: Block specific incoming email ...
- Replies: 13
- Views: 439
Re: Block specific incoming email ...
Exactly. So... back to the OP's request to reject before downloading the message... I guess *technically* the message hasn't been downloaded at OnSMTPData, however, (I think) the physical file has been created and the database now already contains metadata. So rejection at this point requires delet...
- 2021-02-09 18:05
- Forum: General discussions
- Topic: Block specific incoming email ...
- Replies: 13
- Views: 439
Re: Block specific incoming email ...
oMessage.FromAddress AKA SMTP "MAIL FROM:" is available for OnSMTPData() If I am not completely mistaken then ... ** OnClientConnect() "SENT: 220 mx.acme.inc ESMTP" "RECEIVED: EHLO ccm233.constantcontact.com" "SENT: 250-mx.acme.inc[nl]250-SIZE[nl]250 STARTTLS" "RECEIVED: STARTTLS" "SENT: 220 Ready t...
- 2021-02-09 17:10
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
I do all checks in real-time. No logfile scraping and I have made my own very simple "REST" like API between the two servers. I found that linking DCOM objects on BOTH servers - from ONE server - is NOT an open-and-shut procedure. Yes, I only publish ports 993 (IMAPS) and 465 (SUBMISSIONS) for clien...
- 2021-02-09 03:52
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
I only allow port 25, 465 and 993 through my firewall - on my primary server. My secondary server (BackupMX) publish all ports but no local domains/accounts defined. Eventhandler harvest all requests to "client" ports and update my AutoBan lists in both servers with a 3 month ban. 8) Hmmmm... I'm g...
- 2021-02-09 02:00
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
I only allow port 25, 465 and 993 through my firewall - on my primary server.
My secondary server (BackupMX) publish all ports but no local domains/accounts defined. Eventhandler harvest all requests to "client" ports and update my AutoBan lists in both servers with a 3 month ban.
My secondary server (BackupMX) publish all ports but no local domains/accounts defined. Eventhandler harvest all requests to "client" ports and update my AutoBan lists in both servers with a 3 month ban.

- 2021-02-08 13:49
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
@SorenR As a matter of interest, what does your 'TCP/IP ports' settings look like? That's simple. Besides ports 465, 993 and 995 being "SSL/TLS" all other ports are "STARTTLS Optional". If you are referring to me pushing "SUBMISSION" and not "SMTP" for any ports using the "SMTP Prototocol" ?? I hav...
- 2021-02-08 05:05
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
Why do I feel the world is moving toward a mix of 1984 run by Facebook/Twitter and Demolition Man??
- 2021-02-07 19:04
- Forum: General discussions
- Topic: Can i do this with HMailServer?
- Replies: 9
- Views: 385
Re: Can i do this with HMailServer?
Hmm... This will ONLY work if clients AUTHENTICATE with server to send emails !! Add to Eventhandlers.vbs Sub SendTLSFail(oMessage) Dim strFromAddress, strFilename strFromAddress = oMessage.FromAddress ' ' Return mail with message ' With CreateObject("hMailServer.Message") strFilename = .Filename Wi...
- 2021-02-07 16:02
- Forum: General discussions
- Topic: Can i do this with HMailServer?
- Replies: 9
- Views: 385
Re: Can i do this with HMailServer?
Just remembered this ... https://www.hmailserver.com/forum/viewtopic.php?p=224751#p224751 And https://www.hmailserver.com/forum/viewtopic.php?p=225162#p225162 The "Received" header give it all away. RegEx "(?i:^.*(ESMTPSA|ESMTPA).*$)" means AUTHENTICATED with OPTIONAL TLS (ESMTP S A means TLS)
- 2021-02-07 13:23
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
[RANT] It is really amazing that allthough the RFC's describe everything in detail, people do and write guides that only support their own little world. And when everything go wrong it is never their fault. If I want to know what is the law (in life and society) I ask the law books, never Facebook, ...
- 2021-02-07 02:44
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
You can always check port numbers here: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml And Yes... TCP port 465 is also URD "URL Rendezvous Directory for SSM" I presume most of the xxxS ports used on mailserver will be re-used elsewhere as the world is mo...
- 2021-02-07 00:07
- Forum: User-submitted tutorials
- Topic: SSL Certificates in HMailServer version 5.6.7
- Replies: 16
- Views: 649
Re: SSL Certificates in HMailServer version 5.6.7
A few technical errors This is industry standard 0.0.0.0/25 = SMTP via StartTLS Optional 0.0.0.0/110 = POP3 via StartTLS Required 0.0.0.0/143 = IMAP via StartTLS Required 0.0.0.0/465 = SMTP via SSL/TLS 0,0,0,0/587 =SMTP via StartTLS REQUIRED 0.0.0.0/993 = IMAP via SSL/TLS 0.0.0.0/995 = POP3 via SSL...
- 2021-02-06 18:16
- Forum: General discussions
- Topic: hMailserver cant send mail to one specific mailadress :-(
- Replies: 13
- Views: 418
Re: hMailserver cant send mail to one specific mailadress :-(
Hello all, Thank you so much for answering ... :-) But I'm a bit confused for the moment :-( Is there something I have missed in my DNS setup? Regards Michael SSD VPS own the range 91.210.57.0 - 91.210.59.255 so it is their problem. You don't own your IP address - you only rent it and that is why y...
- 2021-02-06 18:05
- Forum: General discussions
- Topic: hMailserver cant send mail to one specific mailadress :-(
- Replies: 13
- Views: 418
Re: hMailserver cant send mail to one specific mailadress :-(
Do I have to setup a Reverse DNS You don't haaavvvve to. And without it, you're able to send to most servers. Email is reputation based. Anything you can do to enhance your reputation is only a good thing. For what it's worth, i score, but don't reject, no rdns. It's still knocking off points for r...
- 2021-02-06 17:45
- Forum: General discussions
- Topic: hMailserver cant send mail to one specific mailadress :-(
- Replies: 13
- Views: 418
Re: hMailserver cant send mail to one specific mailadress :-(
ask your ISP (Adeo??) to setup an rDNS for your IP nr. pointing to your hostname. What is rDnS? Is something like Reverse DNS?? Do I have to setup a Reverse DNS - and if so: Is it the mail domain? All you need to do is call/email your hosting company and request a rDNS or PTR on your IP address. Th...
- 2021-02-06 17:30
- Forum: General discussions
- Topic: hMailserver cant send mail to one specific mailadress :-(
- Replies: 13
- Views: 418
Re: hMailserver cant send mail to one specific mailadress :-(
It's your hosting. They forgot to set a rDNS or PTR on your IP address.
Had the same issue with mine (fibia.dk) but they fixed it eventually.
Had the same issue with mine (fibia.dk) but they fixed it eventually.
- 2021-02-05 22:07
- Forum: Scripting
- Topic: Rewrite email body contents where the IMG tag has a src thats HTTP
- Replies: 29
- Views: 1019
- 2021-02-05 20:59
- Forum: Scripting
- Topic: Rewrite email body contents where the IMG tag has a src thats HTTP
- Replies: 29
- Views: 1019
Re: Rewrite email body contents where the IMG tag has a src thats HTTP
https://regex101.com/r/prabNV/1 Sub IMGProxy(oMessage) If oMessage.HasBodyType("text/html") Then With CreateObject("VBScript.RegExp") .Pattern = "(<img.*src=.*)(http:\/\/.*>)" .Global = True .MultiLine = True .IgnoreCase = True oMessage.HTMLBody = .Replace(oMessage.HTMLBody, "$1https://myproxy.loca...
- 2021-02-05 20:08
- Forum: Scripting
- Topic: Rewrite email body contents where the IMG tag has a src thats HTTP
- Replies: 29
- Views: 1019
Re: Rewrite email body contents where the IMG tag has a src thats HTTP
ARRGGG... Fcuk RegEx! <img ng-if=3D"col.img.source !=3D 'url'" border=3D"0" hspace=3D"0" vspace=3D"0" width=3D"590" class=3D"rnb-header-img" alt=3D"" style=3D"display:block; float:left; border-radius: 0px; " src=3D"http://4i885.img.ag.d.sendibm3.com/im/2650205/70b537ff20131fe6259a99db7573b489ebf294f...
- 2021-02-05 20:01
- Forum: Scripting
- Topic: Rewrite email body contents where the IMG tag has a src thats HTTP
- Replies: 29
- Views: 1019
Re: Rewrite email body contents where the IMG tag has a src thats HTTP
For oMessage.HTMLBody ...
This will only target "<img" not .jpg or .gif files.
This will only target "<img" not .jpg or .gif files.
Code: Select all
.Pattern = "((?:(?:<img)(?:.*)(?:src=" & Chr(34) & ")))(http:\/\/\S+" & Chr(34) & ">)"
oMessage.HTMLBody = .Replace(oMessage.HTMLBody, "$1" & MyPROXYurl & "$2")
- 2021-02-05 18:58
- Forum: Scripting
- Topic: Rewrite email body contents where the IMG tag has a src thats HTTP
- Replies: 29
- Views: 1019
Re: Rewrite email body contents where the IMG tag has a src thats HTTP
Ok so with the criteria its running and is ok so far. Any finetuning is always appreciated. I did notice one issue due to how its coded so far. Its missing this img tag: <img alt="" width="1" height="1" src="http://cl.S4.exct.net/open.aspx?ffcb10-fe8b1c777265057571-fdf113757066017d7012727c-fe9c1570...