How to check Postfix’s email queue and delete it .


Cheap reseller Hosting


postfix1

On this post you can check the messages in the postfix queue.

 

1- Postfix maintains two queues, the pending mails queue, and the deferred mail queue,
the differed mail queue has the mail that has soft-fail and should be retried (Temporary failure),
Postfix retries the deferred queue on set intervals (configurable, and by default 5 minutes)

 

1- Display a list of queued mail, deferred and pending

mailq

or

postqueue -p

To save the output to a text file you can run

mailq > mail.txt

or

postqueue -p > mail.txt

the above commands display all queued messages (Not the message itself but the sender and recipients and ID), The ID is particularly useful if you want to inspect the message itself.

2- View message (contents, header and body) in Postfix queue

Assuming the message has the ID XXXXXXX (you can see the ID form the QUEUE)

postcat -vq XXXXXXXXXX

Or to save it in a file

postcat -vq XXXXXXXXXX > themessage.txt

3- Tell Postfix to process the Queue now

postqueue -f

OR

postfix flush

4- Delete queued mail

Delete all queued mail

postsuper -d ALL

Delete differed mail queue messages

(The ones the system intends to retry later)

postsuper -d ALL deferred

Delete from queue selectively

To delete from the queue all emails that have a certain address in them, we can use this program (perl script)…

NOTE: This perl script seems to be free, and is all over the internet, i could not find out where it originates or who wrote it.

1- Download this file, unzip, and upload the file to your server, then from your bash command line, Change Directory to wherever you uploaded this file, for example cd /root (Just an example, You can upload it wherever you wish)

NOTE: A second script here works differently, i have not yet tested it, download it here

Now, from within that directory, execute…

./postfix-queue-delete.pl ashish@ashishkale.in

Any mail that has this email address in it’s IN or OUT list will be deleted

The script uses the postqueue -p then looks for your string, once found, it deletes the email by ID, this means that this script can delete messages using any text that appears when you run mailq (or postqueue -p), so if you run it with the parameter joe all mail with addresses such as joefriend@example.com and

Other moethods exist, like executing directly

mailq | tail +2 | grep -v '^ *(' | awk  'BEGIN { RS = "" } { if ($8 == "email@address.com" && $9 == "") print $1 } ' | tr -d '*!' | postsuper -d -

——————————–

Sample Messages in a differed mail queue

——————————–

SOME282672ID 63974 Mon Nov 29 05:12:30 someaddresss@yahoo.com
(temporary failure. Command output: maildrop: maildir over quota.)
localuser@exmple.com

———————————-

SOME282672ID 9440 Wed Jun 30 05:30:11 MAILER-DAEMON
(SomeHostName [xxx.xxx.xxx.xxx] said: 452 <username@example.org> Mailbox size limit exceeded (in reply to RCPT TO command))
username@example.org

———————————-

SOME282672ID 4171 Thu Nov 25 13:22:03 MAILER-DAEMON
(host inbound.somedomain.net [yyy.yyy.yyy.yyy] refused to talk to me: 550 Rejected: 188.xx.179.46, listed at http://csi.cloudmark.com/reset-request for remediation.)
someuser@example.com

———————————

SOME282672ID 37031 Thu Nov 25 08:53:36 someuser@example.net
(Host or domain name not found. Name service error for name=example.com type=MX: Host not found, try again)
someuser@example.com 

Cheap web Hosting


Apple advises immediate update to iOS 9.3.5 after discovery of targeted iPhone spyware


Cheap reseller Hosting


Independent researchers tracked down malware sent to a Middle Eastern human-rights activist and alerted Apple, which patched three separate zero-day exploits.

 

a

Apple released an update to iOS 9 on Thursday—iOS 9.3.5—that patches multiple critical zero-day vulnerabilities that have been shown to already have been deployed, allegedly by governments to target activists and dissidents, according to a report from Citizen Lab and Lookout Security. Apple turned around an update within 10 days from when the company received Citizen Lab’s initial report. The update is recommended immediately for all iOS 9 devices.

Some of the exploits may have been discovered months ago or longer, so there’s no way to know how widely they’re in use, but details suggest these active exploits in previous versions of iOS 9 weren’t in wide use and were deployed against individual targets.

An Apple spokesperson said, “We were made aware of this vulnerability and immediately fixed it with iOS 9.3.5. We advise all of our customers to always download the latest version of iOS to protect themselves against potential security exploits.”

Jailbreaks have been demonstrated but not yet released for iOS 9.3.4, and it’s possible those jailbreaks relied on one or more aspects of the three flaws now patched.

To install the update on your iOS device, launch the Settings app, then tap General > Software Update. You also can update within iTunes with your device connected to your Mac.


Cheap web Hosting


How to increase session timeout in php?


Cheap reseller Hosting


Sometimes php session timeouts quickly before your script execute. You can increase this time by simply editing some directives in php.ini.

First locate php.ini

root@host[~]# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

Get current session time out time

root@host[~]# grep -i session.gc_maxlifetime /usr/local/lib/php.ini
session.gc_maxlifetime = 14400
; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):

Edit php.ini

root@host [~]# vi /usr/local/lib/php.ini

Change value of session.gc_maxlifetime.

Restart httpd service!! its done


Cheap web Hosting


cPanel provide support for lets encrypt automated certificate management ssl via Auto SSL option in WHM


Cheap reseller Hosting


letsencrypt

 

If you are running cPanel & WHM version 58.0.17 or above (the EDGE or CURRENT tiers right now), you can now install the plugin using the command line by running this command:

 

  1. /scripts/install_lets_encrypt_autossl_provider

 

Running that script will add cPanel’s repo file and make sure the plugin is up to date, which will add it as a provider to the AutoSSL feature introduced in 58. If you want to enable it after you add it to the server, you will need to do so from WHM.

 

 

whm

 

 

Domain and rate limits

 

The AutoSSL feature includes the following limitations and conditions:

  • Each AutoSSL provider may have a specific domain rate limit. For example:
    • Certificates that cPanel, Inc. provides through AutoSSL can secure a maximum of 200 domains per virtual host.
    • Certificates that Let’s Encrypt™ provides can secure a maximum of 100 domains per virtual host.
  • AutoSSL will only include domains and subdomains that pass a Domain Control Validation (DCV) test, which proves ownership of the domain.
  • AutoSSL will not attempt to replace pre-existing valid certificates that expire in more than three days.
  • AutoSSL will replace certificates with overly-weak security settings (for example, RSA modulus of 512-bit or less).
  • AutoSSL includes corresponding www. domains for each domain and subdomain in the certificate, and those www. domains count towards any domain or rate limits.
    • For example, if your domain is example.com, AutoSSL will automatically include www.example.com in the certificate.
    • If the corresponding www. domain does not pass a DCV test, AutoSSL will not attempt to secure that www. domain.
    • This affects Let’s Encrypt’s limit of 20 certificates per week that may contain a domain or its subdomains.
  • AutoSSL does not secure proxy subdomains or wildcard domains.
  • If a virtual host contains more than the provider’s limit of domain names, AutoSSL uses the following conditions to determine the priority of domains to secure:
    1. Whether the domains are currently secured.
    2. Shortest domain name length.
    3. Domain name alphabetical order.

 

For example, the following table demonstrates these limitations for the cPanel AutoSSL provider:

200 domains AutoSSL will generate one certificate for the account which secures all 200 domains.
202 domains AutoSSL will generate one certificate for the account which secures the 200 domains with the shortest names.
100 domains 100 domains AutoSSL will generate a certificate for each virtual host that secures all of its domains.
100 domains 102 domains AutoSSL will generate a certificate for each virtual host that secures all of its domains.
100 domains 202 domains AutoSSL will generate two certificates:

  • Virtual Host 1 — Secures all of its domains.
  • Virtual Host 2 — Secures its 200 domains with the shortest names.

Select an AutoSSL provider

To select an AutoSSL provider, perform the following steps:

  1. Select the desired AutoSSL provider.
    • Select disabled to disable this feature.
  2. If the AutoSSL provider requires that you accept their Terms of Service or other similar agreement, read the document and select the appropriate checkbox to agree to those terms.
  3. If you need to reset your registration with the AutoSSL provider due to security issues, select the appropriate checkbox to agree to those terms and click Reset Registration.
  4. Click Submit.

Note:

If the provider updates their Terms of Service, you may need to return to this interface to agree to them.

 

Enable AutoSSL

Users must use a package that includes the autossl feature to receive the free certificates. For more information about feature lists, read our Feature Manager documentation.

Feature list override

To override the feature settings and control whether AutoSSL is enabled for a user or users, perform the following steps:

  1. Click the Manage Users tab to display a table of users on the server.
    • You can search and navigate the list of users with the navigation controls.
    • To set the feature on all domains, click Enable AutoSSL on all usersDisable AutoSSL on all users, or Use Feature List for all users.
    • To set the feature on multiple domains, select the appropriate checkboxes and click Enable AutoSSL on selected usersDisable AutoSSL on selected users, or Reset AutoSSL for selected users.
  2. To enable or disable AutoSSL on a single domain, select the appropriate option:
    • Enable AutoSSL — Override the user’s Feature List settings to enable AutoSSL.
    • Disable AutoSSL — Override the user’s Feature List settings to disable AutoSSL.
    • Reset to Feature List Setting — Allow the user’s Feature List settings to determine whether AutoSSL is enabled or disabled.

Notes:

  • Because the system adds the /etc/cron.d/cpanel_autossl cron daemon task to schedule the automatic provisioning of certificates, you may experience a delay between when you enable the feature and the installation of certificates. The interface displays the next time that the script will run.
  • AutoSSL will attempt to renew its provided certificates when they expire within 29 days. However, due to rate limits, AutoSSL prioritizes new certificates over the renewal of existing certificates.
  • The system restarts Apache after AutoSSL provisions and installs certificates for all accounts during a nightly run.

Run AutoSSL

Click Run AutoSSL for all users at the top of the interface to run the AutoSSL feature for all users with the feature enabled.

To run the AutoSSL feature for a single user, click the user’s Check button in the Run AutoSSL Check column of the table.

Review log files

To review AutoSSL log files, perform the following steps:

  1. Click the Logs tab.
  2. Select the log that you wish to view from the menu, and click View Selected Log.
  3. Click Refresh Logs List to refresh the list of log files.

The system stores the log files in both text and JSON format in the /var/cpanel/logs/autossl directory.

Frequently Asked Questions

 

How do I revoke a certificate?

We do not support the revocation of certificates through cPanel & WHM at this time.

 

Let’s Encrypt won’t issue a certificate for a virtual host list (website).

Let’s Encrypt will only issue a certificate five times per week to a specific set of domains before it blocks any further certificates for that set of domains.

To work around this rate limitation, create an alias to a domain in the virtual host list (website) so that Let’s Encrypt interprets the virtual host as a new set of domains.

Is Manage AutoSSL available for cPanel & WHM version 56?

That version of cPanel & WHM does not support deferred Apache and Dovecot configuration restarts, which results in unacceptable downtime and a poor customer experience. As such, we will not make the plugin available for version 56.

 


Cheap web Hosting


$1 /Mo Unlimited Linux Best Shared Web Hosting – Hostripples.com


Cheap reseller Hosting


main_logo

 

 

Hostripples has dependably looked into as best by numerous customers as hostripples has dependably furnished with the best the keen elements and quality administrations and our arrangements are beginning from the reasonable cost $1/month. At hostripples.com you will locate the best mix of minimal effort and dependable web facilitating administrations with Unlimited Disk space, Unlimited Bandwidth and Quality Services, a SLA Backed 99.9% Uptime Guarantee, cPanel Control Panel, Stable non-oversold facilitating situations, more than 300+ free php scripts, Unlimited elements which incorporates Unlimited email accounts, FTP accounts, Databases, area names and ofcourse best 24×7 live backing by means of visit and ticket framework.

Every one of our arrangements are planned such way which will without a doubt help to customers to satisfy their necessity additionally our administrations are demonstrated best because of best uptime which we have given subsequent to 2010. In this way, it ought to be the best arrangement in the event that you could allow us to serve and which will help us to make the long lasting relationship.

We offer world class facilitating arrangements yet at low cost:

– Unlimited Space

– Unlimited Bandwidth

– 24x7x365 Web Hosting Support Services

– Free RvsiteWebsite Builder, Softaculous Scripts with Configured cPanel

– SEO, Online Marketing and Business Solutions Basic Guidance

– Control Panel and Troubleshooting Alerts

Hostripples.com : $1 web Hosting,


Cheap web Hosting


How come Online Business Is Successful Than Offline Job ?


Cheap reseller Hosting


Money is everything and in order to earn it up we do a lot of things. That 9-5 and overtime job is something which never let us live our life in a better way and always be very frustrated. Yes, working under tough and frustrated boss can easily take your life and makes it miserable, thus, better thing about something via which you not only earn money, but also earn complete peace of mind.

Here, we are going to discuss about the best idea which will make you rich as well as you can easily expect to have a royal job without any pressure or something else. So, would you like to know about the same? Here is the complete idea which you should definitely try and you will definitely love to have. Here you go-

Have you ever heard about internet business? Well, today from a college student to a retired old person is doing the same and earning an amazing amount of income. Yes, it is possible and don’t worry here you don‘t need to spend a lot of money to establish your business over the net. Anyone can do online business as per their knowledge and skills, thus, just check out your calibre and accordingly you can start your business without any hassle. If you don’t know anything and don’t have great skills and knowledge, you can start your business by working for other various firms. Yes, most of the firms offer easy to complex work to the people who can invest their time in accomplishing the task. Here we are talking about data entry jobs, virtual assistance and other sorts of jobs which are very easy and you will be properly trained for the same.

Apart from this, if you have great skill and talent which you can use to make up the best business, better think about the same and ready to have your own website. Yes, most of the people love running various businesses, like- Online training program, online products selling, writing services, IT services and other lots of things which make them rich soon. For running your business, promotion is necessary and for the same, it is necessary to have a great website, which later can be promoted. For having great website, you should think about purchasing $1 Hosting using the only source that is- Hostripples Canada and this will help you to run business without spending much. Yes, just $1 per month and you can have your own website which later can be promoted using great techniques like- SEO, PPC, SEM, ORM and various others.

Once you will get in touch with $1 Unlimited Hosting picking up right hosting source, you will get free website builder along with free domain services to build up your online business so quickly and easily. So, if you haven’t tried it out better do so and you won’t be disappointed at all.

For more details on online business and 1 Dollar Hosting, don’t forget visiting-

https://hostripples.com/

 

 


Cheap web Hosting


error: field ‘st_atim’ has incomplete type FFMPEG


Cheap reseller Hosting


ffmpeg

 

 

 

 

While installing ffmpeg-php-0.6.0  on centos server, if you may came across the below error ,

 

In file included from /usr/include/sys/stat.h:107,
from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:395,
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/bits/stat.h:91: error: field ‘st_atim’ has incomplete type
/usr/include/bits/stat.h:92: error: field ‘st_mtim’ has incomplete type
/usr/include/bits/stat.h:93: error: field ‘st_ctim’ has incomplete type
/usr/include/bits/stat.h:152: error: field ‘st_atim’ has incomplete type
/usr/include/bits/stat.h:153: error: field ‘st_mtim’ has incomplete type
/usr/include/bits/stat.h:154: error: field ‘st_ctim’ has incomplete type
In file included from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:395,
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/sys/stat.h:367: error: array type has incomplete element type
/usr/include/sys/stat.h:374: error: array type has incomplete element type
In file included from /usr/include/php/main/php.h:401,
from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/php/TSRM/tsrm_virtual_cwd.h:218: error: expected specifier-qualifier-list before ‘time_t’
/usr/include/php/TSRM/tsrm_virtual_cwd.h:246: error: expected declaration specifiers or ‘…’ before ‘time_t’
/root/ffmpeg-php-0.6.0/ffmpeg-php.c: In function ‘zm_startup_ffmpeg’:
/root/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function ‘avcodec_init’

 

To solve this issue follow the below steps and install the new repo :

 

git clone https://github.com/pbek/ffmpeg-php.git
cd ffmpeg-php
phpize
./configure
make && make install

 

 

 


Cheap web Hosting


ApacheBooster (2.5) new version available for download


Cheap reseller Hosting


apachebooster

 

 

 

An Apache based Performance booster plugin for Cpanel Servers. ApacheBooster is an integration of nginx and varnish. Apachebooster caches both the static and dynamic contents which help the web server to serve the content from the cache everytime it is requested. Apachebooster is a Cpanel featured plugin and serves as one stop solution for boosting apache performance in cpanel servers worldwide.

 

Below are the new update in Apache Booster

 

✔ Fixed domain dedicated IP issue
✔ Changed nginx embedded vhost template to perl template toolkit.
✔ Updated /scripts/generate_varnish_conf script to fix the varnish IP address conflict.
✔ Option to disable/enable apachebooster temporarily.
✔ Upgraded nginx and varnish to latest version

In this version, customers have the ability to customize nginx vhost config template as per their needs.
New nginx vhost config template file can be found in /var/ApacheBooster/templates directory.

You can use the below commands to disable or enable ApacheBooster, this will be helpful for administrators to troubleshoot some apache and php related issues.
$> /scripts/manage_apacheboooster --enable
$> /scripts/manage_apacheboooster --disable

 

 


Cheap web Hosting


cPanel vulnerability – TSR-2016-0001 Announcement


Cheap reseller Hosting


cpanel

 

cPanel TSR-2016-0001 Announcement

cPanel has released new builds for all public update tiers. These updates provide targeted changes to address security concerns with the cPanel & WHM product. These builds are currently available to all customers via the standard update system.

cPanel has rated these updates as having CVSSv2 scores ranging from 2.1 to 10.0.

Information on cPanel’s security ratings is available at Security Levels – cPanel Knowledge Base – cPanel Documentation.

If your deployed cPanel & WHM servers are configured to automatically update when new releases are available, then no action is required. Your systems will update automatically. If you have disabled automatic updates, then we strongly encourage you to update your cPanel & WHM installations at your earliest convenience.

RELEASES

The following cPanel & WHM versions address all known vulnerabilities:

11.54.0.4 & Greater
11.52.2.4 & Greater
11.50.4.3 & Greater
11.48.5.2 & Greater

The latest public releases of cPanel & WHM for all update tiers are available at Downloads | cPanel, Inc..

SECURITY ISSUE INFORMATION

The cPanel security team identified the resolved security issues. There is no reason to believe that these vulnerabilities have been made known to the public. As such, cPanel will only release limited information about the vulnerabilities at this time.

Once sufficient time has passed, allowing cPanel & WHM systems to automatically update to the new versions, cPanel will release additional information about the nature of the security issues. This Targeted Security Release addresses 20 vulnerabilities in cPanel & WHM software versions 11.54, 11.52, 11.50, and 11.48.

Due to the severity of the issues addressed in this release, cPanel is extending the blackout period on additional information to a full week. Additional information is scheduled for release on January 25, 2016.

For information on cPanel & WHM Versions and the Release Process, read our documentation at:
cPanel & WHM Product Versions and the Release Process – cPanel Knowledge Base – cPanel Documentation

For the PGP Signed version of this announcement please visit https://news.cpanel.com/wp-content/uploads/2016/01/TSR-2016-0001-Announcement.txt


Cheap web Hosting


WHMCS Security Advisory TSR-2016-0001 – Admin Application Links CSRF Vulnerability


Cheap reseller Hosting


whmcs

 

WHMCS has released new updates for all supported versions of WHMCS. These updates include changes that address security concerns within the WHMCS product.

WHMCS has rated these updates as having a Trivial to Important security impact. Information on security ratings can be found at http://docs.whmcs.com/Security_Levels

==========
Releases
==========
Please update your installation to the latest version.

v6.2 – 6.2.1
v6.1 – 6.1.2 (LTS)
v6.0 – 6.0.4 (LTS)

== Patches ==

Incremental patches can be downloaded by following the links below.

These patch sets contain only the files that have changed between the previous release and this update. The previous release version that these patch sets are designed for is clearly indicated as the first and smaller number.

6.2.0 –> 6.2.1 http://go.whmcs.com/950/v620_incremental_to_v621_patch
MD5 Checksum: c8cc808c0d0718b13a486ca3dabd4125

6.1.1 –> 6.1.2 http://go.whmcs.com/954/v611_incremental_to_v612_patch
MD5 Checksum: c6fa1354f9523054d0107866f2e9550e

6.0.3 –> 6.0.4 http://go.whmcs.com/958/v603_incremental_to_v604_patch
MD5 Checksum: 7d86bb2ca32767f591a8a5c21c81fe6b

Hotfix for 5.3.14* http://go.whmcs.com/962/Backport_TSR-2016-0001_53
MD5 Checksum: bb5756fe02dc0b99d1a49783afd41dbb

Need a patch for an older version? Visit our downloads page: http://download.whmcs.com/

To apply a patch set release, download the files as indicated above. Then follow the upgrade instructions for a “Patch Set” which can be found at http://docs.whmcs.com/Upgrading#For_a_Patch_Set

* Some installations have yet to upgrade to v6. As a result, we are providing a backport patch for v5.3.14. It is important to remember that v5 is no longer supported. Future security and important maintenance issues will not be patched. We strongly encourage anyone running a version outside of Long Term Support (http://docs.whmcs.com/Long_Term_Support) to upgrade as soon as possible to ensure the performance, accuracy, and security of your business.

== Full Release ==

A full release distribution contains all the files of a WHMCS product installation. It can be used to both perform a new installation or update an existing one (regardless of previous version).

6.2.1 Full Version – Download Now http://download.whmcs.com/
MD5 Checksum: ff5c9b13a86f9041d52d94ada7e7cac9

6.1.2 Full Version LTS – Download Now http://download.whmcs.com/
MD5 Checksum: 91522bf1d33b20793f1aeb411a588118

6.0.4 Full Version LTS – Download Now http://download.whmcs.com/
MD5 Checksum: ae7695aae719aad249f82a8d86bdbd9c

To apply a full release, download the release from the URL above. Then follow the upgrade instructions for a “Full Release Version” which can be found at http://docs.whmcs.com/Upgrading#For_a_Full_Release_Version

=========================================
Security Issue Information
=========================================

The security changes for the v6.2 release address 2 issues, both of which were reported via the Security Bounty Program.

The security changes for all other releases address 1 issue, which was reported via the Security Bounty Program.

Once sufficient time has passed to allow WHMCS customers to update their installed software, WHMCS will release additional information regarding the nature of the security issues.

============================
Maintenance Issue Information
============================

The v6.2 release also provides resolution for 1 maintenance issue that affected upgrades of EOL versions of the product.

All versioned releases also contain the previously released update for the Kayako Loginshare and is provided for completeness.

For full details please refer to the changelog:
V6.2.1 – http://changelog.whmcs.com/WHMCS_V6.2
V6.1.2 – http://changelog.whmcs.com/WHMCS_V6.1
V6.0.4 – http://changelog.whmcs.com/WHMCS_V6.0

All published and supported versions of WHMCS are affected by one or more of these maintenance and security issues.

============================

Source :

========================================
WHMCS Security Advisory TSR-2016-0001
http://blog.whmcs.com/?t=110766
========================================

 

Thanks

 


Cheap web Hosting


1 2 3 22