3. Sending your first email from your Raspberry Pi using Telnet | Hosting an email server for free

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

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

  • @thepyli
    @thepyli 4 ปีที่แล้ว +5

    Hello. I was able to follow this through and through, and the result was identical as the video. I tested the "rcpt to:" to 2 actual email addresses, and nothing ever showed up - including the SPAM folder. Is that normal or did I miss something? Port 25 is open, forwarded, etc.

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

      I'm in the same boat at the moment. I am able to send internally, just not externally.

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

    awesome content! thank you!

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

    Where are the rest of the videos on this subject please?

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

    Thank you very much , exist in this course confire multiple domaines with providers smtps with one postfix server ? i dont knoz i will watch all ur course

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

    it would appear that port 25 is blocked by my ISP as I'm not getting any of the telnet emails in any of my inboxes. I have also opened port 25 in my router.

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

      Yeah possibly, some do block it. You'll need to contact your isp to unblock it if that is the case im afraid.

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

    In the series on hosting a website you used Docker. Isn't it possible to use Docker here also?

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

      Yes, its possible. The reason I wouldn't bother, which isn't necessarily a good reason not to bother I should add, is that I use Docker for portability, largely for deployments, so its often a great way to develop something you plan on moving around. For me, an email server isn't generally going anywhere, so I have never bothered containerising it!

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

    So let me get this right. Once I put in telnet localhost 25 and get back Trying ::1...,Connected to localhost, is this telling me my port 25 smtp port is open correct?

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

    Do i need a already registered Domain so the Email will be sent because mine doesnt work but i also have an non-registraded Domain

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

    I hope someone answers this. I got "OK's" every time I hit enter. I have even register and got my web site up and running before I did this. But trying it 3 times I never received any of my emails. So what is the problem?

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

    is telnet necessary to work with mail server ? i would prefer to not open telnet to wide public for security resons of corz

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

      Nope, telnet is a great tool for confirming ports are open, services are configured correctly, and its great for sending an email from the command line. There are other tools which do a similar thing. Telnet is as open as your network is configured to be.

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

    Hi there, thanks for the great tutorials!
    When attempting to send to a hotmail.co.uk address, I get this in the mail.info log:
    Service unavailable, Client host [**.**.*.***] blocked using Spamhaus.
    I also get a similar problem when trying to to send to a gmail address. Has anyone else had this issue?

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

      Hi, they are many reasons for being blocked. One of them is that you've been black listed. Don't panic, it's probably because your emails fail to meet required standards, you can unblack list yourself once you've solved the issue... which will probably come out of the wash when you've finished my course or go solo and get your emails up to scratch.

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

      @@Singleentity101 Thanks for reply, I will continue through the course!

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

    For sending test email I suggest to use: sendemail, since this tool does not make all the typing errors 😊

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

      There is also mail and mutt, but telnet will help tell us what is going wrong and its used later in the course to verify IMAP authentication. You're right, there are alternatives.

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

    got "Relay access denied" when I do rcpt to: [email]

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

      Same problem. Any one could you help us?

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

    @Raspberry Pi Coding
    In order to get my emails to send externally, I had to add: relayhost = mail..com in the ./postfix/main.cf file
    - However, it's taking roughly 15 minutes to reach it's destination. Any idea on how to have the email arrive instantly?

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

    Edit: I have fixed my issue below, I can now send external mail. I have done the following;
    1: Got my ISP to unblocked port 25 and open the same port on my home router and forward it to my Pi's IP
    2: Added ISP relay address to /etc/postfix/main.cf = "relayhost = example.isp.com.au"
    3: Created SASL password file in /etc/postfix/sasl_passwd to authenticate with relay server = "example.isp.com.au username:password"
    4: Map it with "sudo postmap /etc/postfix/sasl_passwd"
    5: Amended or/and Added the following lines in /etc/postfix/main.cf with;
    smtp_sasl_auth_enable = yes
    smtp_sasl_security_options = noanonymous
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_use_tls = yes
    smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
    Only used "smtp" instead of "smtpd" and is working fine for me, now onto video 7 of the series.
    Original Message:
    When trying to send external emails, say to an Outlook account, I get "Relay Access Denied". I fixed this by adding my local IP (192.168.10.0/24) to the end of "mynetworks =" line in /etc/postfix/main.cf. This fix allows me to send external emails, but I don't receive it in my Inbox or Junk folder.
    My mail logs = "status=deferred (connect to outlook-com.olc.protection.outlook.com[104.47.18.225]:25: No route to host)"
    I can send internal emails with different users just fine.
    Thank you :)

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

      Well done working through this, nice to see a solid solution spelt out for others.

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

      Well done working through this, nice to see a solid solution spelt out for others.

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

      GilbiousMaximus - On your #3: are you saying you create that new file, then in that new file you add one line that says:
      relay server = SomeAddressYourISPgivesYou username:password (of what? Btw)

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

      @@thepyli username and password for your ISP's relay server. Generally, your username and password for your email account should work. The one line should look like this...
      mail.isp.com john.doe:mypassword

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

      @@GilbiousMaximus - Thanks a million for your help. I discovered my ISP's relay servers to use. Just a couple more clarifying questions if you don't mind:
      1. When I use my ISP's server as you indicated with: mail.isp.com followed by the username:password - are you saying to use the email account (which is usually the username) that your ISP provides?
      2. When you said, "Only used "smtp" instead of "smtpd"" - Are you saying use "smtp" for the only the lines you listed:
      smtp_sasl_auth_enable = yes
      smtp_sasl_security_options = noanonymous
      smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
      smtp_use_tls = yes
      smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
      OR both...
      Edit the ALL additional lines in /etc/postfix/main.cf
      that contain "smtpd," for example, "smtpd_recipient_restrictions =" by changing it to "smtp_recipient_restrictions"
      Again, I truly appreciate your time as the information you provided allowed me helped me get where I needed to be server-wise. Thank you again.