Does anyone have a good osTicket + Postfix configuration/setup guide? I'm really struggling at the moment.We have an exchange server, but its set to relay to the Postfix server running on osTicket.I can't seem to get SMTP to authenticate at all.Mail.log:Apr  9 11 osticket postfix/smtpd: NOQUEUE: reject: RCPT from anvexch1.mydomain.com: 454 4.7.1 <rt4ticket@rt4.mydomain.com>: Relay access denied; from=<ticket@nhlearn$Apr  9 11 osticket postfix/smtpd: disconnect from anvexch1.mydomain.com ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6Apr  9 11 osticket postfix/smtpd: warning: database /etc/aliases.db is older than source file /etc/aliasesApr  9 11 osticket postfix/smtpd: connect from osticket1.mydomain.comApr  9 11 osticket postfix/anvil: statistics: max connection rate 1/60s for (smtp.168.1.77) at Apr  9 11Apr  9 11 osticket postfix/anvil: statistics: max connection count 1 for (smtp.168.1.77) at Apr  9 11Apr  9 11 osticket postfix/anvil: statistics: max cache size 1 at Apr  9 11Apr  9 11 osticket postfix/smtpd: C324E807A6: client=osticket1.mydomain.comApr  9 11 osticket postfix/smtpd: lost connection after RCPT from osticket1.mydomain.comApr  9 11 osticket postfix/smtpd: disconnect from osticket1.mydomain.com helo=0/2 ehlo=1/3 mail=1 rcpt=1/2 commands=3/8Apr  9 11 osticket postfix/smtpd: warning: hostname anvprt01.mydomain.com does not resolve to address 192.168.1.61: Name or service not knownApr  9 11 osticket postfix/smtpd: connect from unknownApr  9 11 osticket postfix/smtpd: 3E842807A6: client=unknownApr  9 11 osticket postfix/smtpd: lost connection after DATA (24 bytes) from unknownApr  9 11 osticket postfix/smtpd: disconnect from unknown mail=1 rcpt=1/2 data=0/1 commands=2/4Apr  9 11 osticket postfix/cleanup: 3E842807A6: message-id=<20180409184320.3E842807A6@osticket.mydomain.com>Apr  9 11 osticket postfix/smtpd: connect from osticket.mydomain.comApr  9 11 osticket postfix/smtpd: disconnect from osticket.mydomain.com ehlo=2 starttls=1 rset=1 quit=1 commands=5Apr  9 11 osticket postfix/smtpd: connect from osticket1.mydomain.comApr  9 11 osticket postfix/smtpd: disconnect from osticket1.mydomain.com ehlo=2 starttls=1 rset=1 quit=1 commands=5And in the Email settings on OsTicket I get the following error:Sending Email via SMTP     authentication failure blank

Now I installed SASLAUTHD and configured it to use PAM; and now I'm getting this error in mail.log:Apr  9 13 osticket postfix/master: daemon started -- version 3.1.0, configuration /etc/postfixApr  9 13 osticket postfix/smtpd: connect from osticket.mydomain.comApr  9 13 osticket postfix/smtpd: warning: SASL authentication failure: unable to canonify user and get auxpropsApr  9 13 osticket postfix/smtpd: warning: osticket.mydomain.com: SASL DIGEST-MD5 authentication failed: authentication failureApr  9 13 osticket postfix/smtpd: disconnect from osticket.mydomain.com ehlo=2 starttls=1 auth=0/1 rset=1 quit=1 commands=5/6Apr  9 14 osticket postfix/anvil: statistics: max connection rate 1/60s for (smtp.168.1.61) at Apr  9 13Apr  9 14 osticket postfix/anvil: statistics: max connection count 1 for (smtp.168.1.61) at Apr  9 13Apr  9 14 osticket postfix/anvil: statistics: max cache size 1 at Apr  9 13So very confused and lost... if I turn off SMTP authentication, I can email and I see through the mail log that I am also receiving email.When I'm in CLI I can use the "mail" command to read and check the test emails; which is cool they're getting it. HOWEVER; they're not generating tickets? Why is this?

I am running into this error now as far as the email piping is concerned. Also could someone explain whether you need the email piping or not and what it is that it is doing?Error:fatal: execvp /var/www/osticket/upload/api/pipe.php: Permission denied

@[deleted]This explains Email Piping:https://docs.osticket.com/en/latest/Getting%20Started/Email%20Piping.htmlYou are getting this error due to incorrect permissions on the pipe file or you need to use Apache user in the Postfix configuration (http://forum.osticket.com/d/discussion//error-en-piping-de-emails-execvp-pipe-php-permission-denied).Cheers.

@[deleted]Thank you sir; I fixed the permission issue; I am able to authenticate via SMTP on the email configuration settings in osTicket.Still getting a weird error for the piping; I think I'm doing it incorrectly for Postfix.In RT4 you would just setup an alias with a pipe command in the "/etc/aliases" config-file.I have it setup in there as such:# See man 5 aliases for formatpostmaster:    rootoshelpdesk:    "|/etc/postfix/pipe.php"         osenroll:      "|/etc/postfix/pipe.php" }postfix is running in chroot so I linked the pipe.phpAlthough, I did see from that link you sent me in docs, it sent me to an old 2010 tutorial of setting up osTicket w/ Postfix and Plesk, however not sure if this configuration applies to mine as I am not using plesk; just postfix/smtpd and osTicket on an Ubuntu 16.04.However, now when I send an email to the server, I am getting this error from my Exchange server:Remote

Server returned '554 5.3.0 < #5.3.0 x-unix; PHP Warning: Declaration of

AssignmentForm:($options) should be compatible with Form:($staff

= true, $title = false, $options = Array) in

/var/www/osticket/upload/include/class.forms.php on line 4367 PHP Stack trace:

PHP 1. {main}() /var/www/osticket/upload/api/pipe.php PHP 2. require()

/var/www/osticket/upload/api/pipe.php PHP 3. require_once()

/var/www/osticket/upload/api/api.inc.php PHP 4. Bootstrap:()

/var/www/osticket/upload/main.inc.php PHP 5. require()

/var/www/osticket/upload/bootstrap.php PHP 6. require_once()

/var/www/osticket/upload/include/class.user.php PHP Warning: Declaration of

TransferForm:($options) should be compatible with Form:($staff =

true, $title = false, $options = Array) in /var/www/osticket/upload/include/class.forms.php

on line 4487 PHP Stack trace: PHP 1. {main}()

/var/www/osticket/upload/api/pipe.php PHP 2. require()

/var/www/osticket/upload/api/pipe.php PHP 3. require_once()

/var/www/osticket/upload/api/api.inc.php PHP 4. Bootstrap:() /var/www/osticket/upload/main.inc.php

PHP 5. require() /var/www/osticket/upload/bootstrap.php PHP 6.

require_once() /var/www/osticket/upload/include/class.user.php PHP Fatal

error: Uncaught Error: Call to undefined function mysqli_init() in /var/www/osticket/upload/include/mysqli.php

Stack trace: #0 /var/www/osticket/upload/bootstrap.php(182):

db_connect('localhost', 'osticket', 'Ih8shmu5&app13s...', Array) #1

/var/www/osticket/upload/main.inc.php(28): Bootstrap:() #2

/var/www/osticket/upload/api/api.inc.php(23):

require_once('/var/www/ostick...') #3

/var/www/osticket/upload/api/pipe.php(19): require('/var/www/ostick...') #4

{main} thrown in /var/www/osticket/upload/include/mysqli.php on line 28>'

@[deleted]That's a known issue with PHP 7.x+ with a fix here: https://github.com/osTicket/osTicket/pull/3349NOTE: use the change on line 2284 as it's completely unnecessary.Cheers.

Oh snap, maybe I accidentally upgraded some PHP files. Should I purge PHP from the system and then re-install with PHP5.6?i'm sure I have PHP5.6 and 7.0 installed on the system. Anyone know a way to just have it use the PHP 5.6 and not the 7.0?Or what PHP module is being used here? Is there a way to just disable the pHP 7.0 for that module?I tried purging my system of PHP entirely and then going back and re-installing only php 5.6 but it broke my whole system and couldn't login to osTicket anymore.ALSO.Are you implying to grab the pipe.php code from this guys git?: https://github.com/ArthurBorsboom/osTicket

Or are you talking about this: https://github.com/osTicket/osTicket/pull/3349/commits/bde15e2acec29a26c73918ae17aa0774fb5048c4??And where would that replace?

Well I changed everything except line 2284 as you said, according to this:But I'm still getting the following error:76263803D1: to=<oshelpdesk@osticket.nhsocal.com>, relay=local, delay=0.63, delays=0.02/0.01/0/0.61, dsn=5.3.0, status=bounced (Command died with status 255: "/var/www/osticket/upload/api/pipe.php". Command output: PHP Fatal error:  Call to a member function addNote() on null in /var/www/osticket/upload/include/class.ticket.php on line 2635 PHP Stack trace: PHP   1. {main}() /var/www/osticket/upload/api/pipe.php PHP   2. PipeApiController:() /var/www/osticket/upload/api/pipe.php PHP   3. TicketApiController->processEmail() /var/www/osticket/upload/include/api.tickets.php PHP   4. TicketApiController->createTicket() /var/www/osticket/upload/include/api.tickets.php PHP   5. Ticket:() /var/www/osticket/upload/include/api.tickets.php PHP   6. Ticket->save() /var/www/osticket/upload/include/class.ticket.php PHP   7. VerySimpleModel->save() /var/www/osticket/upload/include/class.ticket.php PHP   8. Signal:() /var/www/osticket/upload/include/class.orm.php PHP   9. call_user_func_array:{/var/www/osticket/upload/include/class.signal.php}() /var/www/osticket/upload/include/class.signal.php PHP  10. SpreaderPlugin:() /var/www/osticket/upload/include/class.signal.php PHP  11. Ticket->assignToStaff() /var/www/osticket/upload/include/plugins/osticket-spreader/spreader.php PHP  12. Ticket->onAssign() /var/www/osticket/upload/include/class.ticket.php PHP  13. Ticket->logNote() /var/www/osticket/upload/include/class.ticket.php PHP  14. Ticket->postNote() /var/www/osticket/upload/include/class.ticket.php )I know that is a plugin I have, and I disabled it. Now I got several tickets to auto-generate from emails; but the emails arriving are super slow.How quickly does it take for osTicket to generate a new ticket from an incoming email? Give or take? Im doing it via piping and smtp authentication (postfix/smtpd).

a month later

@[deleted]I'm super sorry for this late reply...I didn't see this as I wasn't mentioned with the '@' symbol and didn't get a notification.> How quickly does it take for osTicket to generate a new ticket from an incoming email? Give or take? Im doing it via piping and smtp authentication (postfix/smtpd).Should be pretty snappy (my instances can process 10 emails in just a few seconds), unless you have ticket filters which can easily slow down ticket creation. Or unless the emails have large attachments or large body.Cheers.

Write a Reply...