Linux POSTFIX Tutorial to send EMAIL | MPrashant

Published: 21 March 2023
on channel: M Prashant
25k
436



Join this channel to get access to perks:


-------------------------------
Postfix Config lines

Add the following lines

relayhost = [smtp.gmail.com]:587
myhostname= your_hostname

# Location of sasl_passwd we saved
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd

# Enables SASL authentication for postfix
smtp_sasl_auth_enable = yes
smtp_tls_security_level = encrypt

# Disallow methods that allow anonymous authentication
smtp_sasl_security_options = noanonymous

-------------------------------------------------------------------------------------------

Create a file under /etc/postfix/sasl/

Filename: sasl_passwd

Add the below line
[smtp.gmail.com]:587 email

------------------------------------------------------------------------------------------

To send an email using Linux terminal

echo "Test Mail" | mail -s "Postfix TEST" paul


In this video, we will cover about Postfix service configuration on Linux server.
Postfix installation and Mailx
Editing postfix config to add the google smtp as relayhost
how to authenticate google smtp credentials
how to send an email using mail command with attachment

00:00 Intro
01:00 Installation of Postfix and Mailx
02:54 Editing postfix Configuration
07:50 sasl_passwd file
09:11 How to Generate Google SMTP Password
13:52 Sending Email using Mail command
15:48 Sending Email with Attachment in Linux

Linux postfix tutorial
Linux postfix configuration
Linux postfix with gmail smtp
smtp.google.com
How to send email using POSTFIX?
How to send email in Linux?
How to send email from Linux server?
How to send email from Linux server using gmail SMTP?
Linux Emails


Watch video Linux POSTFIX Tutorial to send EMAIL | MPrashant online without registration, duration 17 minute 16 second in high hd quality. This video was added by user M Prashant 21 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 25 thousand once and liked it 43 people.