E-mail (gmail) configuration in a FreePBX Distro

append to /etc/postfix/main.cf:

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = secure
smtp_tls_mandatory_protocols = TLSv1
smtp_tls_mandatory_ciphers = high
smtp_tls_secure_cert_match = nexthop
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
relayhost = smtp.gmail.com:587

change /etc/postfix/sasl_passwd:

smtp.gmail.com:587 your-email-here@gmail.com:Password

Tell postfix:

chmod 400 /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
chown postfix /etc/postfix/sasl_passwd
postfix reload

Install CrackMapExec On Windows



  • Pyton 2.7
    • standard install method
  • OpenSSL
    • standard install, and add OpenSSL \bin directory to path
  • Microsoft Visual C++ Compiler for Python 2.7
    • standars install method
  • CrackMapExec
    • simply unzip to a folder
    • run installer (python setup.py install) (do not get crushed with the errors you’ve returned)
    • pip install pywinrm
    • pip install pywerview
    • modify cm\first_run.py file to:
      • TMP_PATH = os.path.join(‘c:\\temp’, ‘cme_hosted’) (change c:\\temp to y Temp directory)
      • remove 77-88 lines (generate SSL cert)
    • in user .cme dir (ex: C:\Users\_username_\.cme) generate SSL cert
      • openssl req -new -x509 -keyout cme.pem -out cme.pem -days 365 -nodes -subj “/C=US”

Done 😉