CyberKeeda In Social Media
Showing posts with label Mail Server. Show all posts
Showing posts with label Mail Server. Show all posts

How to send emails from Linux terminal and shell scripts using GMAIL



GMAIL SMTP Configuration on Linux Box.


Video Tutorial.



###########  Use GMAIL SMTP server to send mails ##################


# yum install -y mailx

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

https://myaccount.google.com/lesssecureapps

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=USERNAME@YOURDOMAIN.COM
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 "Relay Test" | mail -v -s "Relay test" anyworkingemailid@anydomain.com

anyways...  you send it to multiple domains now..

Rememeber ... From email id will be the same that you have configured within /et/mail.rc file

# Thanks


Read more ...

Configure a Postfix Mail serve using Roundcube Webmail ,OpenLDAP, DNS and Dovecot

If a picture can share 1000 thoughts , then how much a series of running pictures, video can share our thoughts.
On belief on the same i found this youtube video helps me to configure a production Mail server and will help you the same as a best proactive follow it.

Postfix        : MTA (Mail Transfer Agent)
Roundcube :  Web based IMAP/ MTA Agent
Openldap    : Directory Server
Dovecot      : IMAP/POP3 Server.





Read more ...
Designed By Jackuna