Setting up outgoing ost emails has been a bit of a question mark as to how best to set it up when using different departments. Also, as a user of Office 365 have not been able to set up an authenticated email for outgoing ost emails.
For anyone who's interested here what was set up to get around the problem:
Email Setup for Osticket
Osticket hosted at support.mydomain.com
Support email is email@example.com
Sales email is firstname.lastname@example.org
Accounts email: email@example.com
The ost outgoing email requires to be authenticated with a login and password (or something like that) to prevent email failures as recorded in admin logs and as per some emails that are not received.
The above support emails use a distribution group in Office 365 who advised"...You would not be able to add the distribution group via smtp because you will not be able to authenticate it. Office 365 servers require secure authentication using a username and password to enable send access you will not be able to do this via a distribution group. To set this up you would need to make the email address a valid user...."
As such this is how it has been setup:
setup in cpanel (hostgator) to forward as follows:
- firstname.lastname@example.org to /home/support/public_html/api/pipe.php
In Office365 Distribution Groups:
- email@example.com forwards to individual emails + firstname.lastname@example.org
- email@example.com forwards to individual emails + firstname.lastname@example.org
- email@example.com forwards to individual emails + firstname.lastname@example.org
In Osticket Email Templates (eg):
This email used for all emailing:
- email@example.com (SMTP authenticated for sending)
Following emails detects incoming to this email address ONLY (via forwarding above). Directs to and assigns to departments
Departments - each dept uses firstname.lastname@example.org for outgoing emailing
- username: email@example.com
- pswd: ............
SMTP Settings used:
- SMTP Port: 25
- Authentication Required?: No
- Allow Header Spoofing?