SMTP with Authentication | Testing Command Verification

101 views
Skip to first unread message

Daniel

unread,
Nov 18, 2022, 3:43:37 PM11/18/22
to Wazuh mailing list
Hello Everyone,
Can anyone confirm the below parameters placement are correct ?

My Case:
Configured SMTP Mail-Box through  App Password:

The recipient address where I want to send email, alert notification or report:

  • The Testing Command as per document section "SMTP server with authentication":

            echo "Test mail from postfix" | mail -s "Test Postfix" -r "y...@example.comy...@example.com

  • The Testing Command that I modified as per my case:
echo "Test mail from postfix" | mail -s "Test Postfix" -r "daniyaly...@gmail.comdaniyal...@gmail.com


Note: Please confirm is above placement of address are correct ? "-r" switch is used for return address and in my case the sending address is "daniyaly...@gmail.com" and I think it  should be return address also. Further in the very last is the actual receiver address  and in my case the receiver is "daniyal...@gmail.com".



Daniel

unread,
Nov 19, 2022, 10:18:59 AM11/19/22
to Wazuh mailing list
Dear Wazuh Team,
Anyone there to help?

Abdullah Al Rafi Fahim

unread,
Nov 20, 2022, 8:58:47 PM11/20/22
to Wazuh mailing list
Hello Daniel,

Sorry for the late response!

In the command for testing your Postfix configuration with sample email, the format is as below:

echo "Mail Body" | mail -s "Mail Title" -r "recipient_email" recipient_email

The sender email has already been configured with credential at /etc/postfix/sasl_passwd file and not needed to be mentioned in this command. Therefore, in your example both the email address should be your recipient email address.

echo "Test mail from postfix" | mail -s "Test Postfix" -r "daniyal...@gmail.com" daniyal...@gmail.com

You should receive a test email in your recipient email after running this command, if you have already followed the previous steps properly as described here: https://documentation.wazuh.com/current/user-manual/manager/manual-email-report/smtp-authentication.html

In the next step, you need to configure the Wazuh Manager to send email notifications following this documentation: https://documentation.wazuh.com/current/user-manual/manager/manual-email-report/index.html

I hope it helps. Please let us know if you need anything else.

Daniel

unread,
Nov 21, 2022, 5:02:08 PM11/21/22
to Wazuh mailing list
Hello Team Wazuh and Abdullah,
Thanks for your response, I have exactly followed the exact steps as mentioned in the document, but unbale to receive emails on receiving end.
FYI!
1.PNG
2.png

Abdullah Al Rafi Fahim

unread,
Nov 22, 2022, 8:42:04 PM11/22/22
to Wazuh mailing list
Hello Daniel,

My colleague Lucio is working on this issue and trying to help you here: https://wazuh.slack.com/archives/C0A933R8E/p1666642237559949

You can response there in the Slack thread to discuss the issue further. 

Reply all
Reply to author
Forward
0 new messages