LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2017, 04:27 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,720
Blog Entries: 29

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Understanding sSMTP configuration


Ubuntu 14.04

From https://www.nixtutor.com/linux/send-...ail-and-ssmtp/

Quote:
We need to then need to edit, ‘/etc/ssmtp/ssmtp.conf’:


root=username@gmail.com mailhub=smtp.gmail.com:587 rewriteDomain= hostname=username@gmail.com UseSTARTTLS=YES AuthUser=username AuthPass=password FromLineOverride=YES
1. What is 587 and what am I supposed to replace it with?

2. `AuthUser` will be the linux user name or the gmail user name?

3. What is `rewriteDomain` all about?
 
Old 03-31-2017, 04:58 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
587 is the port

Code:
$ grep " 587/" /etc/services
submission      587/tcp         msa             # mail message submission
submission      587/udp         msa             # mail message submission
can't answer the other two with anything but a guess tho.
 
1 members found this post helpful.
Old 03-31-2017, 05:04 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,638

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
1. It does not change. Google uses different ports for encryption methods. 587 is used for TLS. SSL uses port 465.

2. Your gmail username

3. rewriteDomain=gmail.com

https://wiki.archlinux.org/index.php/SSMTP

Last edited by michaelk; 03-31-2017 at 05:13 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Understanding the GCC and binutils configuration options testtext Linux From Scratch 2 07-01-2016 05:29 AM
Understanding configuration files better PACMANchasingme Linux - Newbie 3 06-04-2015 07:33 AM
[SOLVED] help understanding configuration structs HalfMadDad Linux - Networking 5 08-04-2013 07:51 AM
ssmtp and mutt configuration file help request golden_boy615 Linux - General 3 03-27-2011 02:12 AM
Understanding Delay Pool Configuration (Squid) carl0ski Linux - Server 0 04-20-2007 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:52 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