LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2017, 07:09 AM   #1
William Park
LQ Newbie
 
Registered: Mar 2017
Posts: 6

Rep: Reputation: Disabled
Using Sendmail for Yahoo and Google


Hi,

Yahoo and Google are pestering me to use SSL/TLS to access my accounts. I currently use fetchmail for POP3/IMAP and sendmail for SMTP. It's easy with fetchmail, just use "ssl" keyword. But, sendmail configuration is pain, so I'm still using "PLAIN" method.

Does anyone know any tutorial on how to
- configure sendmail for Yahoo/Google accounts, and
- create my own certificates?
--
William
 
Old 03-28-2017, 09:18 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Sendmail configuration is a pain. That's why I used fetchmail, which can be configured to use ssl rather easily. Here's an excerpt from my .fetchmailrc file.

Code:
poll imap.gmail.com protocol imap port 993 user "[username]@gmail.com" password "[password]" options ssl
I found an article about gmail, sendmail, and ssl. Maybe it will help.
http://www.phinesolutions.com/sendma...lay-howto.html

Last edited by frankbell; 03-28-2017 at 09:20 PM.
 
Old 03-28-2017, 09:44 PM   #3
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Rep: Reputation: 53
Several months ago when the hosting provider for my Web pages and email advised transitioning to SSL/TLS, I found msmtp to be easy to configure. Even nicer is that the rc file resides in my home directory as .msmtprc. As I use Mutt, this works well.

Code:
# msmtp user configuration file

# A system wide configuration file is optional.
# If it exists, it usually defines a default account.
# This allows msmtp to be used like /usr/sbin/sendmail.
account default

from user@mailhost.com
domain mailhost.com

# The SMTP smarthost.
host mail.mailhost.com

port 465

auth login
user user@mailhost.com
password BigSecret

# Use TLS.
tls on

tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
Whether this will work for Gmail or Yahoo, I don't know.

I found that msmtp honors /etc/aliases for local delivery of daemon mail and such.

Configuring Mutt is quite easy:

Code:
set sendmail="/usr/bin/msmtp"
 
1 members found this post helpful.
Old 03-29-2017, 04:13 AM   #4
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by Nate_KS View Post
Several months ago when the hosting provider for my Web pages and email advised transitioning to SSL/TLS, I found msmtp to be easy to configure.
Even the stock mailx may be is sufficient, it's also tls capable. Here is an gmail-config example.
 
Old 04-01-2017, 01:33 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
ssmtp is the third choice. It was gmail-compatible last time I checked, which was admittedly a few years ago.

You don't need to set up an MTA just to relay to someone else' SMTP server.

If you really want to, though:

sendmail->gmail howto

postfix->gmail howto

Last edited by dugan; 04-01-2017 at 01:37 AM.
 
  


Reply



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
who is the king?yahoo vs google frank lampard Linux - General 2 06-18-2009 09:41 AM
Message to Yahoo! and Google CollieJim General 0 03-03-2008 09:19 PM
Google <<<< Yahoo >>>> Microsoft waelaltaqi Linux - General 4 02-05-2008 03:34 PM
sendmail and yahoo leif_84 Linux - Server 3 12-14-2007 05:01 AM
Why recommend google? Why not Yahoo? ctkroeker General 12 08-20-2005 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:27 PM.

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