Linux POSTFIX Tutorial to send EMAIL | MPrashant

  Рет қаралды 22,867

M Prashant

M Prashant

Күн бұрын

#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

Пікірлер: 84
@victorified2912
@victorified2912 Жыл бұрын
Thank you too much sir Aapne meri comment Sun li Akhir video bana hi diya Great help ty🎉
@MPrashant
@MPrashant Жыл бұрын
Glad it helped!
@SakshiAbrol-j4o
@SakshiAbrol-j4o Ай бұрын
thanks alot , i was stuck but bcoz of your video i got the solution
@MPrashant
@MPrashant Ай бұрын
Glad it helped
@shashankguia
@shashankguia Жыл бұрын
Thanks bro it’s really help me a lot
@MPrashant
@MPrashant Жыл бұрын
Glad it helped!
@Neel_Vjghfdssdfg
@Neel_Vjghfdssdfg Жыл бұрын
Thankyou Sir Means alot
@MPrashant
@MPrashant Жыл бұрын
Glad to hear that!
@piyushpatil6874
@piyushpatil6874 10 ай бұрын
One of the best content in indian linux community ❤
@MPrashant
@MPrashant 10 ай бұрын
Thank you for the feedback 😊
@mktfasshwetasoftware3343
@mktfasshwetasoftware3343 6 ай бұрын
Excellent tutorial . Thank you very much.
@MPrashant
@MPrashant 6 ай бұрын
Glad it was helpful!
@MuhammadImran-yq1qn
@MuhammadImran-yq1qn Жыл бұрын
Great tutorial, can we use DMARC and DKIM as well with Postfix?
@ShoaibSayyed
@ShoaibSayyed 11 ай бұрын
Hi, please let me know how set mail send limit size .
@sumset4u
@sumset4u 8 ай бұрын
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 ?
@ConfusedChannel
@ConfusedChannel 9 күн бұрын
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 ?
@MuhammadZahid-px7gs
@MuhammadZahid-px7gs 11 ай бұрын
when i enter send-mail command it show me the message command not found how can i fix it pls tell me sir
@techrohhit
@techrohhit Жыл бұрын
Can you make a video on dedicated mail server with attach mysqldb like other organisation do.??
@MrVeeru87
@MrVeeru87 2 күн бұрын
Paul Bhai how to send mails through web console using postfix mail server, can you please make a video on that
@akashshelke5330
@akashshelke5330 8 ай бұрын
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.
@MuhammadSaaddev
@MuhammadSaaddev 2 ай бұрын
Excellent work !
@MPrashant
@MPrashant 2 ай бұрын
Thank you! Cheers!
@MohdMohsin-qm9uh
@MohdMohsin-qm9uh Жыл бұрын
👌👌👌
@advaithaithal2537
@advaithaithal2537 Ай бұрын
Thanks a lot! It really worked. I do have a question apart from this. Can we send the mail from gmail to our server?
@jamesjayakumar1806
@jamesjayakumar1806 11 ай бұрын
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.****
@MPrashant
@MPrashant 11 ай бұрын
Thanks for sharing feedback For NFS you can try watching this video Learn Linux NFS Fast--You WON'T BELIEVE What Happens Next! | MPrashant kzfaq.info/get/bejne/Z7pyd5ySsrebgps.html
@swatimeshram4359
@swatimeshram4359 6 ай бұрын
Hi Sir, I've followed the same procedure still I'm not getting any mails in my mailbox. Coulr you please suggest on it?
@VinodYadav-fe6xe
@VinodYadav-fe6xe 11 ай бұрын
What is UNIVERSAL isa and how it will work in version 26 in perl.. please Bhai ek videos bana do
@aminhaqparast
@aminhaqparast 3 ай бұрын
nice job man!
@MPrashant
@MPrashant 2 ай бұрын
Thanks!
@nikhilkori5702
@nikhilkori5702 Жыл бұрын
Appreciate your hard work. Please create a video on samba server and Mysql server as well with detailed explanation. Thank you.
@MPrashant
@MPrashant Жыл бұрын
Thank you! I will try to upload asap on Samba! Uploaded one video on MySQL kzfaq.info/get/bejne/bpyXfK2BzLKuoGQ.html
@user-bx1wy7io4y
@user-bx1wy7io4y 9 ай бұрын
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?
@abhaykanwasi881
@abhaykanwasi881 7 ай бұрын
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
@user-xy6gz3rg9u
@user-xy6gz3rg9u 3 ай бұрын
Sir unable to receive the attach file instead of file email showing the content of file
@ancient7817
@ancient7817 2 ай бұрын
Hi sir how we can send script output in email in every 1 minutes, plz help
@himanshu7271
@himanshu7271 6 ай бұрын
rpm is not working in debian? Any alternative ?
@satishgaikwad1454
@satishgaikwad1454 Жыл бұрын
It's very nice
@MPrashant
@MPrashant Жыл бұрын
Thanks a lot 😊
@MPrashant
@MPrashant Ай бұрын
In latest version mailx is relaced by s-nail
@shaikhrahil6880
@shaikhrahil6880 24 күн бұрын
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?
@shaikhrahil6880
@shaikhrahil6880 24 күн бұрын
Pls answer if u got time
@piyushnikhade2034
@piyushnikhade2034 6 ай бұрын
Hi, I followed all your steps but still did not receive any mail in gmail. Is this due to some other gmail setting ?
@brazo98
@brazo98 6 ай бұрын
Nice Tutorial Dude
@MPrashant
@MPrashant 6 ай бұрын
Thanks!
@siddhartharora707
@siddhartharora707 Ай бұрын
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
@unknown-kn4uf
@unknown-kn4uf 6 ай бұрын
thanks
@CypherX-Sec
@CypherX-Sec Жыл бұрын
Thank you God for this channel 🥹🥹🙏🙏🙏
@MPrashant
@MPrashant Жыл бұрын
Glad to see I can help with this channel!
@deepthakur3382
@deepthakur3382 5 ай бұрын
sir mailx use m nahi ha centOS m
@prabhmeetsingh6995
@prabhmeetsingh6995 5 ай бұрын
how do we attach multiple files 20+
@krishnasai8471
@krishnasai8471 Жыл бұрын
Please make a video on SAR command
@adinathwaikar7511
@adinathwaikar7511 7 ай бұрын
Debian 11 pe kuch alag araha hey
@akashkhandagale1293
@akashkhandagale1293 Жыл бұрын
Linux backup DUMP and SCP pe video banav
@gajendrakadu29
@gajendrakadu29 Жыл бұрын
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 )
@MPrashant
@MPrashant Жыл бұрын
Which Linux distribution are you using?
@MPrashant
@MPrashant Жыл бұрын
Looks like ststemctl command is not supported
@gajendrakadu29
@gajendrakadu29 Жыл бұрын
I have CentOS 6.4 in my VM.
@MPrashant
@MPrashant Жыл бұрын
@@gajendrakadu29 Can you try this command: service postfix start
@simranbanwait
@simranbanwait 7 ай бұрын
If we are using this on a ec2 server, do we have to enable port 587 in the outbound rules ?
@simranbanwait
@simranbanwait 7 ай бұрын
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.
@simranbanwait
@simranbanwait 7 ай бұрын
Ho gaya... 🤡
@sushanthreddy1927
@sushanthreddy1927 5 ай бұрын
How did u do it bro? requested aws to remove restriction?@@simranbanwait
@madhuppandey3151
@madhuppandey3151 Жыл бұрын
Error :- Open database /etc/postfix/sasl/sasl_password.db: no such file or directory
@MPrashant
@MPrashant Жыл бұрын
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
@madhuppandey3151
@madhuppandey3151 Жыл бұрын
Issue solved
@luckykumarreal2948
@luckykumarreal2948 6 ай бұрын
Sir i am using kali linux. I am unable to install Postfix. How i install in kali linux
@MPrashant
@MPrashant 6 ай бұрын
You can try sudo apt install postfix
@Adityaraj-vz7qo
@Adityaraj-vz7qo 2 ай бұрын
make a video for how to create unlimited business email using postfix
@akashpawar3821
@akashpawar3821 Жыл бұрын
What about rhel flavour
@MPrashant
@MPrashant Жыл бұрын
It will work on rhel too
@anonymoushacks4919
@anonymoushacks4919 10 ай бұрын
Mailx is not installing in rhel 9 plz help me out
@RonitKumar-jp1qk
@RonitKumar-jp1qk 2 ай бұрын
Last me nhi hua bhai
@madhuppandey3151
@madhuppandey3151 Жыл бұрын
Error : 587 is unreachable
@madhuppandey3151
@madhuppandey3151 Жыл бұрын
Please tell me this error
@MPrashant
@MPrashant Жыл бұрын
@@madhuppandey3151 try stopping the firewall
@madhuppandey3151
@madhuppandey3151 Жыл бұрын
If I stop firewall then I have Tomcat in my server so it will get affected ?
@madhuppandey3151
@madhuppandey3151 Жыл бұрын
@M Prashant please tell me
@indrajeetgoyal1711
@indrajeetgoyal1711 Жыл бұрын
Postgres ka koi video banaiye na
@MPrashant
@MPrashant Жыл бұрын
I will try
@devashishsingh1
@devashishsingh1 2 ай бұрын
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.
@Raj-rj1qp
@Raj-rj1qp 29 күн бұрын
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 .
@viswanathreddy3085
@viswanathreddy3085 Жыл бұрын
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 =
@tskishan3000
@tskishan3000 9 ай бұрын
postmap: warning: /etc/postfix/main.cf, line 58: overriding earlier entry: smtp_tls_security_level=may what to now how to solve this error
Linux Log Monitoring | How to Do Log Analysis? | MPrashant
19:47
Linux Service Management Using SYSTEMCTL Command | MPrashant
12:16
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 9 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
How to Configure Postfix with Gmail on Ubuntu
11:03
Tony Teaches Tech
Рет қаралды 63 М.
How hackers spoof your email address
17:52
CTF Security
Рет қаралды 26 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 70 М.
RHCE Training - Postfix Mail Server Configuration
22:05
networknutsdotnet
Рет қаралды 53 М.
How to Install and Configure a Postfix Mail Server with Dovecot on Linux Ubuntu
15:29
Hetman Software: Data Recovery for Windows
Рет қаралды 63 М.
What is Docker? Simply Explained by Shradha Ma'am
19:32
Apna College
Рет қаралды 266 М.
Complete Shell Scripting Tutorials | Shell Script to Send Email Alert When Memory Gets Low
9:12
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 9 МЛН