Author Archives: wagamama

Rspamd Tips & Tricks


Rspamd is supposed to be a high performance spam filtering solution. Of any project I have worked with, it has the worst documentation of anything I have used. Obviously this is the reason the product has not been widely adopted. You may have the best software in the world, but if no one can figure out how to use it…

View Stats

rspamc stat

Command will output some details, including how many messages scanned with a breakdown of classifications. Also lists details of fuzzy hashes and bayes information.

View Configuration

rspamadm configdump

Command will dump out the active configuration of rspamd. Very useful since rspamd uses a general configuration file, then has local configuration files that merge and also override configuration that replaces default configuration.

You can drill down and look at individual specific configuration element (there are many), here are a few examples.

rspamadm configdump logging
rspamadm configdump regexp
rspamadm configdump classifier

External Sites

The following links are places I have found with good general information or documentation on RSPAMD.

0xf8.org

Vernon Trades

Finding quality people to work on projects can be difficult, not everyone has a website to promote themselves and you often only learn about them through word of mouth. I am going to maintain a list of a few different trades that I have had good experiences with. If experiences have not been so great, that will also be noted here.

Handyman Services

Yes Dear Handyman Services – Use these guys extensively, everything from painting, AC replacement, building decks to light electrical work. They make quick work out of most jobs.

Handyman Hands – This guy is the go-to guy for RE/MAX Commercial Solutions in Vernon. I would suggest you keep looking and avoid this one.

Plumber

If you own your own home, you know the value of a quality plumber. I have spoken to many of them in the Vernon area most just don’t seem to care.

Fifth Generation Plumbing – 250-542-5052 – Used several times, very satisfied with quality of work and availability of staff.

Broco Home Maintenance – Primarily a plumber, but may also do handyman jobs.
*** UPDATE *** Broco has closed down, the company merged into Vernon Air Conditioning.

Electrician

Rad Energy Electric – Jeff Radies – 250-306-4868. A few people around town mentioned Jeff.  I had his company do a few small jobs including, changing light fixtures, replacing some undersized wiring and adding new power receptacles.

Litzenberger Electric – Marcel Litzenberger – 250-309-1295 / 250-542-3217

Adair Electric Ltd. – Bob Adair – 250-275-4780. They do work for a some of the bigger restoration companies in town. Used them on a few jobs so far.

Drywall

Before you get to the paint stage, you are going to need some drywall. Have not tried any of these companies, just putting them here for future reference.

Copper Fox Interiors – Mark Ward – 250-309-2831

Painters

Paint Special – Used these guys once to paint a condo. The actual quality of the painting was OK but they were very messy. I had to spend $200+ to have all the paint removed off the floor and electric baseboard heaters when they were done. Will not use them again.

Home / Garage Plans

If you are looking to have some construction done, maybe adding a garage or new home consider Accu-Rated. They are a small firm out of Kelowna. *UPDATE* As of August 2018, it looks like this company may not even exist anymore.

Adaptive House Plans, suspect this may be the company Accu-Rated mentioned above, but still in business as of 2021.

Roofing Companies

If you have water dripping on your head, you probably need a new roof. Here are a few in Vernon.

Torchcraft Roofing – They claim to be specialists in flat roofing.

Community Roofing – I used this guys once, they tried to scam me on a repair. They claimed there were lifted shingles causing the leak. Once I approved the work, their ‘worker’ went on the roof for a total of 4 minutes and did not even take a replacement shingle up. I would NOT recommend these guys.

Vernon Roofing – Have seen their name around on social media quite a bit. Know of one guy personally who had them put on a new roof and he was pleased.

Trash Removal

If you don’t have enough trash to rent your own dumpster, check out Dump Runz.

Bagster, dumpster in a bag is a good option for small renovation jobs.
*** UPDATE *** Dumpster in a bag no longers provides service in Vernon, such a shame.

Vernon Eco Property Care – 250-308-2159 – Have not used these guys, but looks like they might be good for cleanouts of yards & houses. Could not find a website, but currently they have a Facebook page.

Cleaning Services

Twila Harsch – 250-550-8059 – Have used Twila a few times, she knows her stuff.

The Clean Gecko – Used only once, staff were slow and quality not very good. Your mileage may vary with this one.

BMB Cleaning Services – 250-215-4356 (facebook) – Have not used yet.

Miranda @ Dust Dame Cleaning Service – 306-381-8441 – Have not used used yet.

SERIOUS Cleaning Services

If you find yourself with a disaster, such as fire or flood you are going to need to call in a professional remediation company.

On Side Restoration – After a flood in a condo I contacted these guys. Probably the best experience I have ever had with a company, anywhere. They worked directly with the insurance company and got the problems sorted out.

*** UPDATE *** In 2022, one of my properties was set on fire. Based on great past experience, I called On Side Restoration. My experience with them the 2nd time working them was also excellent.

Pest Control

If you have creepy crawlers around Vernon, call The Bugman Pest Control. Young crew of friendly guys, they responded quick when I called them.

Note that they do not do bedbug treatments. If you have bedbugs, I found a company that does a fungal treatment that is cost effective and quick. Here are their details:

BugMaster Pest Control – 778-400-1373 – Used these guys multiple times for BedBugs, the little bastards. Their fungal treatment is great!

Mudjacking

Not a service most people need, but if you have concrete that has slipped or sunk the process of mudjacking or foamjacking can save you a bundle.

Accurate Concrete – Based out of Armstrong BC, worked with Russ to lift a set of steps that had fallen away from the house.

Property Management

If you are looking for someone to manage a property, there are not many choices in Vernon. The real truth is no property manager would ever take care of your property like you would. Unfortunately I can’t recommend any of the ones listed here, if you know of someone that does property management in Vernon, let me know.

RE/MAX Commercial Solutions – They currently manage one property for me, when the current tenant moves out the property manager will go with them.

Associated Property Management – I suspect they don’t really operate in Vernon, but they do list and office address and phone number.

Delaney Properties – Have heard nothing but bad things about these guys.

Century 21 Executive Realty, Property Management – I know nothing of these guys but they claim to provide property management in Vernon.

Appliance Repair

I have found a few places in Vernon that do appliance repair. These days the supply chain is messed up and even if you wanted to buy a new appliance you probably can’t.

Community Appliance – 778-475-3004 – Have used a few times, very friendly, returns calls & shows up when they say they will. What else could you ask for?

One issue with Community Appliance is they do not work on all brands. If you happen to have a brand they do not work on, no fix for you.

Ron’s Appliance Repair – 250-306-1146 – This guy was referred to me by Community Appliance, when I had a brand that they did not work on. Apparently it is just a guy working out of his garage and so far, he does not return calls or answer his phone. Seems fairly standard for trades, which is why I maintain this list.

Sure Pro Services – 250-575-2425 – Appliance repair out of Kelowna. I can’t locate a website for them, but someone referred them to me. Looking at ratings online, this guy is rude, does not return calls and does poor quality work.

Testing the SSL Certificate on an Email Server

Have you ever tried to remotely test an SSL/TLS certificate on an email server?

It is no easy task, unless you know the simple command. Most online SSL testing tools that work against an email server will report if the connection is encrypted, if the cert matches the expected server name etc. However one piece of information they fail to check is if the certificate is expired.

I found OpenSSL has an easy command you can use to connect to an SMTP server and pull the details of the certificate in use on that server.

openssl s_client -starttls smtp -crlf -connect 123.456.789.012:25

Quality Cabinets without Breaking the Bank

If you have ever prices a new kitchen, either custom or from a big box store you know the prices are mental.

After doing some research the Ikea model seems to be the most cost effective, assemble them yourself and save a bundle.

The next time you are in the kitchen market, check out places like:

RTA Cabinet Store (New York)

Barker Cabinets (Oregon)

The Cabinet Spot (California)

Euro-Rite Cabinets (Pitt Meadows BC)

Canada Kitchen Liquidators

Sunnax Cabinet (Port Moody BC) – Trusted Pros Reviews

I’m sure there are others out there, but I just found these two that both look excellent.

Tips When Buying RTA Cabinets

  • Ensure boxes are 100% plywood, not particle board
  • Ensure doors and frames are solid wood
  • If assembly uses cam lock hardware, ensure they are metal not plastic.
  • If you have the space to paint your own cabinets, consider getting them unfinished. The cost of buying ‘naked’ doors and painting or finishing them yourself can be incredible.

Google Street View – Yes, They Caught Me!

Back in January I did a post called Google Street View – Did It Catch Me?

Well apparently they did catch me, they followed me (or I followed them) for a couple blocks. In this 1st capture from Google Streets I was actually taking a photo of them that I posed back in January.

Taking a photo of the Google Streets car as they were taking a photo of me.

Walking behind Google Streets car without knowing it. Click image to enlarge.

Basement underlayment

Something a little different than I normally post on this site. I have been researching options for putting laminate flooring in a basement, there are so many options.

The Problem

  • Basements are often wet
  • Concrete is cold
  • Ceiling height may be limited

I was recently looking at a basement that has laminate flooring installed directly over concrete, which works I guess but must be very uncomfortable during winter months.

Possible Solutions

Here are some possible solutions that I have found for improving the comfort of laminate in a basement. None of these are fixed to the concrete and can have laminate flooring installed directly on top.

  • Dricore – $190 100 sq/ft – 1.7 R-value – 22.22mm – Dimples create air space under the floor, OSB top.
  • DMX 1-Step – $90 100 sq/ft – 0.91 R-value – 7.94mm
  • DMX Airflow – $?? 100 sq/ft – 1.2 R-value – 4mm
  • Delta-FL – $66 100 sq/ft – ?.?? R-Value – 8.00mm

The insulation value of any of the above products seems very limited, however having the flooring off the actual concrete should make the floor feel a lot warmer.

DMS AirflowDMX Airflow seems like the best choice to me, availability may be limited in Canada (even though it is made there) but the cost seems to be about the same as DMX 1-Step although I can find no actual retailer.

Temperature Testing Odroid-C2 Aluminum Case

I really like the ODROID-C2 by HardKernel, they are very reliable, have a quality network card, lots of RAM and really perform incredibly well when used with eMMC flash storage.

I have three of them and all have performed so well I am going to deploy them to data centers to act as DNS servers.

Need a case for that… hmmm… how about Cogent Design’s all aluminum case. Keep the little board very safe and cool by replacing the stock heat sink with the entire case to act as the cooling system.

I’m going to run a couple ‘very scientific’ tests to measure the performance of the case vs. the stock cooler that comes on the board.

Tested side by side with an ambient room temperature of 21.5°C (70.7°F), there is no fan in the room. Both units are powered from the same USB power supply.

The OS is Armbian Debian (jessie) 3.14.79 on both nodes, there is nothing active on the machines just the base OS.

Stock vs. Aluminum

After about 25 minutes running at idle the stock cooler comes in at 40°C and the aluminum case comes in at 36°C. Not a massive difference, but it is cooler. To the touch both the cooler and the case are warm but not too hot.

Stock cooler at idle
Aluminum case at idle

Heat It Up

I used the Linux stress program to apply a bit of heat to the computers. The following command was run for about 1.5 hours to see how high the temperatures would climb.

stress --cpu 4

Amazingly both computers did not heat up very much. They both stayed much cooler than I expected they would with the stock cooler climbing to 60°C and the aluminum case only reaching 55°C. Perhaps the stock cooler climbed only to 60°C because it itself is not in a case, but I have no case to test it with.

Stock cooler reaches 60°C
Aluminum case reaches 55°C

Testing Against Each Other

Since I have three of these devices, I purchased three cases. While the temperatures observed above are low, does the case really keep the machine cool enough?

Maybe I used too much thermal paste, or maybe not enough?

I performed a few tests with all cases, using different amounts of thermal compound. The result was they all performed the same.

Suggestions For Possible Improvement

One difference I see between the aluminum case and the stock CPU cooler is surface area. I’m no math mathematician but I suspect the stock cooler may have a similar amount of surface area because of all fins despite it only measuring 43cm x 33cm.

From looking at the case I would suggest too Cogent Design for a v3 of this case, consider keeping more material from the lid of the case. It seems to me that more material is being removed from inside the lid than needs to be.

Then increase surface area, produce ridges for fins on the outside of the case where possible. Even if a ridge was only 1mm in depth it adds a lot more surface area for cooling – just like traditional CPU coolers. No one produces a CPU cooler that is a solid block of aluminum, maximizing the surface area maximizes the cooling performance.

As a solid block of aluminum the CPU is heating up the aluminum block but without more surface area the ability dissipate that heat is limited.

I really noticed the difference between the stock cooler and the aluminum case when the stress test ended. The stock cooler was able to lower its temperature much quicker, which I attribute to the surface area of the stock cooler.

Would I Purchase Again

Would I purchase this case again if I was looking for another case? Yes, I would purchase the case again – hopefully version 3 will be available should I need a few more in the future.

Google Street View – Did It Catch Me?

Today I was walking around in Mong Kok when this car drove past me with some equipment strapped to the top of the car.

Then I noticed some type of Google logo on the side, I think it said Google Earth but I’m not sure.

The equipment at the top was obviously pano photo equipment so there is a fairly good chance I will be included in the next street view update of Mon Kok!

Can Amazon AWS win this time?

I have previously written two posts about the cost of using Amazon AWS, one way back in May 2010 and one in August 2015. In both cases the costs involved with running a rack full of servers 24/7 365 was much more expensive than we could do it ourselves hosting equipment in a data center.

A project I’m working on is growing and we have a couple options that we are considering. Our volume increases a lot during USA working hours, specifically Monday – Friday 8am – 1pm. We are considering the following two options:

1) Provision Amazon EC2 servers during peak times, so 5 hours a day and 5 days a week.
2) Purchase a bunch of Intel NUC DC53427HYE computers. These is not server grade hardware, but they do have vPro technology which allows them to be remotely managed.

We have purchased 1 of these little Intel NUC machines for testing, purchased new in the box for $180 – plus shipping so about $200 for the base unit. We need 4gb of RAM and 120gb of disk space.

Configured the NUC is costing about $290 ($200 NUC + $60 SSD + $30 RAM). 10U at our data center with 20 amps of power and 30Mbps bandwidth. We should easily be able to power 30 of these little NUC machines with 20 amps of power. The data center space will cost $275 per month, for 24/7 operation with 30Mbps of bandwidth based on 95th percentile usage.

Lets run some CPU benchmarks on these little guys and see how much Amazon cloud hosting would cost us for the same compute power running only 5×5. It should be a lot cheaper to go the Amazon route… but lets find out.

The pricing / servers have not changed much since I ran the benchmarks last year. These benchmark were run in Amazon US West (Oregon) using Performance Test 9.0, which is a different version than last year so the scores are a bit different.

Instance Type:

c4.large – 8 ECU – 2 vCPU – 3.75gb RAM – $0.193 per Hour

Windows Server 2016
CPU Mark: 2,925
Disk Mark: 791 (EBS Storage)

Intel NUC DC53427JUE – Intel i5-3427u – 4gb RAM

Windows 10 Pro
CPU Mark: 3,888
Disk Mark: 3,913 (Samsung 840 EVO 120gb mSATA SSD)

Wow, the benchmark performance for the Amazon instance is quite a bit lower than the basic Intel NUC.

The total CPU score of 30 of these Intel NUC servers would would be 116,640. To get the same computer power out of the c4.large instance at Amazon we would need to boot up 40 instances.

Lets run the costs at Amazon. We would need 40 servers at .193 cents per hour. We need them for 5 hours a day, 20 days a month. So the math looks like this.

40 servers x 0.193 = $7.72 an hour
$7.72 x 5 hours = $38.60 per day
$38.60 x 20 days = $772 per month

In addition we need to take into consideration the load balancer, bandwidth and storage. We are using an estimate of 3,300 GB per month inbound and outbound to get our estimated pricing, this is only a fraction of the total bandwidth we could theoretically move on our 30Mbps line from the data center.

Load Balancer Pricing
$0.025 per hour = 5 hours x 20 days = 100 hours = $2.50 per month
$0.008 per GB = $0.008 x 3,300 = $26.40 per month

Bandwidth Pricing
3,300 gigs outbound bandwidth = $297 per month

Storage
Sorry Amazon, your pricing is so complex I can’t even figure out how much the disks are going to cost to provision 120gigs per machine for the 5 hours x 5 days operation…

So a rough cost is going to be somewhere in the range of $1,100 per month for only 5 hours a day, 5 days a week.

Lets look at a 1 year investment.

Amazon = $13,200 per year

Buying 30 Intel NUC servers and hosting them.

Intel NUC x30 = $8,700
Hosting = $275 x 12 months = $3,300

Total to buy and host 1 year = $12,000 for 1st year

Paying for the hardware up front, running the servers 24/7 still comes out cheaper than going to the cloud with usage of only 5 hours a day and 5 days a week.

Lets lengthen the time to 2 years.

Amazon = $26,400
Own & Host = $15,300

And the 3 year view?

Amazon = $39,600
Own & Host = $18,600

Incredible, I thought going to the cloud would be more cost effective than buying and hosting our own equipment when we only need the extra capacity for a limit amount of time per day.

Message Delivery Testing with Exim

Email DeliveryI was recently doing some troubleshooting of email delivery on an Exim server.

I wanted to see what happens when the server attempts delivery. The error in the logs was a timeout, but it does not tell you when in the process the timeout happens.

Brad the Mad has a nice Exim Cheatsheet online that gives some examples of how to manage an Exim server.

Expanding on some of his examples I used this command:

exim -v -M 

That command will force Exim to attempt a delivery of the message you define as the message-id. The addition of -v will show every step of the process, very handy.

In my test using this tool, the delivery failed. In fact, it could not even connect to the remote server at all. Yet, if I did a telnet command like this:

telnet 123.345.679.123 25

I could connect to the remote server. After some digging, I found the exim.conf file was using a command on the transport to bind the outbound connections to an IP address on the server other than the default IP.

interface      = <; 192.168.123.123

The network then had special rules on the firewall to direct outbound traffic from that IP address to a specific public IP address.

So my telnet command that was giving me a positive result, I could connect to the remove server but only because my test was not simulating the same outbound IP address as the server.

If you need to telnet out of a server and bind to a specific IP address, you can do it like this:

telnet -b