Hi Folks,
a lot of people seem to have problems with outgoing emails.
A common cause for some of those issues seems to be the fact, that the server running osTicket cannot deliver mails directly to the internet.
The reasons for this include:
* the osTicket server does not have a valid MX-record
* the osTicket server has a dynamic external IP-address
* the osTicket server has a static IP-address out of a pool of dynamic IPs
* the osTicket server is for some reason blacklisted
* the osTicket server does not have a reverse-dns entry at the ISP
There are several threads on this board discussing the use of various PHP-Email script to add functionality to osTicket so that smtp smarthosts with authentification can be used. All of those methods have some bugs and limitations.
After trying PHPMailer and other similar scripts with few success I decided to take another approach.
Instead of altering osTicket's email functionality I configured the underlying MTA (for example sendmail or postfix) to use a smorthost with authentication.
This took me 30 minutes and works like a charm.
The advanteges:
* You don't have to change ANYTHING on osTicket
* You don't have to redo your changes once you upgrade osTicket
* Configuring sendmail or postfix (preferrably postfix!) is VERY well documented
* Once you configured your MTA, ALL applications on your server can send email correctly
* It's much more straight forward
Maybe this helps some of you guys to get rid of your email-problems...
All the best
DiePlage