journalctl -u dovecot -g "auth failed"
Oline IT:Blog
Innovation Technology
Wednesday, May 20, 2026
Linux command to find user who failed to login from pop/imap
Monday, August 18, 2025
Replace old IP with New one in Direct Admin
./ipswap.sh Old_IP New_IP
for example:
./ipswap.sh 35.224.2.88 104.197.113.37
Wednesday, July 2, 2025
SQL to delete all WooCommerce products except those with "draft" status
-- Disable foreign key checks (important for InnoDB)
SET
FOREIGN_KEY_CHECKS = 0;
-- Delete product meta
DELETE
pm
FROM
wp_postmeta pm
JOIN wp_posts p ON
pm.post_id = p.ID
WHERE
p.post_type = 'product' AND p.post_status != 'draft';
-- Delete term relationships
DELETE
tr
FROM
wp_term_relationships tr
JOIN wp_posts p ON
tr.object_id = p.ID
WHERE
p.post_type = 'product' AND p.post_status != 'draft';
-- Delete the products
DELETE
FROM
wp_posts
WHERE
post_type = 'product' AND post_status != 'draft';
-- Enable foreign key checks again
SET
FOREIGN_KEY_CHECKS = 1;
Thursday, June 26, 2025
Restrict Access to PHPMyAdmin with DirectAdmin
Wednesday, June 18, 2025
How not to fill filtered out cells when dragging down from another sheet
Steps:
-
Apply your filter in Sheet1.
-
Select the range where you want to paste the formula (e.g.,
A2:A100) but only visible cells will be selected.-
Select the range.
-
Press
F5orCtrl+G→ Click Special… → Choose Visible cells only → OK.
-
-
Type your formula (e.g.):
=INDEX(Sheet2!A:A, ROW()-1) -
Press
Ctrl+Enter(instead of just Enter).
Saturday, May 3, 2025
Resetting the DirectAdmin Password via SSH:
Resetting the Password via SSH:
- Access the server as root: Use an SSH program like PuTTY to connect to your server as the root user.
- Reset the password: Execute the command
passwd <username>(replace<username>with your DirectAdmin username, oftenadminor your server username). - Follow the prompts: You'll be prompted to enter a new password twice.
- Verify the change: Once successful, you'll see a message confirming the password change.
- Restart DirectAdmin (optional): You may need to restart the DirectAdmin service using the command
service directadmin restart.
Sunday, April 20, 2025
Reset WordPress Admin Password via MySQL Command Line
mysql -umyUserName -paVeryStrongPassword
use myWordpressDB;
Linux command to find user who failed to login from pop/imap
journalctl -u dovecot -g "auth failed" grep -i "auth failed" /var/log/mail.log | grep -E "imap|pop" journalct...
-
We can install PowerMTA on the server. rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm You will see the output like this Preparing... #############...
-
Instructions: Copy xf-adesk19 to your Desktop Open terminal (Command+Space and type Terminal and press enter/return key) Paste the followin...
-
Put the following code in a TXT file and save as "file.cmd" then run the cmd file as administrator. @echo off title Activate Micr...