You are not logged in.
Pages: 1
Topic closed
I am using Fedora 11 and I can send emails via sendmail from terminal and reach my smart host but i can't connect to the SMTP host from glpi. What am i missing?
Offline
Is SElinux enabled ?
If yes, you probably must check the httpd_can_sendmail config
getsebool httpd_can_sendmail
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Ok. You put me on the correct path to solve the issue. I looked in the se troublshooter and issued this command: setsebool -P httpd_can_network_connect=1 while in enforcing mode and it worked. How can this continue after reboot the machine? Do I have to use permissive mode or is their a chcon command that I can use?
Offline
setsebool is permanent with the -P option.
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
It does not stay permanent. Is there another command that I am missing or do i just need to run it in permissive mode?
Offline
I issued the command and restarted httpd and it worked. I rebooted and logged into glpi and tested it but it would not connect again. I restarted httpd and tested and then it worked. So how can the command be given on reboot before the httpd service is started?
Offline
Very strange - by my understanding the -P is definitely meant to persist upon reboot. Don't suppose there's a change you're running it as non-root?
If you have a system where you can do this, I'd be tempted to check in system-config-securitylevel (under SELinux > Modify policy tab, I think, depending on version) right after a reboot and see what's happening in there. Failing anything useful showing up there....hmmm....put it in rc.local, maybe?
OS Ubuntu 18.04, GLPI 9.3.1, OCS 2.5
Offline
i ran the command as root. where can i find system-config-securitylevel?
Offline
putting '/etc/rc.d/init.d/httpd restart' in rc.local didn't work either. I have to manually restart the httpd service to send email thru glpi.
Offline
system-config-securitylevel is just a command - it pulls up a graphical interface to manage the SELinux settings, if you're running RedHat, Fedora, etc... Not sure if there's similar or equiv in other distros.
What if you put the SELinux command (and then the restart if necessary) in rc.local?
OS Ubuntu 18.04, GLPI 9.3.1, OCS 2.5
Offline
That worked. I put the setsebool coomand in rc.local and then the command to restart apache and that did the trick.
Offline
Pages: 1
Topic closed