Linux POSTFIX Tutorial to send EMAIL | MPrashant
Вставка
- Опубліковано 31 лип 2024
- #linux #mprashant #linuxtutorial @MPrashant
Join this channel to get access to perks:
/ @mprashant
-------------------------------
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@gmail.com:password
------------------------------------------------------------------------------------------
To send an email using Linux terminal
echo "Test Mail" | mail -s "Postfix TEST" paul@gmail.com
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
Thank you too much sir
Aapne meri comment Sun li
Akhir video bana hi diya
Great help ty🎉
Glad it helped!
Thankyou Sir
Means alot
Glad to hear that!
in red hat 9 mailx is no longer used , replacement utility in RHEL 9 is s-nail. could you please give some tips regarding same ?
Thanks bro it’s really help me a lot
Glad it helped!
thanks alot , i was stuck but bcoz of your video i got the solution
Glad it helped
Great tutorial, can we use DMARC and DKIM as well with Postfix?
Will this work for custom domain in a production network?? We r using Gmail via google workspace ..
Do i have to add any dns records ?
Excellent tutorial . Thank you very much.
Glad it was helpful!
when i enter send-mail command it show me the message command not found how can i fix it pls tell me sir
I'm using Ubuntu and in my case mail command is not able to send attachments. However, I'm able to send the attachments successfully using mutt command.
One of the best content in indian linux community ❤
Thank you for the feedback 😊
Hi Sir, I've followed the same procedure still I'm not getting any mails in my mailbox. Coulr you please suggest on it?
Hi, please let me know how set mail send limit size .
Hi Prashant
==============HELP HELP HELP==============
I did everything as mentioned in this video
But still unable to send email.
Also not showing any kind of error message.
I have a questions to ask
1. I have created fresh ec2 instance and start using the steps as mentioned in this videos. Do I need to have anything else more to configure in this VM.
2. I used sudo apt install postfix > it shows already install. But when running this command "postfix --version" it doesn't show anything | same with mailx command | ==============What's the issue do you think?
Can you make a video on dedicated mail server with attach mysqldb like other organisation do.??
👌👌👌
In latest version mailx is relaced by s-nail
Bro if I don't want to use my personal account because I'm doing this for production level application then how to do it
Thanks a lot! It really worked. I do have a question apart from this. Can we send the mail from gmail to our server?
Excellent work !
Thank you! Cheers!
Hi, I followed all your steps but still did not receive any mail in gmail. Is this due to some other gmail setting ?
What is UNIVERSAL isa and how it will work in version 26 in perl.. please Bhai ek videos bana do
Appreciate your hard work.
Please create a video on samba server and Mysql server as well with detailed explanation.
Thank you.
Thank you!
I will try to upload asap on Samba!
Uploaded one video on MySQL
ua-cam.com/video/86gIJPgLJp0/v-deo.html
Thanks a lot for the very good explanation. I have understood these kinds of easy steps of postfix configuration.
***Can you please explain about NFS mount point share from the Linux server to Windows server any kind of document or video please share.****
Thanks for sharing feedback
For NFS you can try watching this video
Learn Linux NFS Fast--You WON'T BELIEVE What Happens Next! | MPrashant
ua-cam.com/video/1TBD9aMQ7Rg/v-deo.html
Sir unable to receive the attach file instead of file email showing the content of file
Hi sir how we can send script output in email in every 1 minutes, plz help
rpm is not working in debian?
Any alternative ?
nice job man!
Thanks!
Subscribed, thanks for all the videos, struggling to find a job , Bus 1 question hai
attachment time pe "-a" se invalid header error aa raha hai ,
i googled it and it was "-A" caps mein , I use Ubuntu , may be that why , anyways thanks bro for everything
thanks
It's very nice
Thanks a lot 😊
Nice Tutorial Dude
Thanks!
sir mailx use m nahi ha centOS m
how do we attach multiple files 20+
Thanks Prashant for making clear and crisp content. Although I am receiving email correctly but whenever I am executing the main command it's show this error "Unknown command: "SUBJECT=". Also I am configuring a disk space alert and I want to mail 8 members in a group how can I achieve that?
Pls answer if u got time
Please make a video on SAR command
Linux backup DUMP and SCP pe video banav
Error :-
Open database /etc/postfix/sasl/sasl_password.db: no such file or directory
Make sure you have created this file and location
/etc/postfix/sasl/sasl_password.db
and also check the permissions for this file or in parent directory
Issue solved
If we are using this on a ec2 server, do we have to enable port 587 in the outbound rules ?
Zaroorat nahi padi iski...
But i'm having another problem,
Mail to send ho jaa rahi hai,
But attachment me pdf file ni send hori.
Ho gaya... 🤡
How did u do it bro? requested aws to remove restriction?@@simranbanwait
very useful video sir. i tried all step on my VM where i install centos. but i got error in last step ,could you please suggest solution (error:[root@localhost sasl]# systemctl start postfix.service
-bash: systemctl: command not found
)
Which Linux distribution are you using?
Looks like ststemctl command is not supported
I have CentOS 6.4 in my VM.
@@gajendrakadu29 Can you try this command: service postfix start
Sir i am using kali linux. I am unable to install Postfix. How i install in kali linux
You can try sudo apt install postfix
Debian 11 pe kuch alag araha hey
Thanks for the video !! When i try to generate the sasl_passwd.db file it's getting as below.
postmap sasl_passwd
postmap: warning: /etc/postfix/main.cf, line 54: overriding earlier entry: smtp_tls_security_level=may
postmap: fatal: bad string length 0 < 1: mydomain =
What about rhel flavour
It will work on rhel too
Mailx is not installing in rhel 9 plz help me out
postmap: warning: /etc/postfix/main.cf, line 58: overriding earlier entry: smtp_tls_security_level=may
what to now how to solve this error
make a video for how to create unlimited business email using postfix
Last me nhi hua bhai
Error : 587 is unreachable
Please tell me this error
@@madhuppandey3151 try stopping the firewall
If I stop firewall then I have Tomcat in my server so it will get affected ?
@M Prashant please tell me
Poor way of teaching, You must get into depth of each setting. Just copy paste and run commands. The way you escaped SASL lines explanation was horrible.
Bro this was just to setup a mail protocol. Not required to know everything here.😊 Even if you want more details on it,you can follow other topic aligned videos .
Postgres ka koi video banaiye na
I will try
Thank you God for this channel 🥹🥹🙏🙏🙏
Glad to see I can help with this channel!