Показаны сообщения с ярлыком centos7. Показать все сообщения
Показаны сообщения с ярлыком centos7. Показать все сообщения

12.4.23

Disable IPv6 using sysctl settings (no reboot required)

 1. Append below lines in /etc/sysctl.conf:

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

NOTE : To disable IPv6 on a single interface add below lines to /etc/sysctl.conf :

net.ipv6.conf.[interface].disable_ipv6 = 1 ### put interface name here [interface]

net.ipv6.conf.default.disable_ipv6 = 1

2. To make the settings affective, execute :

# sysctl -p

NOTE : make sure the file /etc/ssh/sshd_config contains the line AddressFamily inet to avoid breaking SSH Xforwarding if you are using the sysctl method

3. Add the AddressFamily line to sshd_config :

# vi /etc/ssh/sshd_config

....

AddressFamily inet

....

Restart sshd for changes to get get effect :

# systemctl restart sshd


https://www.thegeekdiary.com/centos-rhel-7-how-to-disable-ipv6/

18.4.19

Установка sendmail на Ваш CentOS 7

# yum install sendmail

Разрешение SeLinux для отправки почтовых сообщений  sendmail

# setsebool -P httpd_can_ sendmail =on
Тестируем отправку тестового сообщения

php -a
в интерпретаторе вводим

mail ('user@receiver.com', "Test email", "Test email from the Internet", null, "-f user@sender.com");
Обязательно измените email адрес получателя ‘user@receiver.com’ на свой и отправителя

Просмотр логов

tail /var/log/maillog