Hello !
Do you receive a mail with the following command ?
echo "Test" | mail -s "Test" utilisateur@fai.com
So the problem is probably on your Postfix config, can you give your main.cf ?
Hi. This is my config:
myhostname = centreon-central
relayhost = 10.1.0.61]:25
smtp_use_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
#smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtp_sasl_security_options = anonymous
smtp_sasl_tls_security_options = anonymous
Hello, you must check the mail log with this : tail -f /var/log/maillog
And check if your postfix is on : systemctl status postfix
Hello I have this message
[root@centreon-central ~]# echo "Test" | mail -s "Test" mymail@domain.com
[root@centreon-central ~]# send-mail: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
postdrop: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
^C
[root@centreon-central ~]# tail -f /var/log/maillog
tail: cannot open '/var/log/maillog' for reading: No such file or directory
tail: no files remaining
[root@centreon-central ~]# systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2023-04-03 15:39:22 CEST; 3 days ago
Process: 1359517 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
Process: 1491432 ExecReload=/usr/sbin/postfix reload (code=exited, status=0/SUCCESS)
Process: 1359539 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
Process: 1359537 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
Process: 1359534 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
Process: 1359531 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid/master.pid (code=exited, status=0/SUCCESS)
Main PID: 1359607 (master)
Tasks: 7 (limit: 23067)
Memory: 11.8M
CGroup: /system.slice/postfix.service
├─1359607 /usr/libexec/postfix/master -w
├─1491444 qmgr -l -t unix -u
├─1491445 pickup -l -t unix -u
├─1491462 cleanup -z -t unix -u
├─1491463 trivial-rewrite -n rewrite -t unix -u
├─1491464 smtp -t unix -u
└─1491465 tlsmgr -l -t unix -u
Apr 06 17:21:51 centreon-central postfix/pickup1491445]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 06 17:22:03 centreon-central postfix/cleanupl1491462]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 06 17:22:03 centreon-central postfix/pickupi1491445]: B6CE8E815: uid=0 from=<root>
Apr 06 17:22:03 centreon-central postfix/trivial-rewrite11491463]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 06 17:22:03 centreon-central postfix/cleanupl1491462]: B6CE8E815: message-id=<20230406152203.B6CE8E815@centreon-central>
Apr 06 17:22:03 centreon-central postfix/qmgr61491444]: B6CE8E815: from=<root@centreon-central>, size=426, nrcpt=1 (queue active)
Apr 06 17:22:03 centreon-central postfix/smtp&1491464]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 06 17:22:03 centreon-central postfix/tlsmgri1491465]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 06 17:22:03 centreon-central postfix/smtpA1491464]: B6CE8E815: to=<mymail@domain.com>, relay=10.1.0.61n10.1.0.61]:25, delay=0.22, delays=0.04/0.04/0.01/0.13, dsn=2.6.0, status=sent (250 2.6.0 <20230406152203.B6CE8E815@centreon-cent>
Apr 06 17:22:03 centreon-central postfix/qmgr01491444]: B6CE8E815: removed
I need to configurate a certificate or something else?
[root@centreon-central ~]# tail -f /var/log/maillog
tail: cannot open '/var/log/maillog' for reading: No such file or directory
tail: no files remaining
[root@centreon-central ~]#
I not have logs or I need to search in another path?
I dont receive email only in status posfix I can view..
Apr 14 10:33:40 centreon-central postfix/qmgrm1813666]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 14 10:33:59 centreon-central postfix/cleanupn1813677]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 14 10:33:59 centreon-central postfix/pickupk1813665]: 96196E811: uid=0 from=<root>
Apr 14 10:33:59 centreon-central postfix/trivial-rewritei1813678]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 14 10:33:59 centreon-central postfix/cleanupn1813677]: 96196E811: message-id=<20230414083359.96196E811@centreon-central>
Apr 14 10:33:59 centreon-central postfix/qmgrm1813666]: 96196E811: from=<root@centreon-central>, size=426, nrcpt=1 (queue active)
Apr 14 10:33:59 centreon-central postfix/smtpm1813679]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 14 10:33:59 centreon-central postfix/tlsmgrm1813680]: warning: /etc/postfix/main.cf, line 748: overriding earlier entry: smtp_tls_CAfile=/etc/pki/tls/certs/ca-bundle.crt
Apr 14 10:33:59 centreon-central postfix/smtpm1813679]: 96196E811: to=<omoyano@domaine.com>, relay=mysmtp.domaine.comc10.1.0.61]:25, delay=0.21, delays=0.04/0.03/0.01/0.13, dsn=2.6.0, status=sent (250 2.6.0 <20230414083359.96196E811@centre>
Apr 14 10:33:59 centreon-central postfix/qmgrm1813666]: 96196E811: removed
Hey
I for the configuration of postfix i just followed this : https://docs.centreon.com/fr/docs/administration/postfix/
I don’t have any clue for this problem...