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.
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.
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
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?
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!
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?
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
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 .
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 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
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
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
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.
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
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.
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?
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.
@@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
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.
@@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.
@@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.
@@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?
@@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.
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.
Glad I could help!
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
Thanks man, I was struggling since last 15 days. Finally with your help it's all set up now
Glad to hear it!
I finally found a complete video with an excellent explanation, you have helped me a lot. Thank you so much!😊
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.
Omg😢 I'm a student and assignment was due. I spent many days trying to accomplish this task, i even cried, thank you💕
OMG you cried! I'm happy you got through it finally
Excellent Tutorials, Good work @Tony
Many thanks!
Great job Tony. Well organized.
Thanks 👍
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
Thanks for the positive feedback Chris, cheers!
Wow thank you so very much ❤❤❤
That really helped me. The easiest postfix explanation I've seen so far.
You're very welcome!
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 ?
Really helpful video Tony. Thanks
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 ????
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?
any reason you used postfix over the standard linux 'mail' application?
Outstanding the presentation!
You are a life saver, man, thanks!
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!
Hey thanks for letting me know Mike. Fixed!
Is it still possible to use email and password directly and not API Key for Gmail integration in 2024?
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?
Thank you very much for this tutorial!
It was really helpful ! Thanks for the content :)
Glad it was helpful!
I am using Google workspace, how can i relay my Google workspace email through Ubuntu?
Great tutorial but i cant locate your video for setting up SASL. Can you please link it to me?
thanks buddy💌
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
Sorry to hear that
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.
@@dustindecoursey2331 thanks Dustin. Now I see what my error is!
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 .
Hi thank! Sorry I don’t know
Is there something that allows you to set postfix up like that on arch?
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
Hmm I'm really not sure what that's happening
@@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
thanks for the nice video .Achived the objective!!!
You're welcome!
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
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
@1:09 what would my domain email be, like how do i find what i should put there? thanks
Thank you man. Worked for me.
Amazing, You are rock👍
Thank you so much 😀
Great, how about attachments?
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.
man this is awesome !! Thanks
No problem!
Thanks, You simplified it 👍
You bet!
A query, what steps should I follow to be able to change my email?
Should I delete the database from the old mail?
Can you rephrase your question? I don't understand
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
Amazing video. Thank you so much.
Glad you liked it!
Thanks, man .....
you are really awesome
You're welcome!
many thanks it is work, keep going
it helps..thank you, Sir
Big thanks for help!
You're welcome!
Sir it says smtp 530 authorization required. what to do now?
Thank you: you saved me a lot of time! :D
Great to hear. You're welcome
amazing thanks for sharing this
is it possible to use sendmail as amtp client with another mail server?
Thanks, simple and nice.
You're welcome!
awesome. helped a lot. Thanks
Why did you miss 45 steps of the postfix install?
I didnt see how he saved the vim file. How do we save it once we've created it
It's works. Thank you!
You're welcome!
It might be worth mentioning /etc/ssl/certs/ca-certificates.crt was on my GNU/Linux machine by default
That might be part of a self-signed cert that is installed with the system
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.
Hmmm, perhaps check your mail logs at /var/log/ for clues
when I sent the path to postmap (sudo postmap /etc/postfix/sasl/sasl_psswd) it didn't create a .db file... any idea??
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?
Yes you can use an IP locally
@@TonyTeachesTech thanks!
i have tried in linux but not working can you please guide
?
I have followed all steps properly, there is no error, but not getting mail after sending mail.
I'm not sure why emails are not coming through
how to save the sasl email and password?
is it control + S
Can you do a video on hostnamectl and the importance of fqdn?
Maybe this will help you? th-cam.com/video/vjDbVb1Ul44/w-d-xo.html
good video! thanks!
You're welcome!
Have retried the procedure but still no mail can you please tell me why?
I don't know
Hello Sir. I'm not able to send mail through sendmail command. It is just blinking and didn't receive any output.
I'm not sure why
Hmmm mine is not working, not sure why.
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.
Update: I was able to save the file by using :w
It is ctrl+d or t in the end??
D
Followed everything to the "T" and still no email. How can I fix it?
If you follow everything exactly, I’m not sure what else to tell you :(
YOU ARE AWSOMEEEE!!!!!!
Can we configure this on Ubuntu 16.04 server??
Hello, I'm not able to send mail through send mail command.
Yes
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
You will need to use the App password
Sorry but I can not recieve email from the server. How can I check mail is sent or not?
You can check the logs at /var/log
@@TonyTeachesTech Thank you !!!
Thank you!
You're welcome!
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
Hmm, I'm not sure what that means
Well, there was no error, but the email didn't arrive... :(
awesome
How will postfix accept mail?
This is send only
thank for this tuto. during my first test I get a google security notification, google blocked the message.
You're welcome!
Thanks bro
Welcome
How to add an attachment?
Sorry, I'm not sure
mutt -s "test" -a mymail@mail.com
i receive the error notification "network is unreachable" pls reply
Can you ping google.com or 8.8.8.8?
@@TonyTeachesTech yes bro
@@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
@@TonyTeachesTech ok sir will try
@@TonyTeachesTech i receive this error bro "(TLS is required, but our TLS engine is unavailable)
"
I never got the mail :(
Tnx
Yw
thanks
You're welcome!
not work for me :(
can u help me sir, please :)
What is the problem?
@@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
tysm
Gracias.
:)
perfect
Great!
How to edit password ?
didnt work for me
What happened?
@@TonyTeachesTech i send an email but it doesnt apear to reach its destination and i can see it on my gmails sent box
@@hah3691 Okay so you can see it's sent, but not received. That's odd. Does it bounce back at all?
I don't get it. Why would anyone want to send emails through the command line?
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.
@@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.
@@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.
@@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?
@@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.
Why so nervous, dude...
You the man!
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
dont try to hacker me, :)