Howtos / Articles

View the Postfix mail queue

If you are having issues sending emails with the Postfix SMTP server, the two best places to look to diagnose the issue, are the log files, and the mail queues. Any emails that don’t get sent successfully, or that haven’t been sent yet, will be stored in the queue waiting for transmission/re-transmission. To view the Postfix mail queue, you can use the following command: postqueue -p -p = Produce a traditional sendmail-style queue listing. After the Queue ID field in…

Read more [...]

Flush the Postfix mail queue to force retry

Typically if a mail server can’t connect to a remote mail/SMTP server, it will keep the email in a queue and periodically retry sending the email until it is either successful, or fails after a specific time frame which set in the mail server configuration. This tip shows you how to flush the Postfix mail queue, which will retry any emails that are waiting to send, or waiting to be resent (due to errors such as DNS resolution, or connectivity…

Read more [...]

Installing NGINX, PHP, and MySQL on Ubuntu 10.04 LTS using php-cgi

Nginx (pronounced Engine-X) is a fast & lightweight HTTP and HTTPS web server (it can also act as a reverse proxy, and perform load balancing). (Note: this is a updated version of a similar how to located here, but this article is using php-cgi package instead of php-fpm, and using only default Ubuntu repository’s). Its small memory footprint requirements make it great for systems with small amounts of memory, such as low end cloud servers. Nginx is great for serving…

Read more [...]

Ubuntu PHP-FastCGI init script

Below is an example of a PHP-FastCGI init script for use on Ubuntu systems. This startup init script was copied from http://wiki.nginx.org/Ubuntu-php-fastcgi and slightly modified to keep all start up settings in the one script file. Thanks to the original author. It can also be downloaded in full from: http://www.networkinghowtos.com/wp-content/uploads/scripts/php-fastcgi Remember to “chmod +x” this script to make it executable. This file should be stored in “/etc/init.d” and set to run at startup by running the “sudo /usr/sbin/update-rc.d -f php-fastcgi…

Read more [...]

Compile HAProxy from source on Ubuntu

This guide will step you through the process of compiling, installing, and setting up the latest version of HAProxy on Ubuntu. Install HAProxy from the repository to get required scripts Install HAProxy using the package management tools first, so we can get a copy of the sample config file, and the start up scripts. Note: This may seem like a weird option, but we really only a few of the scripts/config files that come in this package. We wont be…

Read more [...]