<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Good Day,<o:p></o:p></p><p class=MsoNormal>  I appreciate your help in this matter, but I have learned additional information and I need to reformat and resubmit this help request.<o:p></o:p></p><p class=MsoNormal>Thank you,<o:p></o:p></p><p class=MsoNormal>Dave<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> Gnupg-users <gnupg-users-bounces@gnupg.org> <b>On Behalf Of </b>david.donnelly@daviddonnelly.com<br><b>Sent:</b> Tuesday, December 15, 2020 12:29 PM<br><b>To:</b> gnupg-users@gnupg.org<br><b>Subject:</b> GPG Encryption on Raspberry Pi 4 using custom e-mail address failure<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Good Day,<o:p></o:p></p><p class=MsoNormal>  This very novice would appreciate some help.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>  My situation:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I have several Raspberry Pi 4 computers running the Raspberry Operating System (Raspbian GNU/Linux [buster], Version ID=10) at my home.  I need each of them to send me an email notification when certain functions are performed.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I have gpg version 2.2.12-1+rpi1+deb10u1 installed.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>To this end, I have configured the mail system called msmtp on each Raspberry Pi 4 computer.  I can send email to my myself via my Gmail and david.donnelly.com (IONOS.COM) accounts manually and interactively using msmtp on each of the Raspberry Pi 4 computers.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Problem:<o:p></o:p></p><p class=MsoPlainText>However, following good internet security policies, I tried to encrypt my email account passwords using GPG (Gnu PG: <a href="https://gnupg.org/">https://gnupg.org/</a>).  These encrypted passwords are to be stored in a file on each Raspberry Pi4 computer.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Now, first off, this encryption process worked fine for my Gmail Account.  I was able to run the following command: <o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>gpg --encrypt -o .msmtp-gmail.gpg -r <a href="mailto:donnellydw@gmail.com">donnellydw@gmail.com</a> -<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>The password provided was encrypted with no problems and the associated file was created.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>However,  when I try to run the same command using my david.donnelly.com (IONOS.COM) email account:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>gpg --encrypt -o .msmtp-ionos.gpg -r <a href="mailto:david.donnelly@daviddonnelly.com">david.donnelly@daviddonnelly.com</a> -<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>or<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>gpg --encrypt -o .msmtp-ionos.gpg -r <a href="mailto:2d@daviddonnelly.com">2d@daviddonnelly.com</a> -<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I get the following three errors:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>gpg: error retrieving 'david.donnelly@daviddonnelly.com' via WKD: Network error<o:p></o:p></p><p class=MsoPlainText>gpg: <a href="mailto:david.donnelly@daviddonnelly.com">david.donnelly@daviddonnelly.com</a>: skipped: Network error<o:p></o:p></p><p class=MsoPlainText>gpg: [stdin]: encryption failed: Network error<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>If I substitute and use my <a href="mailto:2d@daviddonnelly.com">2d@daviddonnelly.com</a> email address, I get the same three errors:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>gpg: error retrieving '2d@daviddonnelly.com' via WKD: Network error<o:p></o:p></p><p class=MsoPlainText>gpg: <a href="mailto:2d@daviddonnelly.com">2d@daviddonnelly.com</a>: skipped: Network error<o:p></o:p></p><p class=MsoPlainText>gpg: [stdin]: encryption failed: Network error<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I then reran the encryption command using my Gmail address:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>gpg --encrypt -o .msmtp-gmail.gpg -r <a href="mailto:donnellydw@gmail.com">donnellydw@gmail.com</a> -<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>and encryption and file creation was successful.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>At face value, I have internet access, my network is working, so I have concluded something is causing a problem in the gpg program with resolving/determining/? how to translate my IONOS.COM custom e-mail address: <a href="mailto:david.donnelly@daviddonnelly.com">david.donnelly@daviddonnelly.com</a> or <a href="mailto:2d@daviddonnelly.com">2d@daviddonnelly.com</a> vice the GPG program fully understanding how to handle the "gmail.com" address.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Your help in this matter is greatly appreciated,<o:p></o:p></p><p class=MsoPlainText>Dave<o:p></o:p></p></div></body></html>