Is there any progress? Are you able to use it?
2012. április 27., péntek 23:06:40 UTC+2 időpontban szimszon a következőt
írta:
What distrib is this?
What is the content of GPGKEY?
The list is from python shell or from web2py?
2012. április 27., péntek 17:34:06 UTC+2 időpontban weheh a
It seems that the gnupg home is still not set correctly.
Could you post from python shell (where code is working)
import os
print os.environ
And above modify the tools.py (after that you have to restart web2py I
guess) and post the printed os.environ output. Without sensitive data :)
2012.
Now I tested the tools.py and I can set the GUNPGHOME with
mail.settings.gpg_home = '/dir/to/where/is/.gnupg' and works. I set it
wrong place than I can't sign the mail.
2012. április 27., péntek 5:15:12 UTC+2 időpontban weheh a következőt írta:
I took the additional step of checking all the
os.environ listing:
LANG
TERM
SHELL
LESSCLOSE
XDG_SESSION_COOKIE
SHLVL
SSH_TTY
OLDPWD
GPGKEY
PWD
LESSOPEN
SSH_CLIENT
LOGNAME
USER
PATH
MAIL
LS_COLORS
HOME
_
SSH_CONNECTION
What distrib is this?
What is the content of GPGKEY?
The list is from python shell or from web2py?
2012. április 27., péntek 17:34:06 UTC+2 időpontban weheh a következőt írta:
os.environ listing:
LANG
TERM
SHELL
LESSCLOSE
XDG_SESSION_COOKIE
SHLVL
SSH_TTY
OLDPWD
GPGKEY
PWD
gpg --list-secret-keys my_from_addr...@xyz.com produces an output that
indicates that the address is valid. So I know I'm using the right email
address. If I purposely enter an invalid email as a test, I get an error
message:
gpg: error reading key: secret key not available
There is a
Thanks for the effort. Sad to report that I tried this and no change. Mail
still not getting sent out. Still getting message
No key for signing [my_from_addr...@xyz.com]
On Thursday, April 26, 2012 4:10:00 PM UTC+8, szimszon wrote:
Try to replace gluon tools.py with the attachement. And you
I took the additional step of checking all the mail.settings... keys and
they are all set to values that look correct. I also retested the gpg
--list-secret-keys my_from_addr...@xyz.com and it produces a set of codes
consistent with recognizing my address.
The failure is happening in this
Sorry for that. I have little time :(
Is there anything in mail.error after the mail.send(...)?
The user running web2py has a pgp keyring with the right keys?
Is there any exception during mail.send?
Can you post the code you are using?
2012. április 25., szerda 1:06:14 UTC+2 időpontban weheh a
# this is my controller
def test_mail():
Email tester
mail.settings.sender = 'x...@y.com'
mail.settings.server = 'z.com:587' # SMTP server
mail.settings.login = 'asdf:lkjh'
mail.settings.encrypt = False
mail.settings.ssl = False
mail.settings.tls = True
In linux web2py user's keyring is in
~web2py/.gnupg/{pubring.gpg,secring.gpg}
It's the default location.
If you'll sign the mail than the private key should belong to 'x...@y.com'.
Can you send mail if there is no gpg in action? Is smtp working?
If I get some time at night I'll look at the
Thanks szimszon. I see. The keyrings were not installed under web2py. But
now they are, and unfortunately, I'm still failing out in the same place
(although now I have a better idea where). The message is that there is no
key for signing my_from_addr...@xyz.com, which is the
What is the error message?
2012. április 25., szerda 19:28:10 UTC+2 időpontban weheh a következőt írta:
Thanks szimszon. I see. The keyrings were not installed under web2py. But
now they are, and unfortunately, I'm still failing out in the same place
(although now I have a better idea
no key for signing my_from_addr...@xyz.com
On Thursday, April 26, 2012 2:29:53 AM UTC+8, szimszon wrote:
What is the error message?
2012. április 25., szerda 19:28:10 UTC+2 időpontban weheh a következőt
írta:
Thanks szimszon. I see. The keyrings were not installed under web2py. But
now
what is the output of the
gpg --list-secret-keys my_from_addr...@xyz.com
command if running with web2py user?
Is there any environment variable set about gpg in a shell and not in
environment the web2py is running?
2012. április 26., csütörtök 1:02:40 UTC+2 időpontban weheh a következőt
írta:
If I remember well you don't have to import in your code anything the
framework do that.
If you would like to test that python can do it just try in python
interpreter:
from pyme import core, errors
from pyme.constants.sig import mode
That is what web2py use.
In debian based system:
@szimszon: I was hoping to hear from you ... you are a gem for replying so
quickly. The doc says to do the import, which is why I'm doing that. How
about these other settings -- are they necessary?
mail.settings.cipher_type = 'gpg'
mail.settings.sign = True
mail.settings.encrypt =
I'm still not getting this to work. Would you mind posting a complete
example? Thanks.
I have no little time sorry, I found the original testing code I used:
#!/usr/bin/env python
from gluon.tools import *
mail=Mail()
mail.settings.server='smtp server'
mail.settings.sender='sender@address'
mail.settings.login='user:pass'
print
I'm running 1.99.7 and none of the arguments to mail.send are valid. All
the mail variables must be set via mail.settings as far as I can tell. That
said, I have all my settings in place but things still not working. I'm
going to start digging into mail logs next.
On Tuesday, April 24, 2012
20 matches
Mail list logo