Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
63 views
What username, server and port are specified for IMAP with Gmail using getmail?
Looking at github and trying to use their [example][1] config file: nicholas@mordor:~$ nicholas@mordor:~$ cat .config/getmail/getmail [options] verbose = 1 delete = false message_log = ~/.getmail/log message_log_verbose = true read_all = false [retriever] type = SimpleIMAPSSLRetriever server = imap....
Looking at github and trying to use their example config file: nicholas@mordor:~$ nicholas@mordor:~$ cat .config/getmail/getmail [options] verbose = 1 delete = false message_log = ~/.getmail/log message_log_verbose = true read_all = false [retriever] type = SimpleIMAPSSLRetriever server = imap.gmail.com port = 993 username = saunders.nicholas@gmail.com password = xxx #mailboxes = ("INBOX") [destination] type = Mboxrd path = ~/GotMail/inbox user = saunders nicholas@mordor:~$ nicholas@mordor:~$ getmail getmail version 6.18.4 Copyright (C) 1998-2021 Charles Cazabon and others. Licensed under GNU GPL version 2. SimpleIMAPSSLRetriever:saunders.nicholas@gmail.com@imap.gmail.com:993: Configuration error: no such specified user ("getpwnam(): name not found: 'saunders'") nicholas@mordor:~$ nicholas@mordor:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy nicholas@mordor:~$ Trying getmail to archive old e-mails from gmail. I've tried a few options with the server, port and username but can't find a combination which works. The Pine e-mail client works fine with 2FA and using the app password, so fairly certain it's server name, username or something like that. Logs are empty. see also: https://www.bytereef.org/howto/oauth2/getmail.html where he specifies: type = SimpleIMAPSSLRetriever server = imap.gmail.com username = your_account@gmail.com
Nicholas Saunders (565 rep)
Dec 15, 2023, 08:45 PM
0 votes
0 answers
549 views
Mail Retrieve Software for Microsoft 365
As Microsoft 365 is moving to Oauth2, and Fetchmail didn't release a stable version supporting it (only an Alpha on the version 7, but not solid), my organization is looking for a IMAP mail retrieve service like Fetchmail to: Save on the disk mail data like: header body attachments This service/daem...
As Microsoft 365 is moving to Oauth2, and Fetchmail didn't release a stable version supporting it (only an Alpha on the version 7, but not solid), my organization is looking for a IMAP mail retrieve service like Fetchmail to: Save on the disk mail data like: header body attachments This service/daemon should run on a linux server. I'm trying to figure out if it's possible to use Getmail, I can't find a configuration for Microsoft 365, only for Gmail. ** UPDATE ** I've found an application called Mutt, and I'm following this documentation: mutt oauth2 But I get no authenticators available for now, I bet I'll miss something in the muttrc config, or in the Azure configurations. My plans is to use this library, also: mutt wizard expecially for the isync integration. I don't have experience with MailDir, but probably when I have the backups into my disk it would be easier to get mail info + attachements. Anyone that have experience with this? ** 2 UPDATE ** I opened an issue on Mutt Github. I can't find a way to save Outlook Mail locally.
Edoardo Zucchelli (1 rep)
Apr 29, 2021, 08:42 AM • Last activity: Apr 30, 2021, 09:59 AM
4 votes
3 answers
1475 views
Can I store my getmail password in a gpg file?
Is there a way to have getmail get the password from a gpg encrypted file instead of leaving it in plain text?
Is there a way to have getmail get the password from a gpg encrypted file instead of leaving it in plain text?
Toothrot (3705 rep)
Feb 27, 2017, 04:11 PM • Last activity: Nov 15, 2020, 07:16 PM
0 votes
1 answers
366 views
Can getmail send messages over SMTP?
I started using getmail yesterday. Before I used `offlineimap` to receive messages and `sendmail` to send them. The [documentation](http://pyropus.ca/software/getmail/documentation.html) says: > reliability: ... does not cause mail loops by doing SMTP injection, and therefore does not require that y...
I started using getmail yesterday. Before I used offlineimap to receive messages and sendmail to send them. The [documentation](http://pyropus.ca/software/getmail/documentation.html) says: > reliability: ... does not cause mail loops by doing SMTP injection, and therefore does not require that you run an MTA (like qmail or sendmail) on your host When I compose an email, the mini-buffer window asks if I want to use the default, and opens Apple Mail with the draft when I click OK. I could not find a configuration for getmail with SMTP, so I wanted to confirm: do I still need to use an agent like sendmail to send emails over SMTP?
ginjaemocoes (165 rep)
Dec 15, 2018, 12:07 PM • Last activity: Dec 15, 2018, 12:19 PM
1 votes
0 answers
238 views
How to set the advanced SSL options in getmail?
I just setup `getmail` with SSL. I ran the verification as suggested in [the documentation](http://pyropus.ca/software/getmail/configuration.html#retriever-ssl-extra): $ openssl s_client -showcerts -connect HOST:PORT /dev/null \ | grep '^[[:space:]]*i:' | tail -n 1 issuer=/C=FR/ST=Paris/L=Paris/O=Ga...
I just setup getmail with SSL. I ran the verification as suggested in [the documentation](http://pyropus.ca/software/getmail/configuration.html#retriever-ssl-extra) : $ openssl s_client -showcerts -connect HOST:PORT /dev/null \ | grep '^[[:space:]]*i:' | tail -n 1 issuer=/C=FR/ST=Paris/L=Paris/O=Gandi/CN=Gandi Standard SSL CA 2 The documentation says "If the server's certificate cannot be validated based upon the supplied trusted root certificates, getmail will abort the connection." So I assume that getmail was able to verify the server's certificate. I also successfully ran a SimplePOP3SSLRetriever with no optional parameters. But the default location /System/Library/OpenSSL/certs/ on macOS has no files and the Keychain has no certificates installed. So I don't know which filepath to give to the optional parameter ca_certs to force verification of the server's SSL certificate. My questions are: - how can I verify that SimplePOP3SSLRetriever runs on an encrypted connection? - where can I find a root certificate to verify the server's certificate, or how can I download a root certificate without risking of a man-in-the-middle attack? - how to set the ssl_fingerprints variable to verify that the server's certificate has not changed?
ginjaemocoes (165 rep)
Dec 14, 2018, 02:51 PM
0 votes
1 answers
85 views
List of getmail options
In my `.getmailrc` I have [options] delete = true I assume there are more such options. Where can I find a list with explanations? (Using `SimpleIMAPSSLRetriever`, if it matters.)
In my .getmailrc I have [options] delete = true I assume there are more such options. Where can I find a list with explanations? (Using SimpleIMAPSSLRetriever, if it matters.)
Toothrot (3705 rep)
Jan 9, 2018, 09:57 PM • Last activity: Jan 9, 2018, 10:13 PM
3 votes
1 answers
1494 views
Getmail: Connection reset by peer (IMAP Idle)
I am trying to receive mails using getmail from an IMAP Idle server. Since I am able to receive mails using Mac OS' Mail app from another account on the same server (mail adress provider), IMAP Idle should be supported by the server. However, after some time (do not know how long this took) the conn...
I am trying to receive mails using getmail from an IMAP Idle server. Since I am able to receive mails using Mac OS' Mail app from another account on the same server (mail adress provider), IMAP Idle should be supported by the server. However, after some time (do not know how long this took) the connection is closed and an exception is raised: getmail version 4.46.0 Copyright (C) 1998-2012 Charles Cazabon. Licensed under the GNU GPL version 2. SimpleIMAPSSLRetriever:@:993: 0 messages (0 bytes) retrieved, 0 skipped IDLE message received msg 1/1 (1534 bytes) from delivered to MDA_external command procmail (), deleted 1 messages (1534 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped IDLE message received Exception: please read docs/BUGS and include the following information in any bug report: getmail version 4.46.0 Python version 2.7.9 (default, Sep 17 2016, 20:26:04) [GCC 4.9.2] Unhandled exception follows: File "/usr/bin/getmail", line 866, in main success = go(configs, options.idle) File "/usr/bin/getmail", line 425, in go idling = retriever.go_idle(idle) File "/usr/lib/python2.7/dist-packages/getmailcore/_retrieverbases.py", line 1750, in go_idle self.conn.send('DONE\r\n') File "/usr/lib/python2.7/imaplib.py", line 1195, in send sent = self.sslobj.write(data) File "/usr/lib/python2.7/ssl.py", line 626, in write return self._sslobj.write(data) error: [Errno 104] Connection reset by peer Please also include configuration information from running getmail with your normal options plus "--dump". The getmail config looks like this: [retriever] type = SimpleIMAPSSLRetriever server = port = 993 username = password = mailboxes = ALL [destination] type = MDA_external path = /usr/bin/procmail [options] read_all = true delivered_to = false received = false message_log = ~/.getmail/getmail.log verbose = 2 delete = true Does anyone has some hints about how to get this issue solved? I do not have any starting point as I am a beginner in using getmail. Since I am planning to use supervisord in the future I could use supervisor to restart getmail which should do the job, but this does not feel to be good practise from a technical point of view.
albert (191 rep)
Mar 11, 2017, 12:17 PM • Last activity: Mar 15, 2017, 06:01 PM
Showing page 1 of 7 total questions