Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

[resolved] Mail Diagnostic keeps failing

Hi everyone,

I am recently testing osTicket to use for a new company. I have it installed in 2 different subdomains but it seems to work only on one of them.
Although the php settings are quite the same I cannot test the outgoing mails as the diagnostic tool keeps failing and I dont know why.


Here is the domain php.ini:

soap.wsdl_cache_limit = 5
include_path = ".:"
cli_server.color = On
mysql.allow_persistent = On
mysqli.max_persistent = -1
session.bug_compat_42 = Off
mysql.connect_timeout = 60
session.use_only_cookies = 1
register_argc_argv = Off
mssql.min_error_severity = 10
open_basedir = "/var/www/vhosts/xxxxxxxxxx.com/:/tmp/"
session.name = PHPSESSID
mysqlnd.collect_statistics = On
session.hash_function = 0
session.gc_probability = 0
log_errors_max_len = 1024
mssql.secure_connection = Off
pgsql.max_links = -1
variables_order = "GPCS"
ldap.max_links = -1
sybct.allow_persistent = On
max_input_time = 60
odbc.max_links = -1
session.save_handler = files
mysqli.cache_size = 2000
pgsql.auto_reset_persistent = Off
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
auto_prepend_file =
sendmail_path = /usr/local/bin/phpsendmail
sybct.min_client_severity = 10
pgsql.max_persistent = -1
auto_globals_jit = On
soap.wsdl_cache_ttl = 86400
allow_url_fopen = On
zend.enable_gc = On
mysqli.allow_persistent = On
tidy.clean_output = Off
display_startup_errors = Off
user_dir =
session.cookie_lifetime = 0
mysqli.max_links = -1
default_socket_timeout = 60
session.serialize_handler = php
session.hash_bits_per_character = 5
unserialize_callback_func =
pdo_mysql.cache_size = 2000
default_mimetype = "text/html"
session.cache_expire = 180
max_execution_time = 180
mail.add_x_header = On
upload_max_filesize = 128M
ibase.max_links = -1
zlib.output_compression = Off
ignore_repeated_errors = Off
odbc.max_persistent = -1
mssql.compatability_mode = Off
file_uploads = on
ibase.max_persistent = -1
mysqli.reconnect = Off
mssql.allow_persistent = On
mysql.max_persistent = -1
mssql.max_links = -1
session.use_trans_sid = 0
mysql.default_socket =
mysql.max_links = -1
odbc.defaultbinmode = 1
sybct.max_persistent = -1
output_buffering = 4096
ibase.timeformat = "%H:%M:%S"
doc_root =
log_errors = On
mysql.default_host =
request_order = "GP"
display_errors = Off
mysqli.default_socket =
mysqli.default_pw =
html_errors = On
ibase.allow_persistent = 1
sybct.min_server_severity = 10
mysql.allow_local_infile = On
post_max_size = 20M
asp_tags = Off
memory_limit = 128M
short_open_tag = on
SMTP = localhost
precision = 14
session.bug_compat_warn = Off
mssql.min_message_severity = 10
session.gc_maxlifetime = 1440
allow_url_include = Off
mysqli.default_host =
mysqli.default_user =
session.referer_check =
pgsql.log_notice = 0
mysql.default_port =
pgsql.ignore_notice = 0
mysql.trace_mode = Off
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
engine = On
odbc.allow_persistent = On
ibase.dateformat = "%Y-%m-%d"
track_errors = Off
max_file_uploads = 20
pgsql.allow_persistent = On
session.auto_start = 0
auto_append_file =
disable_classes =
pdo_mysql.default_socket =
mysql.default_password =
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
smtp_port = 25
sql.safe_mode = Off
session.cookie_path = /
expose_php = off
report_memleaks = On
session.gc_divisor = 1000
mssql.max_persistent = -1
serialize_precision = 17
odbc.check_persistent = On
sybct.max_links = -1
mysqlnd.collect_memory_statistics = Off
session.cookie_domain =
session.cookie_httponly =
session.cache_limiter = nocache
enable_dl = Off
mysqli.default_port = 3306
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
odbc.defaultlrl = 4096
soap.wsdl_cache_enabled = 1
soap.wsdl_cache_dir = "/tmp"
session.use_cookies = 1
mysql.default_user =
mysql.cache_size = 2000
implicit_flush = Off
ignore_repeated_source = Off
bcmath.scale = 0


Looking forward for help. Thanks in advanced.

Comments

  • What's the error generated when it fails?
  • The panel says: "Error sending email - try again."
    I checked mail.err and mail.info for further errors but couldn't find anything.
  • Try checking your php error log?
  • ouch.. should have looked in there..


    sh: 1: /usr/local/bin/phpsendmail: Permission denied

    any Idea how this happened? I set up the 2nd support panel with the same settings in php.ini and  in the panel..
  • My guess would be that the user your webserver (or webserver instances) is running as does not have permission to that file (/usr/local/bin/phpsendmail).
  • i have installed this via plesk and I never had to check the permissions. but thanks anyway. hope this will resolve it.
  • thanks ntozier for all your support.

    ok so I did this but it did not really work :(

    I changed the permission to 755 but now the php log is saying:

    /usr/local/bin/phpsendmail: 1: /usr/local/bin/phpsendmail: Syntax error: "(" unexpected

    the worst thing is, I dont remember what permission is was.

    Just that you know and you probably already noticed it:
    I'm not a professional.

    What I don't understand is that I did not have to make any changes in the other instance of ostickt.

    Any help is appreciated otherwise I will would just copy the other intance to the subdomain. But I really would like to know whats going wrong with this one.
  • That's not the complete error... it should say what line and file it occurred in.  I'm not real sure since phpsendmail is not part of osTicket nor is it part of PHP.  I don't use it.
  • Ok thanks again ntozier.

    parallels support was pointing out that there was information missing in the phpsendmai:

    for others who could be facing the same issue:

    +++++++

    root@webmail:~# cd  /usr/local/bin/
    root@webmail:/usr/local/bin# diff -U2 phpsendmail phpsendmail.bak
    --- phpsendmail 2014-06-10 04:22:09.336171678 +0200
    +++ phpsendmail.bak     2014-06-10 04:18:32.553171854 +0200
    @@ -1,7 +1,3 @@
    -#!/usr/bin/php
    -<?php
    -
    -/**
    -  This script is a sendmail wrapper for php to log calls of the php mail() function.
    +//* s script is a sendmail wrapper for php to log calls of the php mail() function.
       Author: Till Brehm, www.ispconfig.org
       (Hopefully) secured by David Goodwin <david @ _palepurple_.co.uk>

    +++++++

  • So does that mean your all set and that I should close this is mark it as resolved?  :)
  • Uhm yes and thanks again :)

  • Very welcome. :)  Please don't hesitate to post again if you have another question, comment, etc.
This discussion has been closed.