Categories
Knowledge Base

Setting up Postfix to use Office 365 mail

FreePBX uses centos 7 and postfix fom its mail delivery, normally this is fine unless the customer is using Office 365 mail then there can be delivery issues.

Firstly you will need to set up a user in Office 365 for the system.

Postfix’s main configuration file is main.cf and that is where we make the required change as follow:

[root@localhost ~]# vi /etc/postfix/main.cf

Append the following lines

masquerade_domains = domainname
myhostname = USERNAME.domainname
mydomain = USERNAME.domainname
myorigin = USERNAME@domainname
relayhost = [smtp.office365.com]:587

mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
smtp_use_tls = yes
smtp_always_send_ehlo = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
smtp_generic_maps = hash:/etc/postfix/generic 
# smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt

Save and exit from the file.
Next we need to edit the configuration for the postfix SASL credentials:

[root@localhost ~]# vi /etc/postfix/sasl_passwd

Add a line below

[smtp.office365.com]:587 user@domainname:password

Replacing user@domainname:password with your sender account details

Save and exit from file

A Postfix lookup table must now be generated from the sasl_passwd text file by running the following command.

[root@localhost ~]# postmap /etc/postfix/sasl_passwd

Now change permission for this file

[root@localhost ~]# chown root:postfix /etc/postfix/sasl_passwd

[root@localhost ~]# chmod 640 /etc/postfix/sasl_passwd

Next, we need to configure generic file in order to be able to send emails as a valid user (this is required for Office365).

[root@localhost ~]# vi /etc/postfix/generic

Go the end of file and append following lines.

root@localhost.localdomain UserName@Domain.com

Again replacing localhost.localdomain and UserName@Domain.com with your service hostname and the email user are using

Save and exit from file.

Next let’s correct the file permission.

[root@localhost ~]# chown root:root /etc/postfix/generic

[root@localhost ~]# chmod 0600 /etc/postfix/generic

[root@localhost ~]# postmap /etc/postfix/generic

Now restart Postfix service.

[root@localhost ~]# systemctl restart postfix

Now try to send a test email using the command below:
FOR Centos:

echo "This is the body of the email"| mail -r"Sender-Display-Name<sender@domain.com>" -s "This is the subject(E-Mail from SMTP Relay) line" recipeat@gmail.com

In FreePBX under Voicemail admin you must change the senders address to match your account as well as the sender for notifications such as backups etc. otherwise you can get errors and mail wont be delivered.

Categories
Applications FreePBX Handsets Software

Zulu UC, The ultimate communication and collaboration tool for FreePBX

Zulu UC is the ultimate communication and collaboration tool, enhancing work place productivity for on-site and remote workers.
With Zulu UC, you define your work place environment, enabling workstations, laptops and mobile devices with unified communication features, keeping you closely connected with all your colleague, where ever they are located.
Studies have shown that a large percentage of work place productivity happens when staff is out of the office, away from their desk. Zulu UC is there to make sure that you capture your creativity when it happens, wherever you are located.

Mobility
Zulu allows you to make and receive calls through your office extension as if you were sitting at your desk, reducing costs and allowing you to maintain your personal phone number.
Call Pop
Ideal for CRM and help desk integration, Call Pop automatically opens your desktop web browser on an inbound call with all the information of the caller, helping you provide better customer service.
Presence & Status
Change your status to let your colleagues know your availability. Your status update across all your endpoint devices too, letting users know whether you can take a phone call.
Click-to-Call
Click-to-Call allows users to instantly call any phone number that is seen on their web browser. Simply click on the phone number, and Zulu will initiate an outbound call via the desktop client or your desk phone.
Team Chat
Fully-featured one-to-one and group chat enables users to communicate without having to start a phone call. Zulu’s intuitive chat interface allows users to break off into phone call, fax, SMS, or transfer files. 
File Sharing
Collaborate more effectively by instantly sharing files with colleagues within the same interaction screen using the Zulu Desktop Client.

Zulu Desktop

Collaborate with colleagues and customers directly from your computer

Click-to-Call from your browser and other popular desktop applications

SMS and FAX (Requires Sangoma SIPStation service)
File sharing

Screen Pop for web-based help desks

Make/receive phone calls using your extension

Chat with colleagues using direct and group messaging

Phone System Contact list integration for Dial-by-Name

Presence control (Available, Chat, Away, DND, Not Available)

Unattended Transfer

Zulu Desktop can be Downloaded here

Most importantly its Secure

Zulu UC is designed with security in mind to protect you and your business from VoIP threats and toll fraud. 

It uses Transport Layer Security (TLS) to ensure end-to-end security from whichever device you are using Zulu. 

And User Setup has been Made Simple

Get setup with the Zulu Desktop Client in seconds. 

Simply download and install the Desktop or Mobile app then login with the user credentials. Or use the QR Code feature from within the end user UCP panel of PBXact or FreePBX.

View Installation Guide

For licence and installation information please email or call, Also subject to availability 2 user 1 year licences are available to trial the software for free

For you mobile phone see Sangoma Connect , A mobile softphone with all the features of deskphone.