Learn how to use Gmail SMTP mail servers to send system email on Ubuntu with Postfix. Code snippets and more at tonyteaches.tech/postfix-gmai... Check out my vlog channel @TonyFlorida #ubuntu #gmail #smtp #postfix
Пікірлер: 167
@bradydyson65 Жыл бұрын
Thank you so much! I'm a noobie and have only been coding for a year, and I was getting so frustrated with other explanations, but yours was thorough enough that I finally got it to work.
@TonyTeachesTech Жыл бұрын
Glad I could help!
@crafty_sm4 ай бұрын
I finally found a complete video with an excellent explanation, you have helped me a lot. Thank you so much!😊
@artipleweb6106 Жыл бұрын
Thanks man, I was struggling since last 15 days. Finally with your help it's all set up now
@TonyTeachesTech Жыл бұрын
Glad to hear it!
@user-qs4gw4mc4w5 ай бұрын
Really helpful video Tony. Thanks
@OmarOmar-bz5je2 жыл бұрын
Great job Tony. Well organized.
@TonyTeachesTech2 жыл бұрын
Thanks 👍
@StefanSchmalhaus11 ай бұрын
Thank you very much for this tutorial!
@7eyedcrow Жыл бұрын
Thank you man. Worked for me.
@visarsutaj8268 Жыл бұрын
Great job Tony! Clear instructions on how to set up an email server using Ubuntu and Postfix :) The video and the link stated below the vide go hand-in-hand. Tried to go about other ways of setting up email server but it got really confusing especially when such videos or articles were talking about (i) setting a valid FQDN hostname, and (ii) adding MX & A records in the DNS. All of these explanations fall short in explaining the correlations b/w the Postfix and FQDN/MX&A when doing the actual installment.
@canberkozkan5932 жыл бұрын
It was really helpful ! Thanks for the content :)
@TonyTeachesTech2 жыл бұрын
Glad it was helpful!
@OlatunjiOdelade2 жыл бұрын
Excellent Tutorials, Good work @Tony
@TonyTeachesTech2 жыл бұрын
Many thanks!
@GoreBruce6 ай бұрын
You are a life saver, man, thanks!
@GhazanfarMehdi-ks2bo Жыл бұрын
hi tony, I've done all the steps with you but after all set, I didn't receive email. Nor in inbox neither in spam or junk. Please help
@humanidrome5 ай бұрын
Wow thank you so very much ❤❤❤ That really helped me. The easiest postfix explanation I've seen so far.
@TonyTeachesTech5 ай бұрын
You're very welcome!
@cwegescheide1 Жыл бұрын
Hi Tony. Update, i figured out what was wrong. I have mailx working now. But I am trying to attach a small log file and that is not working. No worries though. Thank you soo much for your videos. Very clear and easy to follow. Cheers, Chris
@TonyTeachesTech Жыл бұрын
Thanks for the positive feedback Chris, cheers!
@AhmadREZK3 жыл бұрын
Thanks, You simplified it 👍
@TonyTeachesTech3 жыл бұрын
You bet!
@firstuser54482 жыл бұрын
Thanks man! It was very helpful and to the point. Just a couple of questions: (1) does the `sendmail` program install with the `postfix` package? and (2) can the same setup be used for receiving emails as well?
@chromie-vy2me5 ай бұрын
Omg😢 I'm a student and assignment was due. I spent many days trying to accomplish this task, i even cried, thank you💕
@TonyTeachesTech5 ай бұрын
OMG you cried! I'm happy you got through it finally
@arpitasrivastava46292 жыл бұрын
man this is awesome !! Thanks
@TonyTeachesTech2 жыл бұрын
No problem!
@vahidtavakkoli95782 жыл бұрын
Thanks, simple and nice.
@TonyTeachesTech2 жыл бұрын
You're welcome!
@mobilegamer77672 жыл бұрын
Big thanks for help!
@TonyTeachesTech2 жыл бұрын
You're welcome!
@lefigo1829 ай бұрын
awesome. helped a lot. Thanks
@saurabhgoreamazing93682 жыл бұрын
thanks for the nice video .Achived the objective!!!
@TonyTeachesTech2 жыл бұрын
You're welcome!
@mohammedalinashnoush2336 Жыл бұрын
many thanks it is work, keep going
@gracedong9361 Жыл бұрын
Hi Tony, thanks for the tutorial. It's quite straightforward to follow. I set the postfix following the steps successfully in a linux vm. But setting postfix in a docker container fails. By "fails" I mean the test email cannot be sent out. Could you please give me some advice on how to fix it? Thanks.
@nayemhossainishan2582 жыл бұрын
Thanks, man ..... you are really awesome
@TonyTeachesTech2 жыл бұрын
You're welcome!
@sayansarkar7582 Жыл бұрын
it helps..thank you, Sir
@ravi-gadhiya3 жыл бұрын
Amazing, You are rock👍
@TonyTeachesTech3 жыл бұрын
Thank you so much 😀
@OscarFaustoPelosi3 жыл бұрын
Thank you: you saved me a lot of time! :D
@TonyTeachesTech3 жыл бұрын
Great to hear. You're welcome
@TNTy1009 ай бұрын
Amazing video. Thank you so much.
@TonyTeachesTech9 ай бұрын
Glad you liked it!
@ScrollunlockАй бұрын
amazing thanks for sharing this
@makshaponenko75523 жыл бұрын
It's works. Thank you!
@TonyTeachesTech3 жыл бұрын
You're welcome!
@hyterakuwait4662 жыл бұрын
hi tony thanks too much for the videos , if you read my comment what is the best way to forward all received emails on ubuntu to gmail ?
@RaviJAIN_ravi Жыл бұрын
Hi Tony excellent video. I have set up and configured but exactly but not sure why its not really sending email . Just wondering if you can help ????
@MaksimGrabar Жыл бұрын
You are the BEST!!!!!!!!!!!!!!!!!!!!
@aoben5798 Жыл бұрын
How about the smtp server with 465 port? How to configure it? I have tried configured with that. But it always stuck in mail queue and the log showed that “Client wrappermode (port smtps/465) is unimplemented. Do you have any suggestion?
@cf_tg67364 ай бұрын
tysm
@kimaegaii10 ай бұрын
@1:09 what would my domain email be, like how do i find what i should put there? thanks
@user-hd5lj7io9i2 жыл бұрын
good video! thanks!
@TonyTeachesTech2 жыл бұрын
You're welcome!
@matthall85552 жыл бұрын
any reason you used postfix over the standard linux 'mail' application?
@nrohankar2 жыл бұрын
Thank you!
@TonyTeachesTech2 жыл бұрын
You're welcome!
@johnjohnston68972 жыл бұрын
when I sent the path to postmap (sudo postmap /etc/postfix/sasl/sasl_psswd) it didn't create a .db file... any idea??
@bhattvi Жыл бұрын
awesome
@jeanssmith58643 жыл бұрын
You did well keep going, so I would like to ask you can I send bulk emails if I would like to do that? Or can I use SMTP to others applications senders , thank you
@TonyTeachesTech3 жыл бұрын
It's possible, I have no experience doing that, but I would like to make you aware of the Gmail's policies on this matter. - support.google.com/mail/answer/22839 - support.google.com/mail/answer/81126 - support.google.com/a/answer/166852
@anfalchouikh15152 жыл бұрын
thanks a lot keep going. What are the commands to add here in sending email to chang email transmission protocol i mean to imap or pop3 configuration i really appreciate you help .
@TonyTeachesTech2 жыл бұрын
Hi thank! Sorry I don’t know
@iamtheyikesАй бұрын
Great tutorial but i cant locate your video for setting up SASL. Can you please link it to me?
@another-niko-pfp-holder4 күн бұрын
Is there something that allows you to set postfix up like that on arch?
@StopSocialismUSA3 жыл бұрын
It might be worth mentioning /etc/ssl/certs/ca-certificates.crt was on my GNU/Linux machine by default
@TonyTeachesTech3 жыл бұрын
That might be part of a self-signed cert that is installed with the system
@begelmanleonid6754 Жыл бұрын
is it possible to use sendmail as amtp client with another mail server?
@x.device40464 ай бұрын
Tnx
@TonyTeachesTech4 ай бұрын
Yw
@ameer294210 ай бұрын
YOU ARE AWSOMEEEE!!!!!!
@roman.brunetti8 ай бұрын
Great, how about attachments?
@kesteredmund77232 жыл бұрын
how to save the sasl email and password? is it control + S
@devidashalge56012 жыл бұрын
i have tried in linux but not working can you please guide ?
@jonathansalazar7032 жыл бұрын
A query, what steps should I follow to be able to change my email? Should I delete the database from the old mail?
@TonyTeachesTech2 жыл бұрын
Can you rephrase your question? I don't understand
@cloudtech69372 жыл бұрын
Thanks bro
@TonyTeachesTech2 жыл бұрын
Welcome
@adityasharma27052 жыл бұрын
Hi, i followed your tutorial and i am able to use sendmail command but the crontab is not able to send mail. like if i use sendmail it works , but if i use the MAILTO=email option in the crontab -e, then it is not sending any email. Thanks for your help
@TonyTeachesTech2 жыл бұрын
Hmm I'm really not sure what that's happening
@adityasharma27052 жыл бұрын
@@TonyTeachesTech yeah found out that my cron was not running so anyone if facing this issue just restart your cron. You can search how to restart cron , there a whole page on stackoverflow
@jonathansalazar7033 жыл бұрын
Gracias.
@TonyTeachesTech3 жыл бұрын
:)
@geziraunited Жыл бұрын
I setup my email with virtualmin and Conatbo vps round cube is opened but i can not to connect it with outlook please guide me to fix this problem Thanks , Mohamed
@mikerollin40732 жыл бұрын
Noticed a typo on the blog page for this guide in the following line: "Note that now you will have a database file at /etc/postfix/sasl/sadl_passwd.db" sadl_passwd.db should be sasl_passwd.db Thanks for this great guide!
@TonyTeachesTech2 жыл бұрын
Hey thanks for letting me know Mike. Fixed!
@elpresti3 жыл бұрын
hello, everything executed as you explained but not working on Ubuntu 18.04.. the emails never arrives (also checked on spam, of course), and I can't reach the postfix_log file to check the reason... anyway, thanks for your help
@TonyTeachesTech3 жыл бұрын
Sorry to hear that
@dustindecoursey23312 жыл бұрын
For anyone else that runs into this, check /var/log/mail.err for errors. Same happened to me and I found a typo in my configuration, easy fix.
@cwegescheide1 Жыл бұрын
@@dustindecoursey2331 thanks Dustin. Now I see what my error is!
@user-xy6gz3rg9u3 ай бұрын
Sir it says smtp 530 authorization required. what to do now?
@khabobmma80392 жыл бұрын
Thanks for the video, I was not able to create the sasl_passwd file at all. Once i input the data inside i am in no way able to save it, i can only get out of it and it never creates it.
@khabobmma80392 жыл бұрын
Update: I was able to save the file by using :w
@HijrahTipsandAdvice Жыл бұрын
I didnt see how he saved the vim file. How do we save it once we've created it
@jamesmichaels42092 жыл бұрын
thanks
@TonyTeachesTech2 жыл бұрын
You're welcome!
@abumariemegueye23553 жыл бұрын
thank for this tuto. during my first test I get a google security notification, google blocked the message.
@TonyTeachesTech3 жыл бұрын
You're welcome!
@blinddog12122 жыл бұрын
Clear directions, but it didn't work for me in the end. I try to send a test mail to myself. The command initiates but I never receive the email (checked spam folder too). I'm using Debian 11.
@TonyTeachesTech2 жыл бұрын
Hmmm, perhaps check your mail logs at /var/log/ for clues
@pankajdeshmukh65652 жыл бұрын
perfect
@TonyTeachesTech2 жыл бұрын
Great!
@Rickety32633 жыл бұрын
Can you do a video on hostnamectl and the importance of fqdn?
@TonyTeachesTech3 жыл бұрын
Maybe this will help you? kzfaq.info/get/bejne/rNB0lbmTlrvQZGg.html
@MrBojo-jv4qq Жыл бұрын
You the man!
@mohamedmanas30553 жыл бұрын
I am getting "status=bounced, Authentication required" Error Any idea? In my sassl_passwd file, I'm using direct login password not the App password
@TonyTeachesTech3 жыл бұрын
You will need to use the App password
@robertwermis2971 Жыл бұрын
Hmmm mine is not working, not sure why.
@cortisolblue22082 жыл бұрын
Do you need a domain name? what if i'm just using my pc and I'm not trying to run this off of a server with a paid address? can't my pc's IP just work?
@TonyTeachesTech2 жыл бұрын
Yes you can use an IP locally
@cortisolblue22082 жыл бұрын
@@TonyTeachesTech thanks!
@virtualstudiesforkidds49353 жыл бұрын
Hello Sir. I'm not able to send mail through sendmail command. It is just blinking and didn't receive any output.
@TonyTeachesTech3 жыл бұрын
I'm not sure why
@mariohidalgo69553 жыл бұрын
I received this notification: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
@TonyTeachesTech3 жыл бұрын
Hmm, I'm not sure what that means
@habiburdev2 жыл бұрын
I have followed all steps properly, there is no error, but not getting mail after sending mail.
@TonyTeachesTech2 жыл бұрын
I'm not sure why emails are not coming through
@saurabhgoreamazing93682 жыл бұрын
Have retried the procedure but still no mail can you please tell me why?
@TonyTeachesTech2 жыл бұрын
I don't know
@kevinramirez72 жыл бұрын
I never got the mail :(
@dannyreg84052 жыл бұрын
Followed everything to the "T" and still no email. How can I fix it?
@TonyTeachesTech2 жыл бұрын
If you follow everything exactly, I’m not sure what else to tell you :(
@bablisahu16512 жыл бұрын
It is ctrl+d or t in the end??
@TonyTeachesTech2 жыл бұрын
D
@airanicolecabrillas32273 жыл бұрын
How will postfix accept mail?
@TonyTeachesTech3 жыл бұрын
This is send only
@sanikapatil93842 жыл бұрын
How to edit password ?
@virtualstudiesforkidds49353 жыл бұрын
Can we configure this on Ubuntu 16.04 server??
@virtualstudiesforkidds49353 жыл бұрын
Hello, I'm not able to send mail through send mail command.
@TonyTeachesTech3 жыл бұрын
Yes
@uctrungpham28123 жыл бұрын
Sorry but I can not recieve email from the server. How can I check mail is sent or not?
@TonyTeachesTech3 жыл бұрын
You can check the logs at /var/log
@uctrungpham28123 жыл бұрын
@@TonyTeachesTech Thank you !!!
@ameenal-azzawi21803 жыл бұрын
How to add an attachment?
@TonyTeachesTech3 жыл бұрын
Sorry, I'm not sure
@ismailshaik4163 жыл бұрын
mutt -s "test" -a mymail@mail.com
@thilipantanabalan47683 жыл бұрын
i receive the error notification "network is unreachable" pls reply
@TonyTeachesTech3 жыл бұрын
Can you ping google.com or 8.8.8.8?
@thilipantanabalan47683 жыл бұрын
@@TonyTeachesTech yes bro
@TonyTeachesTech3 жыл бұрын
@@thilipantanabalan4768 Hmmm, sounds like the network is reachable. Perhaps try the suggestions here www.digitalocean.com/community/questions/unable-to-connect-to-smtp-gmail-com-network-is-unreachable
@thilipantanabalan47683 жыл бұрын
@@TonyTeachesTech ok sir will try
@thilipantanabalan47683 жыл бұрын
@@TonyTeachesTech i receive this error bro "(TLS is required, but our TLS engine is unavailable) "
@kayumiman11902 жыл бұрын
not work for me :( can u help me sir, please :)
@TonyTeachesTech2 жыл бұрын
What is the problem?
@kayumiman11902 жыл бұрын
@@TonyTeachesTech now its done, i have wrong configuration, i just release i need to put my smtp email and right port, in my contry ur port not work
@hah36912 жыл бұрын
didnt work for me
@TonyTeachesTech2 жыл бұрын
What happened?
@hah36912 жыл бұрын
@@TonyTeachesTech i send an email but it doesnt apear to reach its destination and i can see it on my gmails sent box
@TonyTeachesTech2 жыл бұрын
@@hah3691 Okay so you can see it's sent, but not received. That's odd. Does it bounce back at all?
@wnywebdevelopment87573 жыл бұрын
I don't get it. Why would anyone want to send emails through the command line?
@TonyTeachesTech3 жыл бұрын
In case it's not clear, the sendmail program is used by the system to send emails. Scheduled cronjobs and critical web server errors are just two examples of automated system emails. Additionally, developers can leverage the sendmail command to generate emails in their software. It's not often that people will use the sendmail command directly. That was just for demonstration. But once you configure your Postfix and SMTP settings, you can further configure Ubuntu to send you important messages and alerts that will help you as a system administration.
@wnywebdevelopment87573 жыл бұрын
@@TonyTeachesTech Hmmm....So that leaves a lot more unanswered questions. What important messages and alerts would ubuntu be sending? Now you got me curious about this.
@TonyTeachesTech3 жыл бұрын
@@wnywebdevelopment8757 😊 happy to hear that! Let's say you've created a backup of your website with a cronjob (I'll have a video about this later in the month). It would be valuable to know when the backup fails. Maybe because the destination server is offline or you ran out of disk space. Otherwise you're in the dark until you logon and figure this out for yourself. And in the case of the web server sending emails, I am using Django for a few of my websites which sends me an email when the web server encounters an internal server error for example. These are just 2 examples, but in either case the first step is to properly configure Postfix SMTP settings.
@wnywebdevelopment87573 жыл бұрын
@@TonyTeachesTech Thanks for explaining. On my website ownbamboo that I migrated too cloudways. I set up their smtp service with sendinblue for my email marketing campaigns and I use privateemail as the business email because I can use my domain @ownbamboo.com. So seeing that I want my email address with my domain can I do that on postfix for free or should I just keep things as they are and keep paying for my business email?
@wnywebdevelopment87573 жыл бұрын
@@TonyTeachesTech Read this article www.linuxbabe.com/mail-server/setup-basic-postfix-mail-sever-ubuntu. This is where I thought you were going with it because you really don't show what to do with postfix after it's installed.
@garys3673 Жыл бұрын
dont try to hacker me, :)
@_yomiadebowale Жыл бұрын
I followed the tutorial but the mail is not reflecting on the recipient email. Instead I keep getting the you have a new mail at /var/mail/user