-
Print a count of the messages in the queue:
exim -bpc
-
How to resend frozen messages in exim4 queue
exim -bp | grep frozen | awk '{print $3}' | xargs exim -v -M
-
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# All users from all domains from all accounts in /home | |
MAILDIRS=$(find /home/*/mail/ -type d) | |
# Only .Trash .Junk .Spam folders | |
INBOXFOLDERS=(.Trash .Junk .spam) | |
for basedir in $MAILDIRS; do | |
for ((i = 0; i < ${#INBOXFOLDERS[*]}; i++)); do | |
# Only cur and new folders | |
for dir in cur new; do | |
# Only if the full path to the folder exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (C) 2016 Arash Shams <https://github.com/Ara4Sh>. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from passlib.hash import pbkdf2_sha256 | |
import getpass | |
import mysql.connector | |
def enc_pass(pwd): | |
hash=pbkdf2_sha256.encrypt(pwd,rounds=200,salt_size=16) | |
return hash | |
def con_database(pwd): | |
cnx=mysql.connector.connect(user='*****',password='*****',host='*******',database='******') | |
cursor=cnx.cursor() | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prestashop - 500 error | |
=================== | |
https://www.prestashop.com/forums/topic/421126-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error/ | |
=================== | |
CloudFlare installation: | |
========== | |
http://www.cpanelkb.net/cloudflare-plugin-install/ | |
http://crybit.com/install-cloudflare-plugin-on-cpanel/ | |
http://stackoverflow.com/questions/23860877/how-to-install-cloudflare-on-cpanel-servers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -lhac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function whois_query($domain) { | |
// fix the domain name: | |
$domain = strtolower(trim($domain)); | |
$domain = preg_replace('/^http:\/\//i', '', $domain); | |
$domain = preg_replace('/^www\./i', '', $domain); | |
$domain = explode('/', $domain); | |
$domain = trim($domain[0]); |
NewerOlder