LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-28-2020, 08:59 PM   #1
dcroxton
Member
 
Registered: Apr 2004
Distribution: Ubuntu Jaunty
Posts: 91

Rep: Reputation: 16
Forward mail from Postfix via Yahoo smtp


I have a Postfix/Dovecot setup on my home network to send emails (mainly so I can get messages from my servers at a central location). I'd like to be able to send them to my yahoo.com address so I can access them when I'm not at home, and the only way I can see to do that is to forward mail via the Yahoo smtp server using my account there. Following the guide here, the relevant part of my main.cf is:
Code:
relayhost = [smtp.mail.yahoo.com]:465
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_wrappermode = yes
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smpt_generic_maps = hash:/etc/postfix/map/generic_map, regexp:/etc/postfix/map/regex_map_yahoo
smtp_always_send_ehlo = yes
I have mapping setup so that my local mail identity will show up as my yahoo mail address when connecting to yahoo. The error I keep getting is
Code:
lost connection with smtp.mail.yahoo.com[67.195.228.95] while receiving the initial server greeting
The best guidance I've been able to find on this is that my ISP is blocking the outgoing port. However, I'm able to send email through Yahoo using Thunderbird with basically the same settings (smtp host, port, user, and password). So I figure there must be something wrong with my Postfix configuration.

Can anyone provide any guidance? More information on the error message, any setting that I might be overlooking, etc.? I've tried the same thing with gmail, with the same result.
 
Old 09-29-2020, 01:49 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Probably you need port 587 for tls.
 
Old 09-29-2020, 07:04 PM   #3
dcroxton
Member
 
Registered: Apr 2004
Distribution: Ubuntu Jaunty
Posts: 91

Original Poster
Rep: Reputation: 16
But the Thunderbird client uses 465. Is there a fundamental difference between how it sends mail and how I forward it via Postfix
 
Old 09-29-2020, 09:17 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Yes, 465 is for direct ssl, not startls.
 
  


Reply

Tags
postfix forward, smtp, yahoo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP newbie queries: #< #5.3.5 SMTP; 553 5.3.5 system config error> #SMTP# LYC Linux - Newbie 0 12-04-2014 12:45 AM
smtp auth with sendmail through smtp.sbcglobal.yahoo.com woodson2 Fedora 0 10-23-2008 02:55 PM
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration