- Login into shell access of the server.
- Go to below mentioned path: /var/logs/
- Open the desired Mail logs file and search the contents with grep command.
Similarly, how do I find my SMTP server in Linux?
To check if SMTP is working from the command line (Linux), is one critical aspect to be considered while setting up an email server. The most common way of checking SMTP from Command Line is using telnet, openssl or ncat (nc) command. It is also the most prominent way to test SMTP Relay.
Also, how do I find server details in Linux? Check os version in Linux
- Open the terminal application (bash shell)
- For remote server login using the ssh: ssh user@server-name.
- Type any one of the following command to find os name and version in Linux: cat /etc/os-release. lsb_release -a. hostnamectl.
- Type the following command to find Linux kernel version: uname -r.
Also, where is mail stored Linux?
Mail is usually stored in /var/mail on Linux systems.
How do you send mail in Linux?
mail command examples
- Sending a simple mail. Run the command below, to send an email to .
- Subject and Message in a single line.
- Take message from a file.
- Specify CC and BCC recipients.
- Sending to multiple recipients.
- Specify the FROM name and address.
- Send mail to a local system user.
- Verbose output.