hi @ponchoh ! that work when i use an gmail account but i don’t wnt to use an relayhost. My responsable prefer my Server Centreon send directly the notification (lik email from user@centreon-srv.net or user@localhost ) did you understand ! sorry if my not precise ^^
Hello @tsuko,
do you have an email server setup?
smtp?
config with your allowed network?
what have you tried?
Hi @ponchoh !
yes my company has its own domain which is hosted by an external service provider. But we can access to manage it if we want.
@tsuko
can you use your provider for smtp? what have you tried?
@ponchoh hi !
i’m retrying to use email nofication with postfix. But i don’t use gmail as relayhost .
I try to use my provider smtp server in my config but that doesn’t work .
When i try to do “a echo test” that don’t work and send an respond in my local user of centreon (like root or centreon-engine) in var/mail
The response is:
From MAILER-DAEMON Sun Jan 12 17:46:42 2025 Return-Path: <> X-Original-To: root@srv-centreon.xxxx.lan Delivered-To: root@srv-centreon.xxxx.lan Received: by srv-centreon.xxxx.lan (Postfix) id 4661611FC55; Sun, 12 Jan 2025 17:46:42 +0100 (CET) Date: Sun, 12 Jan 2025 17:46:42 +0100 (CET) From: Mail Delivery System <MAILER-DAEMON@srv-centreon.xxxx.lan> Subject: Undelivered Mail Returned to Sender To: root@srv-centreon.xxxx.lan Auto-Submitted: auto-replied MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="2826111FC50.1736700402/srv-centreon.xxxx.lan" Content-Transfer-Encoding: 8bit Message-Id: <20250112164642.4661611FC55@srv-centreon.xxxx.lan>
Return-Path: <root@srv-centreon.xxxx.lan> Received: by srv-centreon.xxxx.lan (Postfix, from userid 0) id 2826111FC50; Sun, 12 Jan 2025 17:46:42 +0100 (CET)
@ponchoh and that is my main.cf configuration:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no
# appending .domain is the MUA's job. append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on # fresh installs. compatibility_level = 3.6