Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. osTicket
  3. Change the FROM email on outgoing emails.

Change the FROM email on outgoing emails.

Scheduled Pinned Locked Moved Solved osTicket
6 Posts 4 Posters 1.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • njN Offline
      njN Offline
      nj
      wrote on last edited by nj
      #1

      I installed osTicket yesterday, and man! I had never expected it to be packed with so many features looking its design. I was trying to change the sender email from support.app@domain to support@domain by dropping the .app which is automatically added during app set up. On the osTicket panel, I could not find the password for the mailbox user support.app so I could not change the email.

      f0cb8a54-7ed9-45a8-81a6-99229d993a1b-image.png

      I looked at the Cloudron docs, where I discovered the adimin guide which tells me the email address is configured automatically by Cloudron. I changed the email on Cloudron dashboard to support@domain and restarted osTicket, but the change was not reflected.

      240be60c-d3a6-4586-9699-8f41c9f60f20-image.png

      I made the change, but I was instead locked out of osTicket login portal because 2FA email was not being sent. Mailer Error: Unable to email via php mail function ... mail() returned failure. Changing the email back to support.app@domain on Cloudron and restarting osTicket solved it.

      ac6c7985-832e-43b0-904f-fbb40c62274b-image.png


      The email address set on the Cloudron dashboard for osTicket is probably not synced to osTicket. I would love to have support@domain as a sender email, so kindly suggest me the right way. I ended up writing this long post after trying everything I could; but might have missed the obvious? 🤷


      Logs from the app, as shown on the Cloudron dashboard:

      Dec 23 18:25:33 PHP Fatal error: Uncaught Error: Call to undefined function _S() in /app/code/upload/include/class.mailer.php:612
      Dec 23 18:25:33 Stack trace:
      Dec 23 18:25:33 #0 /app/code/upload/include/class.mailer.php(632): Mailer->send(Array, 'osTicket Fatal ...', 'Unable to conne...', Array)
      Dec 23 18:25:33 #1 /app/code/upload/bootstrap.php(316): Mailer::sendmail('admin@server.lo...', 'osTicket Fatal ...', 'Unable to conne...', '"osTicket Alert...')
      Dec 23 18:25:33 #2 /app/code/upload/bootstrap.php(201): Bootstrap::croak('Unable to conne...')
      Dec 23 18:25:33 #3 /app/code/upload/main.inc.php(28): Bootstrap::connect()
      Dec 23 18:25:33 #4 /app/code/upload/api/api.inc.php(26): require_once('/app/code/uploa...')
      Dec 23 18:25:33 #5 /app/code/upload/api/cron.php(17): require('/app/code/uploa...')
      Dec 23 18:25:33 #6 {main}
      Dec 23 18:25:33 thrown in /app/code/upload/include/class.mailer.php on line 612
      

      Note: I have changed the admin email from admin@server.local to an actual email, regardless of what the log message says.

      Founder / Coder • My Apps

      girishG 1 Reply Last reply
      0
      • subvenS Offline
        subvenS Offline
        subven
        wrote on last edited by
        #2

        Hm I think you are not supposed to change these values if you want to use cloudrons mailer addon. They are set by environment variables during app startup --> https://git.cloudron.io/cloudron/osticket-app/-/blob/master/start.sh#L66.

        Cloudron uses sendmail and the error indicates that PHP mail is used 🤔 Maybe you messed up by editing the SMTP settings by hand? Did you restart the app after changing the mail FROM address?

        btw. why do you have 2FA? Plugin?

        njN 1 Reply Last reply
        0
        • subvenS subven

          Hm I think you are not supposed to change these values if you want to use cloudrons mailer addon. They are set by environment variables during app startup --> https://git.cloudron.io/cloudron/osticket-app/-/blob/master/start.sh#L66.

          Cloudron uses sendmail and the error indicates that PHP mail is used 🤔 Maybe you messed up by editing the SMTP settings by hand? Did you restart the app after changing the mail FROM address?

          btw. why do you have 2FA? Plugin?

          njN Offline
          njN Offline
          nj
          wrote on last edited by
          #3

          @subven The docs say we should not change this settings in this particular app. But the FROM address would be changed in all other apps if the email is configured on the app's settings on the Cloudron dashboard. In my case the email change was not honored by osTicket. I'm not entirely sure what went wrong.

          I didn't make any changes to the SMTP server. I restarted the app every time I made any changes. I enabled 2FA (not a plugin, but built-in feature of osTicket) because that's the obvious thing to do for an admin account.

          Founder / Coder • My Apps

          1 Reply Last reply
          1
          • njN nj

            I installed osTicket yesterday, and man! I had never expected it to be packed with so many features looking its design. I was trying to change the sender email from support.app@domain to support@domain by dropping the .app which is automatically added during app set up. On the osTicket panel, I could not find the password for the mailbox user support.app so I could not change the email.

            f0cb8a54-7ed9-45a8-81a6-99229d993a1b-image.png

            I looked at the Cloudron docs, where I discovered the adimin guide which tells me the email address is configured automatically by Cloudron. I changed the email on Cloudron dashboard to support@domain and restarted osTicket, but the change was not reflected.

            240be60c-d3a6-4586-9699-8f41c9f60f20-image.png

            I made the change, but I was instead locked out of osTicket login portal because 2FA email was not being sent. Mailer Error: Unable to email via php mail function ... mail() returned failure. Changing the email back to support.app@domain on Cloudron and restarting osTicket solved it.

            ac6c7985-832e-43b0-904f-fbb40c62274b-image.png


            The email address set on the Cloudron dashboard for osTicket is probably not synced to osTicket. I would love to have support@domain as a sender email, so kindly suggest me the right way. I ended up writing this long post after trying everything I could; but might have missed the obvious? 🤷


            Logs from the app, as shown on the Cloudron dashboard:

            Dec 23 18:25:33 PHP Fatal error: Uncaught Error: Call to undefined function _S() in /app/code/upload/include/class.mailer.php:612
            Dec 23 18:25:33 Stack trace:
            Dec 23 18:25:33 #0 /app/code/upload/include/class.mailer.php(632): Mailer->send(Array, 'osTicket Fatal ...', 'Unable to conne...', Array)
            Dec 23 18:25:33 #1 /app/code/upload/bootstrap.php(316): Mailer::sendmail('admin@server.lo...', 'osTicket Fatal ...', 'Unable to conne...', '"osTicket Alert...')
            Dec 23 18:25:33 #2 /app/code/upload/bootstrap.php(201): Bootstrap::croak('Unable to conne...')
            Dec 23 18:25:33 #3 /app/code/upload/main.inc.php(28): Bootstrap::connect()
            Dec 23 18:25:33 #4 /app/code/upload/api/api.inc.php(26): require_once('/app/code/uploa...')
            Dec 23 18:25:33 #5 /app/code/upload/api/cron.php(17): require('/app/code/uploa...')
            Dec 23 18:25:33 #6 {main}
            Dec 23 18:25:33 thrown in /app/code/upload/include/class.mailer.php on line 612
            

            Note: I have changed the admin email from admin@server.local to an actual email, regardless of what the log message says.

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            @nj This looks like a bug in the package since I expect it to work with what you did i.e changing the address from Cloudron dashboard should setup the package accordingly. Let me check what is happening.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              This is fixed in the latest package (1.3.0)

              1 Reply Last reply
              1
              • foliovisionF Offline
                foliovisionF Offline
                foliovision
                wrote on last edited by
                #6

                @girish These issues with email being hijacked by Cloudron could all be solved by allowing a checkbox for each app not to touch the app's email configuration. I.e. email could be configured in the app. Our livelihood was threatened by Cloudron InvoiceNinja overriding our SMTP settings on every restart. This really should be fixed.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search