How to Configure mailx in linux 7 to send email|| mailx commands||wiz maverick

Опубликовано: 18 Август 2026
на канале: wiz maverick
11,220
45

How to Configure mailx in linux 7 to send emails from terminal using GMAIL as an external SMTP Server.
1. How to Set Time, Timezone and Synchronize System Clock Using timedatectl Command| wiz maverick
   • How to Set Time, Timezone and Synchronize ...  
2. Activiti BPM | Business Process Management (BPM) |wiz maverick
   • Activiti BPM | Business Process Management...  
3. How to create local repository in linux 7/centos 7 || Wiz maverick
   • How to create local repository in linux 7/...  
4. How to Configure mailx in linux 7 to send emails from terminal using GMAIL as an external SMTP Server.
   • How to Configure mailx in linux 7 to send ...  

yum install -y mailx


Lets tell google we gonna send emails from other devices also.

https://www.youtube.com/redirect?even...

Edit

vim /etc/mail.rc

#----------- add the below lines and append as per your credentials.


set smtp=smtps://smtp.gmail.com:465
set smtp-auth=login
set smtp-auth-user=youremailadderess
set smtp-auth-password=YOURPASSWORD
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/

Update the gmail account credentails over here and save

Now we are all done , we will be using gmail to send email from our linux box.

echo "Test Email" | mailx -v -s "Send an email via mailx" [email protected]
.
%%%%%
Wondering where to go on your next trip? Here are some news that will surely interest you.
Visit the following links:
https://www.ivisa.com/?utm_source=par...
https://www.ivisa.com/apply-online?ut...
%%%%%