How to Configure Postfix with Gmail on Ubuntu

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 173

  • @bradydyson65
    @bradydyson65 2 ปีที่แล้ว +1

    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.

  • @GhazanfarMehdi-ks2bo
    @GhazanfarMehdi-ks2bo ปีที่แล้ว +7

    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

  • @artipleweb6106
    @artipleweb6106 2 ปีที่แล้ว +1

    Thanks man, I was struggling since last 15 days. Finally with your help it's all set up now

  • @crafty_sm
    @crafty_sm 9 หลายเดือนก่อน

    I finally found a complete video with an excellent explanation, you have helped me a lot. Thank you so much!😊

  • @visarsutaj8268
    @visarsutaj8268 2 ปีที่แล้ว +2

    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.

  • @chromie-vy2me
    @chromie-vy2me 10 หลายเดือนก่อน

    Omg😢 I'm a student and assignment was due. I spent many days trying to accomplish this task, i even cried, thank you💕

    • @TonyTeachesTech
      @TonyTeachesTech  10 หลายเดือนก่อน

      OMG you cried! I'm happy you got through it finally

  • @OlatunjiOdelade
    @OlatunjiOdelade 2 ปีที่แล้ว +1

    Excellent Tutorials, Good work @Tony

  • @OmarOmar-bz5je
    @OmarOmar-bz5je 3 ปีที่แล้ว +1

    Great job Tony. Well organized.

  • @AHumanBeingbeing
    @AHumanBeingbeing 2 ปีที่แล้ว +1

    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
      @TonyTeachesTech  2 ปีที่แล้ว

      Thanks for the positive feedback Chris, cheers!

  • @humanidrome
    @humanidrome 11 หลายเดือนก่อน

    Wow thank you so very much ❤❤❤
    That really helped me. The easiest postfix explanation I've seen so far.

  • @hyterakuwait466
    @hyterakuwait466 2 ปีที่แล้ว +2

    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 ?

  • @ABHISHEKSAH-z3t
    @ABHISHEKSAH-z3t 11 หลายเดือนก่อน

    Really helpful video Tony. Thanks

  • @RaviJAIN_ravi
    @RaviJAIN_ravi 2 ปีที่แล้ว +1

    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 ????

  • @aoben5798
    @aoben5798 ปีที่แล้ว +1

    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?

  • @matthall8555
    @matthall8555 2 ปีที่แล้ว +1

    any reason you used postfix over the standard linux 'mail' application?

  • @charlesqueiroz573
    @charlesqueiroz573 5 หลายเดือนก่อน

    Outstanding the presentation!

  • @GoreBruce
    @GoreBruce 11 หลายเดือนก่อน

    You are a life saver, man, thanks!

  • @mikerollin4073
    @mikerollin4073 2 ปีที่แล้ว

    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!

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Hey thanks for letting me know Mike. Fixed!

  • @DavyOliveira-n4z
    @DavyOliveira-n4z หลายเดือนก่อน

    Is it still possible to use email and password directly and not API Key for Gmail integration in 2024?

  • @firstuser5448
    @firstuser5448 2 ปีที่แล้ว +1

    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?

  • @StefanSchmalhaus
    @StefanSchmalhaus ปีที่แล้ว

    Thank you very much for this tutorial!

  • @canberkozkan593
    @canberkozkan593 3 ปีที่แล้ว +1

    It was really helpful ! Thanks for the content :)

  • @kafirhun
    @kafirhun 3 หลายเดือนก่อน

    I am using Google workspace, how can i relay my Google workspace email through Ubuntu?

  • @iamtheyikes
    @iamtheyikes 7 หลายเดือนก่อน

    Great tutorial but i cant locate your video for setting up SASL. Can you please link it to me?

  • @dixitkumar4104
    @dixitkumar4104 3 หลายเดือนก่อน +1

    thanks buddy💌

  • @elpresti
    @elpresti 3 ปีที่แล้ว +3

    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

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +2

      Sorry to hear that

    • @dustindecoursey2331
      @dustindecoursey2331 3 ปีที่แล้ว +3

      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.

    • @AHumanBeingbeing
      @AHumanBeingbeing 2 ปีที่แล้ว +2

      @@dustindecoursey2331 thanks Dustin. Now I see what my error is!

  • @anfalchouikh1515
    @anfalchouikh1515 3 ปีที่แล้ว +1

    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 .

  • @another-niko-pfp-holder
    @another-niko-pfp-holder 5 หลายเดือนก่อน

    Is there something that allows you to set postfix up like that on arch?

  • @adityasharma2705
    @adityasharma2705 3 ปีที่แล้ว +1

    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

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Hmm I'm really not sure what that's happening

    • @adityasharma2705
      @adityasharma2705 3 ปีที่แล้ว

      @@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

  • @saurabhgoreamazing9368
    @saurabhgoreamazing9368 3 ปีที่แล้ว +1

    thanks for the nice video .Achived the objective!!!

  • @Extension-Hub
    @Extension-Hub 4 ปีที่แล้ว +1

    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

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว

      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

  • @kimaegaii
    @kimaegaii ปีที่แล้ว

    @1:09 what would my domain email be, like how do i find what i should put there? thanks

  • @7eyedcrow
    @7eyedcrow ปีที่แล้ว

    Thank you man. Worked for me.

  • @ravi-gadhiya
    @ravi-gadhiya 4 ปีที่แล้ว +1

    Amazing, You are rock👍

  • @roman.brunetti
    @roman.brunetti ปีที่แล้ว

    Great, how about attachments?

  • @gracedong9361
    @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.

  • @arpitasrivastava4629
    @arpitasrivastava4629 2 ปีที่แล้ว +1

    man this is awesome !! Thanks

  • @AhmadRezk
    @AhmadRezk 3 ปีที่แล้ว +2

    Thanks, You simplified it 👍

  • @jonathansalazar703
    @jonathansalazar703 3 ปีที่แล้ว

    A query, what steps should I follow to be able to change my email?
    Should I delete the database from the old mail?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Can you rephrase your question? I don't understand

  • @geziraunited
    @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

  • @TNTy100
    @TNTy100 ปีที่แล้ว

    Amazing video. Thank you so much.

  • @nayemhossainishan258
    @nayemhossainishan258 2 ปีที่แล้ว

    Thanks, man .....
    you are really awesome

  • @mohammedalinashnoush2336
    @mohammedalinashnoush2336 2 ปีที่แล้ว

    many thanks it is work, keep going

  • @sayansarkar7582
    @sayansarkar7582 ปีที่แล้ว

    it helps..thank you, Sir

  • @mobilegamer7767
    @mobilegamer7767 3 ปีที่แล้ว

    Big thanks for help!

  • @Learnwaseem
    @Learnwaseem 9 หลายเดือนก่อน

    Sir it says smtp 530 authorization required. what to do now?

  • @OscarFaustoPelosi
    @OscarFaustoPelosi 3 ปีที่แล้ว +1

    Thank you: you saved me a lot of time! :D

  • @Scrollunlock
    @Scrollunlock 6 หลายเดือนก่อน

    amazing thanks for sharing this

  • @begelmanleonid6754
    @begelmanleonid6754 2 ปีที่แล้ว

    is it possible to use sendmail as amtp client with another mail server?

  • @vahidtavakkoli9578
    @vahidtavakkoli9578 2 ปีที่แล้ว

    Thanks, simple and nice.

  • @ramonrmartinss
    @ramonrmartinss ปีที่แล้ว

    awesome. helped a lot. Thanks

  • @xXx-lfg
    @xXx-lfg 3 หลายเดือนก่อน

    Why did you miss 45 steps of the postfix install?

  • @HijrahTipsandAdvice
    @HijrahTipsandAdvice ปีที่แล้ว

    I didnt see how he saved the vim file. How do we save it once we've created it

  • @makshaponenko7552
    @makshaponenko7552 3 ปีที่แล้ว

    It's works. Thank you!

  • @StopSocialismUSA
    @StopSocialismUSA 3 ปีที่แล้ว

    It might be worth mentioning /etc/ssl/certs/ca-certificates.crt was on my GNU/Linux machine by default

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว +1

      That might be part of a self-signed cert that is installed with the system

  • @blinddog1212
    @blinddog1212 2 ปีที่แล้ว

    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.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Hmmm, perhaps check your mail logs at /var/log/ for clues

  • @johnjohnston6897
    @johnjohnston6897 2 ปีที่แล้ว

    when I sent the path to postmap (sudo postmap /etc/postfix/sasl/sasl_psswd) it didn't create a .db file... any idea??

  • @cortisolblue2208
    @cortisolblue2208 2 ปีที่แล้ว

    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?

  • @devidashalge5601
    @devidashalge5601 2 ปีที่แล้ว

    i have tried in linux but not working can you please guide
    ?

  • @habiburdev
    @habiburdev 3 ปีที่แล้ว

    I have followed all steps properly, there is no error, but not getting mail after sending mail.

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      I'm not sure why emails are not coming through

  • @kesteredmund7723
    @kesteredmund7723 2 ปีที่แล้ว

    how to save the sasl email and password?
    is it control + S

  • @Rickety3263
    @Rickety3263 3 ปีที่แล้ว

    Can you do a video on hostnamectl and the importance of fqdn?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Maybe this will help you? th-cam.com/video/vjDbVb1Ul44/w-d-xo.html

  • @ИльназМингазов-з6л
    @ИльназМингазов-з6л 2 ปีที่แล้ว

    good video! thanks!

  • @saurabhgoreamazing9368
    @saurabhgoreamazing9368 3 ปีที่แล้ว

    Have retried the procedure but still no mail can you please tell me why?

  • @virtualstudiesforkidds4935
    @virtualstudiesforkidds4935 3 ปีที่แล้ว

    Hello Sir. I'm not able to send mail through sendmail command. It is just blinking and didn't receive any output.

  • @robertwermis2971
    @robertwermis2971 ปีที่แล้ว

    Hmmm mine is not working, not sure why.

  • @khabobmma8039
    @khabobmma8039 2 ปีที่แล้ว

    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.

    • @khabobmma8039
      @khabobmma8039 2 ปีที่แล้ว

      Update: I was able to save the file by using :w

  • @bablisahu1651
    @bablisahu1651 3 ปีที่แล้ว

    It is ctrl+d or t in the end??

  • @dannyreg8405
    @dannyreg8405 3 ปีที่แล้ว

    Followed everything to the "T" and still no email. How can I fix it?

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      If you follow everything exactly, I’m not sure what else to tell you :(

  • @ameer2942
    @ameer2942 ปีที่แล้ว

    YOU ARE AWSOMEEEE!!!!!!

  • @virtualstudiesforkidds4935
    @virtualstudiesforkidds4935 3 ปีที่แล้ว

    Can we configure this on Ubuntu 16.04 server??

  • @mohamedmanas3055
    @mohamedmanas3055 3 ปีที่แล้ว

    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

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      You will need to use the App password

  • @uctrungpham2812
    @uctrungpham2812 3 ปีที่แล้ว

    Sorry but I can not recieve email from the server. How can I check mail is sent or not?

  • @nrohankar
    @nrohankar 3 ปีที่แล้ว

    Thank you!

  • @mariohidalgo6955
    @mariohidalgo6955 3 ปีที่แล้ว

    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

  • @K-kof2000
    @K-kof2000 หลายเดือนก่อน

    Well, there was no error, but the email didn't arrive... :(

  • @bhattvi
    @bhattvi 2 ปีที่แล้ว

    awesome

  • @airanicolecabrillas3227
    @airanicolecabrillas3227 3 ปีที่แล้ว

    How will postfix accept mail?

  • @abumariemegueye2355
    @abumariemegueye2355 3 ปีที่แล้ว

    thank for this tuto. during my first test I get a google security notification, google blocked the message.

  • @cloudtech6937
    @cloudtech6937 3 ปีที่แล้ว

    Thanks bro

  • @ameenal-azzawi2180
    @ameenal-azzawi2180 3 ปีที่แล้ว

    How to add an attachment?

  • @thilipantanabalan4768
    @thilipantanabalan4768 3 ปีที่แล้ว

    i receive the error notification "network is unreachable" pls reply

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      Can you ping google.com or 8.8.8.8?

    • @thilipantanabalan4768
      @thilipantanabalan4768 3 ปีที่แล้ว

      @@TonyTeachesTech yes bro

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      @@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

    • @thilipantanabalan4768
      @thilipantanabalan4768 3 ปีที่แล้ว

      @@TonyTeachesTech ok sir will try

    • @thilipantanabalan4768
      @thilipantanabalan4768 3 ปีที่แล้ว

      @@TonyTeachesTech i receive this error bro "(TLS is required, but our TLS engine is unavailable)
      "

  • @kevinramirez7
    @kevinramirez7 2 ปีที่แล้ว

    I never got the mail :(

  • @x.device4046
    @x.device4046 9 หลายเดือนก่อน

    Tnx

  • @jamesmichaels4209
    @jamesmichaels4209 3 ปีที่แล้ว

    thanks

  • @kayumiman1190
    @kayumiman1190 3 ปีที่แล้ว

    not work for me :(
    can u help me sir, please :)

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      What is the problem?

    • @kayumiman1190
      @kayumiman1190 3 ปีที่แล้ว

      @@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

  • @cf_tg6736
    @cf_tg6736 10 หลายเดือนก่อน

    tysm

  • @jonathansalazar703
    @jonathansalazar703 3 ปีที่แล้ว

    Gracias.

  • @pankajdeshmukh6565
    @pankajdeshmukh6565 3 ปีที่แล้ว

    perfect

  • @sanikapatil9384
    @sanikapatil9384 2 ปีที่แล้ว

    How to edit password ?

  • @hah3691
    @hah3691 3 ปีที่แล้ว

    didnt work for me

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      What happened?

    • @hah3691
      @hah3691 3 ปีที่แล้ว

      @@TonyTeachesTech i send an email but it doesnt apear to reach its destination and i can see it on my gmails sent box

    • @TonyTeachesTech
      @TonyTeachesTech  3 ปีที่แล้ว

      @@hah3691 Okay so you can see it's sent, but not received. That's odd. Does it bounce back at all?

  • @wnywebdevelopment8757
    @wnywebdevelopment8757 4 ปีที่แล้ว

    I don't get it. Why would anyone want to send emails through the command line?

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว +1

      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.

    • @wnywebdevelopment8757
      @wnywebdevelopment8757 4 ปีที่แล้ว

      @@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.

    • @TonyTeachesTech
      @TonyTeachesTech  4 ปีที่แล้ว +1

      @@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.

    • @wnywebdevelopment8757
      @wnywebdevelopment8757 4 ปีที่แล้ว

      @@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?

    • @wnywebdevelopment8757
      @wnywebdevelopment8757 4 ปีที่แล้ว

      @@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.

  • @shellcatt
    @shellcatt 2 หลายเดือนก่อน

    Why so nervous, dude...

  • @MrBojo-jv4qq
    @MrBojo-jv4qq 2 ปีที่แล้ว

    You the man!

  • @_yomiadebowale
    @_yomiadebowale 2 ปีที่แล้ว

    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

  • @garys3673
    @garys3673 ปีที่แล้ว

    dont try to hacker me, :)