Search found 44 matches

by sergiortc
2020-03-29 17:51
Forum: Scripting
Topic: Copy a Rule from one user to another
Replies: 4
Views: 907

Re: Copy a Rule from one user to another

Use a com object script instead. Achieves the same thing without worrying about whether you'll screw up the database. Once you get it setup, you can run it for as many users as you want. Look here for example. The thread delved into a weird flame fest, but its still full of very useful information....
by sergiortc
2020-03-29 17:50
Forum: Scripting
Topic: Copy a Rule from one user to another
Replies: 4
Views: 907

Re: Copy a Rule from one user to another

You're playing with fire by doing things directly in the database (we don't support or recommend it) but I understand why you would want to. It seems you have an understanding on piecing together the elements in the database so my advice is to try it. You may need to stop and restart the service fo...
by sergiortc
2020-03-29 07:41
Forum: Scripting
Topic: Copy a Rule from one user to another
Replies: 4
Views: 907

Copy a Rule from one user to another

I am using SQL Server Compact for my hMailServer instalation. Let's say I have a rule called "spam" that applies to user John Doe. I want to copy that rule "spam" to user Jane Defoe. But I don't want to type one by one the criteria and actions for that rule. I opened my hMailServer.sdf file and... I...
by sergiortc
2020-02-15 16:18
Forum: General discussions
Topic: Message could not be delivered
Replies: 8
Views: 4235

Re: Message could not be delivered

Thank you.
I´ll do what I can to ensure dns works ok.
by sergiortc
2020-02-14 15:31
Forum: General discussions
Topic: Message could not be delivered
Replies: 8
Views: 4235

Re: Message could not be delivered

I checked and the principal domain has 2 dns servers reported.
Any suggestion? Maybe change them for other 2?
Thanks in advance.
by sergiortc
2020-02-14 03:42
Forum: General discussions
Topic: Message could not be delivered
Replies: 8
Views: 4235

Re: Message could not be delivered

Run this and post the results: https://www.hmailserver.com/forum/viewtopic.php?f=20&t=30914 2020-02-13 Hmailserver: 5.6.6-B2383 DOMAINS "Domain1.com" - aexxxx.aexx Enabled: True SIGNATURE LIMITS DKIM ADVANCED Enabled: False Max size: 0 Enabled: False Max message size: 0 Plus addressing: False Max s...
by sergiortc
2020-02-14 03:18
Forum: General discussions
Topic: Message could not be delivered
Replies: 8
Views: 4235

Re: Message could not be delivered

My bad, version is 5.6.6-B2383,
Thank you for the call.
by sergiortc
2020-02-13 23:07
Forum: General discussions
Topic: Message could not be delivered
Replies: 8
Views: 4235

Message could not be delivered

I have hMailserver version 6.6 in a windows 2012R2 box in godaddy.com It's been working just fine since August 2016. Last week I began having problems delivering some mail. Some mails is delivered and some is not. hMailServer sends all email to a relay server in godaddy. I asked godaddy's support to...
by sergiortc
2020-02-13 00:33
Forum: General discussions
Topic: hMailServer Log Reading Guidelines
Replies: 17
Views: 8485

Re:

Almost right. For SMTP/POP3/IMAP, it's: "SOURCE" ThreadID SessionID "Date Time" "RemoteIP" "SENT/RECEIVED: Conversation text" A single TCP/IP session can be handled by multiple different worker threads. A worker thread only handles a single command from a client and then does something else (it may...
by sergiortc
2018-05-03 19:39
Forum: General discussions
Topic: Mail Filter Helper
Replies: 0
Views: 6481

Mail Filter Helper

MAIL FILTER HELPER It is a program that Copies all detected spam emails to a user defined folder for a given hMailServer installation. Reads the copied spam emails. Extracts for each email the following data: Sender Recipient Subject Size in Kilobytes Spam Score assigned by Spam Assassin Spam Score ...
by sergiortc
2018-04-27 18:05
Forum: General discussions
Topic: External Application to Register Spam
Replies: 7
Views: 4205

Re: External Application to Register Spam

I created the zip file, added to it the program source code, plus the documentation. It measures 5.603 KB.

When I tried to upload, it gave me the same error.
Untitled.jpg
by sergiortc
2018-04-26 18:33
Forum: General discussions
Topic: External Application to Register Spam
Replies: 7
Views: 4205

Re: External Application to Register Spam

I tried before and I tried just now.

I receive the following error message when I try to attach the 5.277 KB .rar file.
Untitled.jpg
And when I try to attach the 191 KB .docx file , I receive an error message saying "invalid file extension"
by sergiortc
2018-04-24 20:54
Forum: General discussions
Topic: External Application to Register Spam
Replies: 7
Views: 4205

Re: External Application to Register Spam

I think I have ready a first version of the external spam handling app.

The source code plus the SQL statements are in a 5,277 KB rar file.

There is also a MAIL FILTER HELPER.docx file explaining how the app works (191 KB)

Can you instruct me how to upload the files?

Thanks,
by sergiortc
2018-02-26 19:28
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Re: Backup Not Working

The backup function is working again!

Thanks jimimaseye and mattg.
by sergiortc
2018-02-23 19:11
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Re: Backup Not Working

jimimaseye and mattg, I had problems accessing the SQL CE database outside hMailServer. Considering those problems and your kind warning, mattg, I decided to try jimimaseye suggestion. All except two emails were under an email address and all of them were received before the installation of hMailSer...
by sergiortc
2018-02-21 17:51
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Re: Backup Not Working

jimimaseye, I am using HMailServer 5.6.6-B2383.

mattg and jimimaseye,

I will try to rename the files to "{" & CurrentName & "}" & ".eml" and then do the same in the database and see if that solves the problem.

I'll let you know.
by sergiortc
2018-02-20 20:27
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Re: Backup Not Working

mattg and jimimaseye, I ran the query (SQL Compact): SELECT messagefilename, messageaccountid, messagefrom FROM hm_messages where messagefilename NOT LIKE '{%' and found 21 with names of the form B0001840923-nws1.eml (16 characters to the left of the dot) 436 with names of the form C0205C6E527BCB530...
by sergiortc
2018-02-06 19:40
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Re: Backup Not Working

mattg, I have not changed the data directory path. The backup was working with the current setup. I just realize I deleted a bunch of old backups (the zip files), and left just the last two. I use SQL Server Compact database. jimimaseye, yes all my data is under the data directory. I will check the ...
by sergiortc
2018-02-05 20:27
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Re: Backup Not Working

I went to Computer Management in my Windows 2012 R2 Standard Server I opened the Services console Selected the hMailServer service and stopped it. Opened the backup folder (C:\Users\Administrator\Documents\MailBackup) in windows explorer and moved two previous backups to another folder. The backup f...
by sergiortc
2018-02-05 19:11
Forum: General discussions
Topic: Backup Not Working
Replies: 13
Views: 2981

Backup Not Working

I am running hMailServer 5.6.6-B2383. My data directory has a size of 595 MB. I've been backing up Settings, Domains and Messages, compressed. Since February the first, the backup fails and the log file says: 2018-02-01 09:32:21.521 Backup started 2018-02-01 09:32:21.709 Loading backup settings......
by sergiortc
2017-11-02 17:29
Forum: SpamAssassin implementation discussions
Topic: White Listing Local Addresses
Replies: 8
Views: 3145

Re: White Listing Local Addresses

Thank you jimimaseye and mattg, I found the problem (at least I think so). I was not really restarting spamassasin, since this action needs elevated permissions. I have a .bat program to update SpamAssasin rules and I was running it as a user. The program stops-updates-starts Spamassasin. I saw the ...
by sergiortc
2017-11-01 18:54
Forum: SpamAssassin implementation discussions
Topic: White Listing Local Addresses
Replies: 8
Views: 3145

Re: White Listing Local Addresses

jimimaseye and mattg, I must be doing something wrong. I believe all emails sent to my all_spam_to email addresses, are still being scored by SpamAssasin. Maybe you remember I am writing an application to process spam email and store some data from them in a SQL Server database. If I query my databa...
by sergiortc
2017-10-31 01:32
Forum: SpamAssassin implementation discussions
Topic: White Listing Local Addresses
Replies: 8
Views: 3145

Re: White Listing Local Addresses

Thank you jimimaseye and mattg, Excuse me if I don't understand you completely. English is not my native tongue. What I want is all email sent to a specific account, let's say me@me.com, to reach this specific account. I don't want spamassasin to score any email sent to this specific email address. ...
by sergiortc
2017-10-30 20:53
Forum: SpamAssassin implementation discussions
Topic: White Listing Local Addresses
Replies: 8
Views: 3145

White Listing Local Addresses

I have hMailServer and Smapassasin installed in a Windows 2012 R2 Server. I am trying to white list some local addresses so they don't get email blocked. I modified local.cf file under C:\Program Files\JAM Software\SpamAssassin for Windows\etc\spamassassin to add the addresses. So I have something l...
by sergiortc
2017-09-19 15:19
Forum: General discussions
Topic: External Application to Register Spam
Replies: 7
Views: 4205

Re: External Application to Register Spam

Thank you very much, mattg!
by sergiortc
2017-09-18 19:13
Forum: General discussions
Topic: External Application to Register Spam
Replies: 7
Views: 4205

External Application to Register Spam

Hi there, I am developing an application (vb.net) that will read all spam messages, extract from them FileName, DateReceived, Size(Kb), From, To, Subject, SpamAssassinScore and hMSSpamScore and insert a record for each spam email into a MS SQL database. Then the app will allow me to execute a query ...
by sergiortc
2017-09-08 17:43
Forum: General discussions
Topic: External antivirus generates lots of false-positives
Replies: 3
Views: 1295

Re: External antivirus generates lots of false-positives

Thank you, jimimaseye and SorenR, I found my problem was the sintax of the command line. I was using "%F" and it must be "%FILE%"". This syntax error caused al MS SCEPP scans to fail and the value 2 to be returned. You're right. I should not use the MS SCEPP, at least while they keep returning 2 for...
by sergiortc
2017-09-07 20:29
Forum: General discussions
Topic: External antivirus generates lots of false-positives
Replies: 3
Views: 1295

External antivirus generates lots of false-positives

In my Windows Server 2012 R2 I use, as antivirus, a stand alone installation of Microsoft System Center Endpoint Protection. I have the antivirus section of hMailServer configured like this: Antivirus Delete attachments (checked) Maximum Size = 0 ClamAV disabled ClamWind disabled External virus scan...
by sergiortc
2017-09-07 19:36
Forum: General discussions
Topic: Rule that forwards and then deletes the spam email
Replies: 7
Views: 1873

Re: Rule that forwards and then deletes the spam email

Gregory, My rule is built using the GUI. I just write it this way trying to make it readable. You can try adding the xhMailServer-Loop < 1 condition. This is the rule I use and it works just fine. IF X-Spam-Level contains ***** And xhMailServer-Loop < 1 THEN Forward email to spamcatch account delete...
by sergiortc
2017-09-07 19:33
Forum: General discussions
Topic: Rule that forwards and then deletes the spam email
Replies: 7
Views: 1873

Re: Rule that forwards and then deletes the spam email

Thank you, jimimaseye. You're right. It's xhMailServer-LoopCount. ;) . I see the forward and the delete happening in the log file, but the email never gets to my other account. I thought it may have been an issue with the other email address, but when I remove the delete action, I get the forwarded ...
by sergiortc
2017-09-07 19:31
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

Sorry, it's xhMailServer-LoopCount. My bad. Update on Rule to handle Spam. Since yesterday I had many cases of emails being applied my rule, even though they were not spam. The problem was the condition "IF field X-Spam-Status contains YES" If the X-Spam-Status was: X-Spam-Status: No, score=-1.9 req...
by sergiortc
2017-09-06 19:48
Forum: General discussions
Topic: Rule that forwards and then deletes the spam email
Replies: 7
Views: 1873

Re: Rule that forwards and then deletes the spam email

You can try adding the xhMailServer-Loop < 1 condition. This is the rule I use and it works just fine.

Code: Select all

IF X-Spam-Level contains *****
	And xhMailServer-Loop < 1
THEN
	Forward email to spamcatch account
	delete email
	Stop rule processing
by sergiortc
2017-09-06 19:06
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

Update on Rule to handle Spam. Since yesterday I had many cases of emails being applied my rule, even though they were not spam. The problem was the condition "IF field X-Spam-Status contains YES" If the X-Spam-Status was: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, The r...
by sergiortc
2017-08-22 18:33
Forum: General discussions
Topic: Windows 2012 R2 disabled performance counter
Replies: 9
Views: 2195

Re: Windows 2012 R2 disabled performance counter

mattg wrote:That really depends on the webserver used and the language that your pages are written in....
Normally I use IIS and vb script.
by sergiortc
2017-08-21 21:34
Forum: General discussions
Topic: Windows 2012 R2 disabled performance counter
Replies: 9
Views: 2195

Re: Windows 2012 R2 disabled performance counter

Thank you for the information jimimaseye.

Can you tell me where to find information about configuring www to use hms as smtp server?
by sergiortc
2017-08-19 21:53
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

I just wanted to update the rule in its final version. I am using just one. I have been testing it for two days and it seems to work just fine. Its final form is: IF field X-Spam-Status contains YES AND x-hMailServer-LoopCount < 1 THEN Forward email to CatchSpamAccount Delete email Stop rule process...
by sergiortc
2017-08-19 21:44
Forum: General discussions
Topic: Windows 2012 R2 disabled performance counter
Replies: 9
Views: 2195

Re: Windows 2012 R2 disabled performance counter

Thank you, mattg. I understand what you say, Windows SMTP has nothing to do with hMailServer. I am setting up a new Windows 2012 R2 server and I installed its SMTP service to use it for web pages. It seems the Windows service was the one generation thousands of error notifications, so I uninstalled ...
by sergiortc
2017-08-19 00:50
Forum: General discussions
Topic: Windows 2012 R2 disabled performance counter
Replies: 9
Views: 2195

Re: Windows 2012 R2 disabled performance counter

Thank you very much, jimimaseye!

I uninstalled the Windows SMTP service and the error messages disappeared.
I won't be using it for a while, so I'll deal with this problem later.

Thank you again.
by sergiortc
2017-08-19 00:10
Forum: General discussions
Topic: Windows 2012 R2 disabled performance counter
Replies: 9
Views: 2195

Windows 2012 R2 disabled performance counter

I am receiving, every second, error messages in the form: "Disabled performance counter data collection from the "SMTPRA" service because the performance counter library for that service has generated one or more errors. The errors that forced this action have been written to the application event l...
by sergiortc
2017-08-17 02:32
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

At the beginning I mentioned "If I send a spam-test email to any of my hMailServer accounts I don't receive it and I receive a message in the sender email account saying "Your message couldn't be delivered because the recipients email server suspected that your message was spam."" That was so becaus...
by sergiortc
2017-08-17 01:54
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

mattg, thank you, I'll use it (contains).

RvdH, thank you, I'll use your criteria instead of the To field.

I'll let you both now how it goes.
by sergiortc
2017-08-17 00:02
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

I don't understand why, but every spam email is being forwarded 5 times. it's as if the first rule is being ignored. The intended recipients are receiving the spam emails attached to an email notifying them they are suspected spam. I would like to avoid that the spam emails reach the intended recipi...
by sergiortc
2017-08-16 00:55
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Re: Rule to handle spam emails

Thank you for you fast answer, mattg and RvdH. It seems my rules are working. Maybe there was a delay in the forwarding. I don't have a good connection right now and can't analyze the content of the logs, but i received two spam messages in my catchspam account. Even one of them was accompanied with...
by sergiortc
2017-08-15 22:24
Forum: General discussions
Topic: Rule to handle spam emails
Replies: 13
Views: 3612

Rule to handle spam emails

I am new to hMailServer, please forgive me if I am asking the obvious. I have both hMailServer and SpamAssassin working. I can send/receive emails. If I send a spam-test email to any of my hMailServer accounts I don't receive it and I receive a message in the sender email account saying "Your messag...