Questions tagged [gmail]
44 questions
44
votes
7 answers
Simplest way to send one-line mail out via command line using gmail?
Using Raspbian and Ubunntu 16.04 LTS so need a generic Linux solution.
Requirement is simple:
I need a way to send one-line email messages from the command line.
I have set up a gmail account just for this particular Rpi3, with the address of…
SDsolar
- 1,699
- 3
- 15
- 26
8
votes
1 answer
Can msmtp rewrite addresses?
I am trying to get all my system emails to be forwarded to my gmail address, using msmtp 1.8.3 and /etc/aliases on debian. It works, but I get errors from gmail.
When I email root (via echo "hello world" | mail -s "forward me" root), I obtain 2…
user48678
- 209
- 2
- 6
7
votes
1 answer
How to send mail to gmail account using ssmtp
I have the following ssmtp.conf…
sebelk
- 4,209
- 10
- 35
- 54
6
votes
1 answer
Postfix using OAuth2 authentication for relay host
I tried to set up postfix with Google as its relay host but failed
miserably.
Google switched to OAuth2 authentication and deprecated other authentication
methods. This is why I tried to use the new OAuth2 authentication and not
the old…
Andreas Matthias
- 201
- 1
- 3
- 5
5
votes
2 answers
Simplest way to send mail with image attachment from command line using gmail?
Building on the previous post where the requirement was to have cron jobs send status messages via a single command line, as posted here:
Simplest way to send one-line mail out via command line using gmail?
The question came up as to how to use a…
SDsolar
- 1,699
- 3
- 15
- 26
4
votes
2 answers
How to get traditional email clients to send email which appears normal in Gmail?
A considerate friend informed me recently that emails I send (with Neomutt; could be Mutt or Gnus or Pine) look funny on his device:
Apparently Google doesn't invest much effort in properly formatting standard RFC 2822 text emails.
Given that Gmail…
Metamorphic
- 1,109
- 1
- 10
- 26
3
votes
1 answer
Neomutt Multi account
I have been using mutt for a while and got it to work pretty well with 2 gmail accounts.
I have 2 macros set to switch from one to the other.
wanting to move to neomutt, the exact configuration is not working anymore.
I can get to my account…
NoLoop
- 83
- 1
- 6
3
votes
2 answers
Evolution fails to connect to my Google calendar
I've configured 2-Step Verification with my Google accont (under https://myaccount.google.com/security). Emails with OAuth 2 seem to come through fine but I keep getting
"Failed to connect calendar “[email protected] : MyName”
Data source…
stdcerr
- 2,037
- 12
- 42
- 65
3
votes
1 answer
How to get subject of gmail letter with curl?
I use curl in my Lua program to get new mail list.
I am trying to send request like this
local head_command = "curl --connect-timeout 30 -fsm 30"
local server = "imap.gmail.com"
local mail = "***"
local password = "***"
local port …
Kirill Bugaev
- 131
- 4
3
votes
3 answers
Get number of emails in specific directory on mail server
I am trying to find a way to connect to a mail server and find out how many emails there are in a specific directory. In this specific case, it is the Spam directory in my Gmail account. I am not trying to download the emails in this directory but…
XJDHDR
- 171
- 2
- 6
3
votes
1 answer
CERTIFICATE_VERIFY_FAILED when connecting to GMail with offlineimap
Under an Arch Linux, I want to use offlineimap to synchronize to GMail like this.
[general]
accounts = Gmail
maxsyncaccounts = 3
[Account Gmail]
localrepository = LocalGmail
remoterepository = RepositoryGmail
autorefresh = 30
quick =…
Anaphory
- 692
- 1
- 5
- 17
3
votes
1 answer
How to send mail via console on OpenBSD using a Gmail account?
There is a certificate error:
# echo "hello" | msmtp -a default [email protected]
msmtp: TLS certificate verification failed: unable to get local issuer certificate
msmtp: could not send mail (account default from /root/.msmtprc)
#
In the…
Peter
- 521
- 10
- 21
2
votes
1 answer
gmail + mutt + isync: how to archive and delete mail
I want to switch from Thunderbird to (Neo)mutt, because I would like to read my mail in a terminal (offline). I have a gmail account and just can't figure out how to setup Mutt properly.
I have setup isync in a way that syncs:
gmail's "Inbox" to a…
schuam
- 68
- 5
2
votes
2 answers
OAUTHBEARER authentication fails in mutt
I've used OAUTHBEARER authentication to use mutt with GMail for a while, but I've run into a an issue that I can't figure out. When I launch mutt I get OAUTHBEARER authentication failed. Here is .muttdebug0:
[2020-08-27 10:38:59] TLSv1.3 connection…
Chris W.
- 1,209
- 1
- 9
- 22
2
votes
1 answer
How to provide OAuth2 "Client ID" and "Client Secret" to an open-source bash script?
I was writing a bash script for Gmail that would authorize itself using OAuth2, and make API calls using the received tokens. It worked.
But now I'm stuck on thinking how to securely store the Client ID and Client Secret in my script, which is open…
Utkarsh Verma
- 279
- 3
- 18