Thursday, December 13, 2012

Changing FreePBX postfix SMTP server (to Gmail)

FreePBX uses the "postfix" package by default to send emails. This usually works for most people, but since the emails are just being sent directly from the FreePBX machine and not a standard mail server, it is most likely to get flagged as spam.

To lower the chance of messages getting flagged as spam, I setup a Gmail account and used its SMTP servers to send email.

FreePBX Version

I have performed these steps on the FreePBX 1.814 and an earlier distribution. If you're using postfix for email, then these instructions should work for you.

  • A gmail account created at
  • Knowledge of using SSH command line
  1. Add the following lines to /etc/postfix/ file:
    relayhost = []:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
    smtp_use_tls = yes

  2. Create the file /etc/postfix/sasl_passwd with the following contents:
    []:587 [email protected]:password

  3. Restrict permissions on the postfix file:
    chmod 400 /etc/postfix/sasl_passwd

  4. Hash the file into a .db that Postfix will read:
    postmap /etc/postfix/sasl_passwd

  5. Change the owner of the sasl_passwd to the postfix user:
    chown postfix /etc/postfix/sasl_passwd

  6. Reload postfix:
    /etc/init.d/postfix reload

Friday, November 30, 2012

What's the current version of VMware ESXi?

You can find the current version of VMware ESXi (and ESX) on the VMware ESX Wikipedia page. Its quickest option, and usually updated within a few days of release.

The current version is shown in the top right of the page, as shown below:

Sunday, June 3, 2012

HTML include macro broken in upgrade to Confluence 4.2.4

I've resolved this issue, but I wanted to write a quick post about the issue and the problem that caused it.

I chose to upgrade our Confluence installation that was running 4.2 to 4.2.4, due to some stability and plugin install issues we were experiencing. The upgrade went smoothly, but I just found that some embedded HTML content was no longer working, what was appearing was an error in the page:

Unknown macro 'html'

The HTML include macro was also not showing up in the macro browser.

The solution? Re-enabling some modules for the "Confluence HTML Macros" plugin. Instructions for re-enabling the plugin are found on Atlassian's site here.

I enabled to modules:




and things were up and running again after that. It seems confluence may have added this xhtml module since the 4.2 release, and caused a conflict which lead to the modules being disabled.