Ad Widget

Collapse

Generic SMTP - Locating configuration files

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • domdom
    Junior Member
    • Feb 2024
    • 2

    #1

    Generic SMTP - Locating configuration files

    Hello,

    I just would like to know where is located the file with the SMTP generic configuration, under which folder ?
    In my case Zabbix server is running under Docker on a Linux server.

    Thanks for your help.
    Dominik
  • Answer selected by domdom at 15-04-2024, 12:00.
    Stephen378Baker
    Junior Member
    • Feb 2024
    • 2

    Originally posted by domdom
    Hello,

    I just would like to know where is located the file with the SMTP generic configuration, under which folder ?
    In my case Zabbix server is running under Docker on a Linux server.

    Thanks for your help.
    Dominik
    Hello,

    When running Zabbix server under Docker on a Linux server, the location of the SMTP generic configuration file depends on the specific setup and version. However, I can guide you through the general steps to locate it:

    Zabbix Server Configuration File:
    The SMTP configuration for Zabbix is typically specified in the Zabbix server configuration file.
    The default location for this file is /etc/zabbix/zabbix_server.conf.
    However, in a Dockerized environment, the configuration files might be located differently due to containerization.
    Dockerized Zabbix Server:
    Since you’re running Zabbix server in a Docker container, the configuration files are within the container itself.
    You’ll need to access the container to modify the SMTP settings.
    Locating Configuration Files in Docker:
    To find the configuration files within the Zabbix Docker container, follow these steps:
    Identify the name or ID of your Zabbix server container (you can use docker ps to list running containers).
    Access the container’s shell using the following command (replace <container_name> with the actual name or ID):
    docker exec -it <container_name> /bin/bash

    Once inside the container, navigate to the appropriate directory where Zabbix configuration files are stored. Common locations include:
    /etc/zabbix/
    /usr/local/etc/zabbix/
    /opt/zabbix/
    SMTP Configuration:
    Look for the zabbix_server.conf file within the container.
    Edit this file to configure SMTP settings, including the SMTP server, port, authentication, and sender details.
    Remember to restart the Zabbix server container after making any changes to the configuration. If you encounter any specific issues or need further assistance, feel free to share additional details, and we’ll troubleshoot together!

    Best Regards

    Comment

    • Stephen378Baker
      Junior Member
      • Feb 2024
      • 2

      #2
      Originally posted by domdom
      Hello,

      I just would like to know where is located the file with the SMTP generic configuration, under which folder ?
      In my case Zabbix server is running under Docker on a Linux server.

      Thanks for your help.
      Dominik
      Hello,

      When running Zabbix server under Docker on a Linux server, the location of the SMTP generic configuration file depends on the specific setup and version. However, I can guide you through the general steps to locate it:

      Zabbix Server Configuration File:
      The SMTP configuration for Zabbix is typically specified in the Zabbix server configuration file.
      The default location for this file is /etc/zabbix/zabbix_server.conf.
      However, in a Dockerized environment, the configuration files might be located differently due to containerization.
      Dockerized Zabbix Server:
      Since you’re running Zabbix server in a Docker container, the configuration files are within the container itself.
      You’ll need to access the container to modify the SMTP settings.
      Locating Configuration Files in Docker:
      To find the configuration files within the Zabbix Docker container, follow these steps:
      Identify the name or ID of your Zabbix server container (you can use docker ps to list running containers).
      Access the container’s shell using the following command (replace <container_name> with the actual name or ID):
      docker exec -it <container_name> /bin/bash

      Once inside the container, navigate to the appropriate directory where Zabbix configuration files are stored. Common locations include:
      /etc/zabbix/
      /usr/local/etc/zabbix/
      /opt/zabbix/
      SMTP Configuration:
      Look for the zabbix_server.conf file within the container.
      Edit this file to configure SMTP settings, including the SMTP server, port, authentication, and sender details.
      Remember to restart the Zabbix server container after making any changes to the configuration. If you encounter any specific issues or need further assistance, feel free to share additional details, and we’ll troubleshoot together!

      Best Regards

      Comment

      • domdom
        Junior Member
        • Feb 2024
        • 2

        #3
        Hello Stephen,

        Thanks for your answer.
        I looked at the configuration file inside the zabbix server container (/etc/zabbix) and there is nothing about SMTP settings except authentication.
        Maybe because i used the office 365 relay option in Alerts/Media type. The generic SMTP option doesn't work and I'd like to understand why by reading the configuration file.

        Zabbix server architecture via a docker-compose :
        - a database,
        - the server,
        - the user interface.

        Do you have any idea ?

        Kind Regards

        Comment

        Working...