- Edited
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.Distribution Groups do not work (see below). Similarly when using a dedicated user account the ost response is: "Failed to connect to smtp.office365.com ..." (see https://github.com/osTicket/osTicket-1.8/issues/283)For anyone who's interested here what was set up to get around the problem:Email Setup for OsticketOsticket hosted at support.mydomain.com Support email is support@mydomain.comSales email is sales@mydomain.comAccounts email: accounts@mydomain.comThe 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@support.mydomain.com to /home/support/public_html/api/pipe.phpIn Office365 Distribution Groups:- support@mydomain.com forwards to individual emails + email@support.mydomain.com - sales@mydomain.com forwards to individual emails + email@support.mydomain.com - accounts@mydomain.com forwards to individual emails + email@support.mydomain.com In Osticket Email Templates (eg):This email used for all emailing:- email@support.mydomain.com (SMTP authenticated for sending)Following emails detects incoming to this email address ONLY (via forwarding above). Directs to and assigns to departments - accounts@mydomain.com - support@mydomain.com - sales@mydomain.com Departments - each dept uses email@support.mydomain.com for outgoing emailingLogin Information: - username: email@support.mydomain.com - pswd: ............SMTP Settings used: - mail.support.mydomainr.com - SMTP Port: 25 - Authentication Required?: No - Allow Header Spoofing?