uyuni-project / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
430 stars 180 forks source link

How to test smtp setup? #6718

Open zaheerabbas1988 opened 1 year ago

zaheerabbas1988 commented 1 year ago

Question

What do you want to know about Uyuni?

I have made the changes in /etc/rhn/rhn.conf for our smtp server; ` web.default_mail_from = Uyuni (bar.ac.uk) uyuni@foo.ac.uk java.hostname = bar.ac.uk

java.smtp_server = mail.foo.ac.uk `

Also made the necessary changes in the postfix configuration i.e., /etc/postfix/main.cf

relayhost = mail.foo.ac.uk:25

My question is, how to send some test emails so I could see some mailing logs to verify if it's working?

Right now, I can only see the following postfix daemon logs in /var/log/mail

2023-03-10T14:24:28.046536+00:00 uyuni postfix/postfix-script[4769]: starting the Postfix mail system 2023-03-10T14:24:28.073911+00:00 uyuni postfix/master[4771]: daemon started -- version 3.5.9, configuration /etc/postfix

` Information for package Uyuni-Server-release:

Repository : uyuni-server-stable Name : Uyuni-Server-release Version : 2023.03-220400.199.1.uyuni2 Arch : x86_64 Vendor : obs://build.opensuse.org/systemsmanagement:Uyuni Support Level : Level 3 Installed Size : 1.4 KiB Installed : Yes (automatically) Status : out-of-date (version 2022.11-220400.193.4.uyuni2 installed) Source package : Uyuni-Server-release-2023.03-220400.199.1.uyuni2.src Summary : Uyuni Server `

zaheerabbas1988 commented 1 year ago

In the end, these settings did work and I am getting the notifications via email without any issue. But the question remains the same. Is there any way to test SMTP configuration by sending a test mail?

juliogonzalez commented 1 year ago

Not that I am aware of.