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 firstname.lastname@example.org
Sales email is email@example.com
Accounts email: firstname.lastname@example.org
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:
- email@example.com to /home/support/public_html/api/pipe.php
In Office365 Distribution Groups:
- firstname.lastname@example.org forwards to individual emails + email@example.com
- firstname.lastname@example.org forwards to individual emails + email@example.com
- firstname.lastname@example.org forwards to individual emails + email@example.com
In Osticket Email Templates (eg):
This email used for all emailing:
- firstname.lastname@example.org (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 email@example.com for outgoing emailing
- username: firstname.lastname@example.org
- pswd: ............
SMTP Settings used:
- SMTP Port: 25
- Authentication Required?: No
- Allow Header Spoofing?