Search found 13 matches

by adrianp
2019-04-16 03:58
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

Try two separate rules, rather than adding to the existing rule. Depends on what your rule does, it may actually make a copy of the message, and then delete one or the other not both. Enable debug logging, it will show which rules fire, and what actions are taken I didn't add to an existing rule. I...
by adrianp
2019-04-16 00:26
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

I modified the script to add a header to indicate that it's been copied. I then added a rule to delete emails with this custom header. I'm seeing the email still in the data folder with the custom header added so I know that part is working. But for some reason the rule didn't delete the email. I wo...
by adrianp
2019-04-03 14:56
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

File is saved as "{ <GUID> }.eml" so NO duplicates ... EVER Ok, it's working now with the code that doesn't try to access the ID property which seems isn't set at this stage. Regarding housekeeping, I see the original emails inside the Data\[DOMAIN NAME]\[ACCOUNT] folder. I need to delete any messa...
by adrianp
2019-04-03 14:37
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

Documents as in attachments? Does that have any impact in getting the EML file saved in a specified folder? I guess the question is do you want the email, or do you want the attachments saved to a set directory. I save attachments sent from fax servers to a specific directory, for 'pickup' in anoth...
by adrianp
2019-04-02 21:52
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

Since you took out the only code that can identify the recipient, how will you 112% know who the mail is for? The "To:" header can be faked just as easy as my name is "Elmer Fudd" <elmer.fudd@looney.tunes.inc> I'm not using hMAIL as it would typically be used, meaning it's not an email sender to em...
by adrianp
2019-04-02 21:49
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

Here's the contents of the complete file. ' Sub OnClientConnect(oClient) ' End Sub ' Sub OnSMTPData(oClient, oMessage) ' End Sub ' Sub OnAcceptMessage(oClient, oMessage) ' End Sub ' Sub OnDeliveryStart(oMessage) ' End Sub Sub OnDeliverMessage(oMessage) dim oApp, oEMLFile, FSO Set oApp = CreateObject...
by adrianp
2019-04-02 21:42
Forum: General discussions
Topic: Domains and Aliases
Replies: 2
Views: 1060

Re: Domains and Aliases

Yup, that was it, worked perfectly.

Thank you,
Adrian
by adrianp
2019-04-02 18:28
Forum: General discussions
Topic: Domains and Aliases
Replies: 2
Views: 1060

Domains and Aliases

How would I configure a domain and then a list of domains that it will accept for? I have a domain for example, myemailgateway.com. This is the domain that I have a certificate for. And it's configured as the MX record for several domains. In Microsoft SMTP, I have them all configured as Aliases.
by adrianp
2019-04-02 18:13
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

Since you took out the only code that can identify the recipient, how will you 112% know who the mail is for? The "To:" header can be faked just as easy as my name is "Elmer Fudd" <elmer.fudd@looney.tunes.inc> I'm not using hMAIL as it would typically be used, meaning it's not an email sender to em...
by adrianp
2019-04-02 18:09
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

mattg wrote:
2019-04-02 16:41
can you please include all of your eventhandlers.vbs, so that we can see which is line 22

Remember to remove your password
The code is in the default EventHandler. Line 22 is FSO.CopyFile(oMessage.filename, "D:\Data\Emails\drop\" & oMessage.id & ".eml")"
by adrianp
2019-04-02 16:01
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

For this service, only emails with a single recipient are supported. I took both examples and combined it to the following: Sub OnDeliverMessage(oMessage) dim oApp, oEMLFile, FSO Set oApp = CreateObject("hMailServer.Application") ' Give this script permission to access all ' hMailServer settings. Ca...
by adrianp
2019-04-01 14:21
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Re: Save all EML no users

mattg wrote:
2019-03-31 01:16
adrianp wrote:
2019-03-30 15:03
I'd like to have all emails that make it through saved to a single folder as an EML file.
That can't happen with hMailserver, unless you specifically script it
Yes, I figured as much, hence me posting in the Scripting forum.
by adrianp
2019-03-30 15:03
Forum: Scripting
Topic: Save all EML no users
Replies: 23
Views: 10770

Save all EML no users

I need to set up hMail as an SMTP gateway only, no users defined, only domains. It needs to receives all emails for the domains configured, still go through AV/Spam checks. I'd like to have all emails that make it through saved to a single folder as an EML file. For reference I'm currently using Mic...