try telnet mail.mydomain.com 25 and see if it is accepting remote
connections (by defau postfix does not).

Also I think

mail.settings.login = '[email protected]:mypass'

should be

mail.settings.login = 'berna...:mypass'


On Dec 1, 5:44 am, Bernardo <[email protected]> wrote:
> Dear all,
>
> I don't know if it is exactly a web2py issue or not. The fact is that
> I have a remote mail server, listening in port 25. It uses a self
> created certificate to allow connections from the outside (i.e. for
> thunderbird, you must accept that certificate in order to send mails).
> The problem is that when I try to send an email:
>
> mail.send(to='[email protected]',subject='Hello world
> subject',message='Hello world text')
>
> but nothing happens. Not a single messange printed on python console.
> And nothing shown in postfix log
>
> The lines in db.py are:
> mail.settings.server = 'mail.mydomain.com:25'
> mail.settings.sender = '[email protected]'         # your email
> mail.settings.login = '[email protected]:mypass'      # your
> credentials or None
> mail.settings.cipher_type = 'x509'
> mail.settings.x509_sign_keyfile = 'url_to_postfix.key'
> mail.settings.x509_sign_certfile = 'url_to_postfix.cert'
>
> Does anyone can figure out what is wrong with all of this?
>
> thanks a lot for your time,
> Bernardo

Reply via email to