Re: [web2py] Re: Sending email with localhost / Postfix
On May 26, 2012, at 8:41 AM, Yarin wrote: > Got this working on the CentOS server as follows: > > mail.settings.server = 'localhost:25' > mail.settings.sender = 'y...@mail.com' > mail.settings.login = None > > > Massimo, please note the book says "Set mail.settings.login=False if the SMTP > server does not require authentication." > This was failing for me- It only worked when > mail.settings.login = None > This appears to be fixed in the trunk (but it wouldn't hurt to say None in the book). > On Saturday, May 26, 2012 10:24:27 AM UTC-4, Yarin wrote: > I'm trying to send email out of web2py via localhost and Postfix, but > everything I try just fails silently. Having the same issue on my Mac OSX and > CentOS6 server, each with Postfix installed and able to send emails from the > command line. > > I've played with variations of the following settings: > > mail.settings.server='127.0.0.1:25' / 'smtp.localhost:25' / 'localhost' / > 'localhost:25' > mail.settings.sender='y...@example.com' > mail.settings.login='' / False / None > > > Sending mail via gmail SMTP works fine, but I need local postfix capability
[web2py] Re: Sending email with localhost / Postfix
Got this working on the CentOS server as follows: mail.settings.server = 'localhost:25' mail.settings.sender = 'y...@mail.com' mail.settings.login = None Massimo, please note the book says "Set mail.settings.login=False if the SMTP server does not require authentication." This was failing for me- It only worked when mail.settings.login = None On Saturday, May 26, 2012 10:24:27 AM UTC-4, Yarin wrote: > > I'm trying to send email out of web2py via localhost and Postfix, but > everything I try just fails silently. Having the same issue on my Mac OSX > and CentOS6 server, each with Postfix installed and able to send emails > from the command line. > > I've played with variations of the following settings: > > mail.settings.server='127.0.0.1:25' / 'smtp.localhost:25' / 'localhost' / > 'localhost:25' > mail.settings.sender='y...@example.com' > mail.settings.login='' / False / None > > > Sending mail via gmail SMTP works fine, but I need local postfix capability >
[web2py] Re: Sending email with localhost / Postfix
Something is wrong with postfilx configuration. Use a python shell and try the smtplib library directly. I use postfix all the time and nothing has change in those parts of web2py. On Saturday, 26 May 2012 09:24:27 UTC-5, Yarin wrote: > > I'm trying to send email out of web2py via localhost and Postfix, but > everything I try just fails silently. Having the same issue on my Mac OSX > and CentOS6 server, each with Postfix installed and able to send emails > from the command line. > > I've played with variations of the following settings: > > mail.settings.server='127.0.0.1:25' / 'smtp.localhost:25' / 'localhost' / > 'localhost:25' > mail.settings.sender='y...@example.com' > mail.settings.login='' / False / None > > > Sending mail via gmail SMTP works fine, but I need local postfix capability >