How to Configure Postfix with Gmail on Ubuntu

แชร์
ฝัง

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

  • @bradydyson65
    @bradydyson65 ปีที่แล้ว +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.

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

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

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

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

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

    Great job Tony. Well organized.

  • @user-qs4gw4mc4w
    @user-qs4gw4mc4w 4 หลายเดือนก่อน

    Really helpful video Tony. Thanks

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

    Thank you very much for this tutorial!

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

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

    Thank you man. Worked for me.

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

    You are a life saver, man, thanks!

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

    Excellent Tutorials, Good work @Tony

  • @visarsutaj8268
    @visarsutaj8268 ปีที่แล้ว +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.

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

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

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

    Thanks, You simplified it 👍

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

    It was really helpful ! Thanks for the content :)

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

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

    it helps..thank you, Sir

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

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

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

    many thanks it is work, keep going

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

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

    man this is awesome !! Thanks

  • @RaviJAIN_ravi
    @RaviJAIN_ravi ปีที่แล้ว +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 ????

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

    Big thanks for help!

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

    Amazing, You are rock👍

  • @cwegescheide1
    @cwegescheide1 ปีที่แล้ว +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  ปีที่แล้ว

      Thanks for the positive feedback Chris, cheers!

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

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

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

    awesome. helped a lot. Thanks

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

    It's works. Thank you!

  • @TNTy100
    @TNTy100 8 หลายเดือนก่อน

    Amazing video. Thank you so much.

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

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

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

    Thanks, simple and nice.

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

    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

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

    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  3 หลายเดือนก่อน

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

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

    You are the BEST!!!!!!!!!!!!!!!!!!!!

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

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

    awesome

  • @jeanssmith5864
    @jeanssmith5864 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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

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

    Thank you!

  • @user-hd5lj7io9i
    @user-hd5lj7io9i ปีที่แล้ว

    good video! thanks!

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

    YOU ARE AWSOMEEEE!!!!!!

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

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

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

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

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

    tysm

  • @anfalchouikh1515
    @anfalchouikh1515 2 ปีที่แล้ว +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 .

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

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

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

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

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

    Thanks bro

  • @roman.brunetti
    @roman.brunetti 7 หลายเดือนก่อน

    Great, how about attachments?

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

    Tnx

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

    thanks

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

    perfect

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

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

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

      Can you rephrase your question? I don't understand

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

    Gracias.

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

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

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

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

  • @user-xy6gz3rg9u
    @user-xy6gz3rg9u 2 หลายเดือนก่อน

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

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

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

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

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

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

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

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

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

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

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

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

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

    You the man!

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

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

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

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

      Hey thanks for letting me know Mike. Fixed!

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

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

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

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

    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.

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

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

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

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

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

      I'm not sure why emails are not coming through

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

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

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

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

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

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

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

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

    Can we configure this on Ubuntu 16.04 server??

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

    How will postfix accept mail?

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

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

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

    I never got the mail :(

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

    How to edit password ?

  • @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)
      "

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

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

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

      What is the problem?

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

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

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

    didnt work for me

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

      What happened?

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

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

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

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

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

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

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

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

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

    dont try to hacker me, :)

  • @_yomiadebowale
    @_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