Queue management for postfix is done with the postsuper command, which you can use to delete mail in vareious scenario’s. #1 Remove specific mail Run the mailq command to list pending mail, en get the id, next you can delete a specific mail with: #2 Remove ALL mail #3 Remove all deferred (stalled) mail, without […]
Author: bobnoordam
HTTPS redirect with web.config
If you configure HTTP to HTTPS redirection from the IIS console, it will get overwritten by the web.config form a published application. Here is how to configure http to https redirection isde your project web.config. We can also add non-www to www redirection, by using the setup below:
Add Class not available in template list
Problem: The option to add a class to visual studio is present in the menu, but the add class template is missing from the list. Cause: This is caused by an incompatibility between Visual Studio 2019 version 16.6.X and Dev Express control suite version 20.1.3 Resolution: Upgrade Dev express control suites to version 20.1.4, or […]
Webmin on debian with let’s encrypt
What do we want to archive Installation of webmin on debian, and adding a certbot SSL certifcate Requirements Debian, certbot How do we get there First step is the installation of webmin, which is perfectly described on the official page. At the current time and version, this amounts to the following steps, asuming a clean […]
UFW Firewall cheat-sheet
What do we want to archive Install and activate the Uncomplicated firewall (UFW) and list some basic commands for adding and removing rules Requirements Debian, Ubuntu, etc How do we get there Installation: Default rules The following defaults will allow all outgoing traffic, and block all incoming traffic, which will make for a nice set […]
Add usr/sbin to path for a local user
What do we want to archieve Add /usr/sbin to the path of the local user Requirements Debian 10, Bash shell How do we get there The directories /sbin, /usr/sbin and /usr/local/sbin are not in a normal user’s path because they contain executables for system maintenance that need administrative priveleges. These are normally only in root’s […]
SQLServer table variables
table variables live in tempdb but are created at the declaration and dropped at the end of the batch. This is a nice alternative to temptables if you do no need access to the temporary data from multiple sessions, queries or sources, and frees you from the managent of temptables. Basic format:
Firefox 75 : Remove horrendous zoom effect in address bar
In a renewed attempt to get rid of users, Firefox added a horrendous zoom effect to the address bar every time you click in it. Here is how to restore the behaviour to a normal box: Type about:config in the address bar to access advanced settings change browser.urlbar.openViewOnFocus to FALSE change browser.urlbar.update1 to FALSE
Checklist: install and configure MySQL in Ubuntu 18.04 LTS
Update the repository index: # apt-get update Install the MySQL Server: # apt-get install mysql-server Verify status and installation: # mysql –version Secure local installation: # mysql_secure_installation (at the very least remove anymous access and sample stuff) Start mysql shell: # sudo mysql Verify authentication for root: > SELECT user,authentication_string,plugin,host FROM mysql.user; If set to […]
Setting IP restrictions on an apache website
Limiting IP access is a rather efficient way to restrict access to sensitive sites, such as for example phpmyadmin installations.There are multiple ways to archive this, one of the easyer ways is by setting the .htaccess file in the web directory for the specific site: The above gives you a series of examples for a […]