Search found 33 matches
- 2020-06-25 16:13
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
Re: hMailCleaner (Compare hMaildatabase with files on disk)
I meant what is the difference between using your script to delete orphaned (non-DB) email files and using data directory synchroniser to delete orphaned (non-DB) emails? At the time I made the script I did not know about the database synchroniser. But I wanted to check the files before deleting so...
- 2020-06-23 00:04
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
Re: hMailCleaner (Compare hMaildatabase with files on disk)
Well in my case around 60% of the files where 0 bytes or near.
35% was replies from other servers sayimg user unknown and 5% genuine mails.
So by doing this I avoid 95% crap to be added
The 5% can be added by the dir sync tool.
35% was replies from other servers sayimg user unknown and 5% genuine mails.
So by doing this I avoid 95% crap to be added

The 5% can be added by the dir sync tool.
- 2020-06-22 11:57
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
Re: hMailCleaner (Compare hMaildatabase with files on disk) 21.06.2020 version
Hi all! It has been a while since I used this script and I have made a modification to ignore files from today. Also added a filter on files that are created today, since it *could* be a valid file that hasn't been included into the database yet. Added a progress while searching for files, it shows ...
- 2020-06-20 23:21
- Forum: User contributed hMailServer 5 scripts
- Topic: Backup (or export) all mails by year to selected destination and delete them (if you like)
- Replies: 1
- Views: 1561
Re: Backup (or export) all mails by year to selected destination and delete them (if you like) v1.1
Updated version handles a bug when the Messages objects get smaller while deleting.
Changelog:
Fix: Crash when z = count (right before moving to next directory)
Update: Now informs which folder and how many mails it will scan before it actually scans.
Changelog:
Fix: Crash when z = count (right before moving to next directory)
Update: Now informs which folder and how many mails it will scan before it actually scans.
- 2020-06-19 23:38
- Forum: User contributed hMailServer 5 scripts
- Topic: Backup (or export) all mails by year to selected destination and delete them (if you like)
- Replies: 1
- Views: 1561
Backup (or export) all mails by year to selected destination and delete them (if you like)
hMailserver has been steady for running for now 8 years and I have users with mails from 2012 that should probably been cleaned :) With over 400.000 mails on drive and database it is mature to be cleaned. What I wanted was: 1. Clean everything by given year, eg 2018 and older are copied & wiped 2. I...
- 2020-06-18 00:48
- Forum: User contributed hMailServer 5 scripts
- Topic: Sizereport for all users in all IMAP folders
- Replies: 0
- Views: 4119
Sizereport for all users in all IMAP folders
Script generates a report like this ------------------------------------------------- Account: name@domain.com Total used space: 52,457 MB Folders: INBOX: 1632 (49,17 MB) -Sent: 3 (0,00 MB) --ASubDir: 0 (0,00 MB) -Trash: 2 (0,01 MB) -Drafts: 0 (0,00 MB) Trash: 0 (0,00 MB) Sent: 1 (0,00 MB) Spam: 81 ...
- 2018-01-19 10:50
- Forum: General discussions
- Topic: Xeams and RSET during SMTP
- Replies: 7
- Views: 3077
Re: Xeams and RSET during SMTP
Message index is on, 226034 of 226034 messages it states. The size of several accounts is around 2-4GB. Primary I want the search in Rainloop ( https://www.rainloop.net/ ) to work, but I cannot define what kind of search it does. Other desktop clients like TB/Outlook works fine with their internal d...
- 2018-01-19 00:28
- Forum: General discussions
- Topic: Xeams and RSET during SMTP
- Replies: 7
- Views: 3077
Re: Xeams and RSET during SMTP
Great tip! Thanks mattg, a simple vm for handling spam could work fine...
My mailserver got the full threatment today, so I updated mysql+hmailserver+rainloop today.
I noticed tough that the searches always times out.
Is this a known "flaw", or are there anything I could do? (mailboxes are large)
My mailserver got the full threatment today, so I updated mysql+hmailserver+rainloop today.
I noticed tough that the searches always times out.
Is this a known "flaw", or are there anything I could do? (mailboxes are large)
- 2018-01-18 23:25
- Forum: General discussions
- Topic: Xeams and RSET during SMTP
- Replies: 7
- Views: 3077
Re: Xeams and RSET during SMTP
I got a response from Xeams that they have updated their "Associate " function to always deliver to the main user. So that pretty much f*** my setup at home, since the 5 user limit is lame... What good alternatives are there for spam-filter-proxies, with a web-frontend, that are free or low cost? An...
- 2018-01-18 19:53
- Forum: General discussions
- Topic: Xeams and RSET during SMTP
- Replies: 7
- Views: 3077
Xeams and RSET during SMTP
Hi. I have been using hMailserver for years and the last two I have used Xeams as filter. It has worked fine until yesterday, it started to send RSET and then change the RCPT TO. Here is an example: "SMTPD" 4204 156 "2018-01-18 18:01:55.859" "127.0.0.1" "SENT: 220 server ESMTP" "SMTPD" 4116 156 "201...
- 2007-11-16 14:51
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
Some people have leftovers for different reasons. You don't know if it's spam before you take some samples of the leftovers. The script renames (or deletes based on your choice) the files to <oldfilename>.deleteme, so you can check the content afterwards. Remember that the DDS import mails under a u...
- 2007-11-16 11:01
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
I guess you are referring to Data directory synchronizer (DDS): http://www.hmailserver.com/documentation/?page=userguide_dds ? This script does not import any e-mails and it does not alter your database. It just cleans up the mails on the harddrive that don't have a match in the database. DDS is use...
- 2007-11-16 09:40
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
cnsjfruiz: Well if you want to delete empty directories on a subuser you should modify the code like this: 'If we haven't found the file we are going to rename/delete it if bFound = false then if bDelete = false then call objFSO.MoveFile(aFiles(iCount), aFiles(iCount) & ".deleteme") WScript.Echo "Re...
- 2007-08-02 10:49
- Forum: User contributed hMailServer 4 scripts
- Topic: Greylisting View Currently Delayed
- Replies: 107
- Views: 133542
It depends on if you are running in strict mode or not and doesn't have anything to do with it being on a windows platform. You are the first person I know about that has had this issue so far. Also to your second point. My script is purely SQL driven. To refresh the whitelist cache you would need ...
- 2007-08-02 10:09
- Forum: User contributed hMailServer 4 scripts
- Topic: Greylisting View Currently Delayed
- Replies: 107
- Views: 133542
I got a small error on a SQL error here on my Windows MySQL machine. Here is a small fix: Goto line 527: $pQuery = mysql_query("INSERT INTO `hm_greylisting_whiteaddresses` VALUES('','{$strIPAddress}','{$strDescription}')") or die(mysql_error()); Change the $pQuery = mysql_query("INSERT INTO `hm_grey...
- 2007-08-02 09:27
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
- 2007-08-02 09:03
- Forum: User contributed hMailServer 4 scripts
- Topic: hMailCleaner (Compare hMaildatabase with files on disk)
- Replies: 24
- Views: 43710
hMailCleaner (Compare hMaildatabase with files on disk)
I have been using hMailserver from the early betas and love the job Martin does! Thanks; keep up the good work. This script is how I can give something back to Martin & the community :) I recently changed the server hardware and copied the %programfiles%\hMailServer\Data\ to the new disk. After chec...
- 2005-07-15 08:57
- Forum: General discussions
- Topic: hMailserver fails to delete virusmails after upgrade
- Replies: 11
- Views: 7945
cgountanis: Please use one thread per problem. If you post the same problem to several threads, it's very confusing as well as irretating. Hey Martin, since you're administrator & moderator of the forum then you have the power to close a thread. By using that feature with a link to the thread you w...
- 2005-07-10 15:07
- Forum: General discussions
- Topic: ClamWIn ZIP Files NO GO???
- Replies: 30
- Views: 25088
- 2005-07-10 13:48
- Forum: General discussions
- Topic: ClamWIn ZIP Files NO GO???
- Replies: 30
- Views: 25088
Have you tested this: http://www.aleph-tec.com/eicar/index.phpcgountanis wrote:The sosdg works 100% for me on my WIndows 2000 Server box. I get way less SPAM/BAD DNS and Virus emails by far now using SOSDG Clam and hMailServer. THANKS!
Check if you're getting some of them through (except the clean one ofcourse)
- 2005-07-10 13:16
- Forum: General discussions
- Topic: ClamWIn ZIP Files NO GO???
- Replies: 30
- Views: 25088
The issue with { } I'm pretty familiar with, as well as known issue with files with spaces in their names too. It all carries over from the UNIX/Linux way of doing things into Cygwin. {} are pattern matching characters, much like how ? and * will probably cause the same issues in filenames too. Don...
- 2005-07-09 12:57
- Forum: General discussions
- Topic: ClamWIn ZIP Files NO GO???
- Replies: 30
- Views: 25088
large: In hMailServer 4.0, I've change the way hMailServer calls ClamScan. Instead of using the --include parameter (which results in a regex match) it just specifies the filename as a parameter. This way, ClamScan won't do any regex'ing (and the "Could not parse regular expression" error won't occ...
- 2005-07-08 13:46
- Forum: General discussions
- Topic: ClamWIn ZIP Files NO GO???
- Replies: 30
- Views: 25088
Hmz, that is pretty strange. I think I found the error that some have people are seem to get and it is clamwin/av fault. I changed to sosdg hoping that it would fix all of my problems but no. I sendt myselv the eicar emails and let those email stay as *.eml files in the data diretory. Here is the ou...
- 2005-07-01 11:29
- Forum: General discussions
- Topic: hMailserver fails to delete virusmails after upgrade
- Replies: 11
- Views: 7945
cgountanis: It seems that sometimes a virus gets through. But I don't have the debug logging on (to much junk, database logging is the best I would say, possible to filter more easy!) My best guess is that the new ClamWin locks the file, so when hMailserver wants to run a delete file it would give h...
- 2005-06-28 17:39
- Forum: General discussions
- Topic: hMailserver fails to delete virusmails after upgrade
- Replies: 11
- Views: 7945
As I said it works sometimes, and I just tested it with the http://www.aleph-tec.com/eicar/index.php service. I also logged the events earlier and they are not different. But I've just taken the server down, running a cleanup/defrag on it. I'll see if the problem still exists after boot. Might neede...
- 2005-06-28 16:35
- Forum: General discussions
- Topic: hMailserver fails to delete virusmails after upgrade
- Replies: 11
- Views: 7945
hMailserver fails to delete virusmails after upgrade
As the title says: "hMailserver fails to delete virusmails after upgrade" I've just updated the ClamWin to version 0.86.1 and after that I've got several virusmail gone trough the system. I though maybe that the hMailserver also needed to be updated, so now that is the latest stable version also. My...
- 2005-01-28 04:36
- Forum: Scripting
- Topic: Strange "Problem" with PHPAdmin
- Replies: 7
- Views: 9636
Strange "Problem" with PHPAdmin
Hey I got a small "problem" with either php or PHPAdmin. I run a IIS 5.x server using the latest php parser. Now if I don't add /index.php in the admin site i don't get a page up. I tried to "fix" that by adding index.php as a default indexfile like index.htm in IIS. It did work, but after I logged ...
- 2005-01-03 20:49
- Forum: Archived feature requests
- Topic: Logging
- Replies: 14
- Views: 10439
Well, you have like a report generator. So the userinterface has the following options: * All or a spesific domain * All or a spesific logevent (information, warning or error) * All or a spesific user * All services or POP3, SMTP or IMAP. * All dates or a spesific daterange The result is stored in a...
- 2005-01-03 00:22
- Forum: Archived feature requests
- Topic: Logging
- Replies: 14
- Views: 10439
I know very little about SAN, so sorry if I'm wrong. The current solution is that all email messages are stored on the SAN (?). Your suggested solution is to store every single attachment as files on the SAN. How would that avoid a lot of filelocks? What should happen when a user wants to download ...
- 2004-12-31 16:46
- Forum: Archived feature requests
- Topic: Logging
- Replies: 14
- Views: 10439
How many paralell working threads did you test with? (And where should log messages about SQL server failure be? It can be useful to see that the MySQL server was unavailable for a few minutes. It would be bad usability if some things were reported in the SQL log and some things were reported in ot...
- 2004-12-31 15:08
- Forum: Archived feature requests
- Topic: Logging
- Replies: 14
- Views: 10439
Hmz... I did search a little :? Think it is quite strange that the the speed decreased when putting the logging into the database. :shock: What language are you programming this in? C++? I've tested http://www.mailsite.com and it was quick as hell, but unfortunally xpensive. Everything there except ...
- 2004-12-31 14:58
- Forum: Archived feature requests
- Topic: Logging
- Replies: 14
- Views: 10439
Logging
Hi there Great product, like the features and the personal contact with the developer! :) I think that you should use the SQL database for what it is worth! :) That means that logging should optional used in the database. Another feature that is a little wider and further into the future is to add a...
- 2004-12-31 12:56
- Forum: General discussions
- Topic: ClavAV Problem
- Replies: 24
- Views: 15108
It's strange that it works just fine on my computer, even though I have the files in the all users directory... :\ To shade some light on the problem, I can tell my story ;) When you install the hMailserver it will run as SYSTEM (a "user"), this is a background service. When a service run a program...