Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 554
    • Issues 554
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 45
    • Merge requests 45
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #6250
Closed
Open
Created Nov 11, 2021 by Ninos@NinosContributor

chrooted: localhost not reachable & php mail

Summary

php mail() is not working on chrooted websites (php-fpm), still after changing SMTP = localhost to SMTP = 127.0.0.1 in php.ini-file. localhost is not reachable via chrooted, but that's not the problem with php mail() I think.

Steps to reproduce

  1. Enable chroot-option for website
  2. Run example php sendmail script on website
  3. Check mail logs

Correct behaviour

php mail() should also work in chrooted.

Environment

Server Debian 11 latest ISPConfig version: 3.2.7p1

Proposed fix

Open /etc/php/VERSION/fpm/php.ini & change:

SMTP = localhost

to:

SMTP = 127.0.0.1

After that I have no more clue (fix for first step) :D

Assignee
Assign to
Time tracking