Mail Configuration

88 views
Skip to first unread message

Alexandros Panagiotou

unread,
Dec 12, 2013, 5:07:15 PM12/12/13
to syn...@googlegroups.com
Hello,

I'm installing synnefo and I'm stuck on the email configuration. I set up a mail server (exim4). In 00-snf-common-admin.conf I set up admins,managers and let the rest in comments.
Works perfect, but the emails have subject: "Synnefo Cloud" and Sender: "cl...@synnefo.org".

I want to set my subject and sender name.

When i uncomment the following:

EMAIL_HOST = "node1.it.uom.gr"
EMAIL_HOST_USER = "root"
EMAIL_HOST_PASSWORD = "mypass"
EMAIL_SUBJECT_PREFIX = "[it.uom.gr] "
DEFAULT_FROM_EMAIL = "ro...@node1.it.uom.gr"
CONTACT_EMAIL = "ro...@node1.it.uom.gr"
SERVER_EMAIL = "ro...@node1.it.uom.gr"

I get "The service is currenty down for maintenance" on signup and the following email send to the admins: 

Subject: [synnefo uom] ERROR (EXTERNAL IP): Internal Server Error: /astakos/ui/signup
Date: December 12, 2013 at 11:18:29 PM GMT+2

Traceback (most recent call last):

 File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 224, in inner
   return func(*args, **kwargs)

 File "/usr/lib/python2.7/dist-packages/django/views/decorators/http.py", line 41, in inner
   return func(request, *args, **kwargs)

 File "/usr/lib/python2.7/dist-packages/astakos/im/views/decorators.py", line 104, in wrapper
   response = func(request, *args, **kwargs)

 File "/usr/lib/python2.7/dist-packages/astakos/im/views/im.py", line 482, in signup
   activation_backend.send_result_notifications(result, user)

 File "/usr/lib/python2.7/dist-packages/astakos/im/activation_backends.py", line 383, in send_result_notifications
   self.send_user_verification_email(user)

 File "/usr/lib/python2.7/dist-packages/astakos/im/activation_backends.py", line 358, in send_user_verification_email
   functions.send_verification(user)

 File "/usr/lib/python2.7/dist-packages/astakos/im/functions.py", line 95, in send_verification
   connection=get_connection())

 File "/usr/lib/python2.7/dist-packages/django/core/mail/__init__.py", line 61, in send_mail
   connection=connection).send()

 File "/usr/lib/python2.7/dist-packages/django/core/mail/message.py", line 248, in send
   return self.get_connection(fail_silently).send_messages([self])

 File "/usr/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py", line 85, in send_messages
   new_conn_created = self.open()

 File "/usr/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py", line 54, in open
   self.connection.login(self.username, self.password)

 File "/usr/lib/python2.7/smtplib.py", line 576, in login
   raise SMTPException("SMTP AUTH extension not supported by server.")

SMTPException: SMTP AUTH extension not supported by server.


<WSGIRequest
path:/astakos/ui/signup,
GET:<QueryDict: {}>,
POST:<QueryDict: {u'password1': [u'********************'], u'first_name': [u'adad'], u'last_name': [u'aa'], u'password2': [u'********************'], u'next': [u''], u'code': [u''], u'provider': [u'local'], u'csrfmiddlewaretoken': [u'********************'], u'email': [u'alex.pa...@gmail.com']}>,
COOKIES:{'__utma': '175902502.577026723.1385814825.1385814825.1385814825.1',
'__utmz': '175902502.1385814825.1.1.utmcsr=users.uom.gr|utmccn=(referral)|utmcmd=referral|utmcct=/',
'csrftoken': u'********************'},
META:{'CONTENT_LENGTH': '166',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'CSRF_COOKIE': u'********************',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,el;q=0.6',
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_CONNECTION': 'Keep-Alive',
'HTTP_COOKIE': u'********************',
'HTTP_HOST': 'localhost:8080',
'HTTP_ORIGIN': 'https://node1.it.uom.gr',
'HTTP_REFERER': 'https://node1.it.uom.gr/astakos/ui/signup',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36',
'HTTP_X_FORWARDED_FOR': '46.103.139.247',
'HTTP_X_FORWARDED_HOST': 'node1.it.uom.gr',
'HTTP_X_FORWARDED_PROTOCOL': 'https',
'HTTP_X_FORWARDED_SERVER': 'node1.it.uom.gr',
'PATH_INFO': u'/astakos/ui/signup',
'QUERY_STRING': '',
'RAW_URI': '/astakos/ui/signup',
'REMOTE_ADDR': '46.103.139.247',
'REMOTE_PORT': '80',
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'localhost',
'SERVER_PORT': '8080',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'gunicorn/0.14.5',
'gunicorn.socket': <socket at 0x3ab2ad0 fileno=22 sock=127.0.0.1:8080 peer=127.0.0.1:57114>,
'wsgi.errors': <gunicorn.glogging.LazyWriter object at 0x2ac3a50>,
'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x2bd4e20>,
'wsgi.input': <gunicorn.http.body.Body object at 0x403e110>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>

Can u help me? Is there a mistake on my configuration? 

Sofia Papagiannaki

unread,
Dec 13, 2013, 5:00:17 AM12/13/13
to Alexandros Panagiotou, syn...@googlegroups.com
Hello,
In order to change the server name that appears in the email subjects
you have to set the ASTAKOS_SITENAME setting appropriately.
Also, for the sender you have to change the SERVER_EMAIL setting.

Sofia Papagiannaki

--
You received this message because you are subscribed to the Google Groups "synnefo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to synnefo+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Vangelis Koukis

unread,
Dec 13, 2013, 5:19:10 AM12/13/13
to Alexandros Panagiotou, syn...@googlegroups.com
On Thu, Dec 12, 2013 at 02:07:15pm -0800, Alexandros Panagiotou wrote:
> Hello,
>
> I'm installing synnefo and I'm stuck on the email configuration. I set up a
> mail server (exim4). In 00-snf-common-admin.conf I set up admins,managers
> and let the rest in comments.
> Works perfect, but the emails have subject: "Synnefo Cloud" and Sender:
> "cl...@synnefo.org".
>

Hello Alexandros,

this could be an issue with the configuration of your SMTP server.
Please see below.

> I want to set my subject and sender name.
>
> When i uncomment the following:
>
> EMAIL_HOST = "node1.it.uom.gr"
> EMAIL_HOST_USER = "root"
> EMAIL_HOST_PASSWORD = "mypass"
> EMAIL_SUBJECT_PREFIX = "[it.uom.gr] "
> DEFAULT_FROM_EMAIL = "ro...@node1.it.uom.gr"
> CONTACT_EMAIL = "ro...@node1.it.uom.gr"
> SERVER_EMAIL = "ro...@node1.it.uom.gr"
>
> I get "The service is currenty down for maintenance" on signup and the
> following email send to the admins:
>
> *From: *ro...@node1.it.uom.gr
> *Subject: **[synnefo uom] ERROR (EXTERNAL IP): Internal Server Error:
> /astakos/ui/signup*
> *Date: *December 12, 2013 at 11:18:29 PM GMT+2
> *To: *johnsa...@gmail.com
This seems to be the problem, "SMTP AUTH extension" not supported by
server. It seems the login() function of smtplib.py cannot authenticate
against your SMTP server.

Can you verify that user/password authentication works with your SMTP
server? Where did you find the values for EMAIL_HOST_USER, EMAIL_HOST_PASSWORD?
Can you try commenting them out completely in your Synnefo configuration,
so it does not attempt to authenticate before sending email?

Regards,
Vangelis.
> --
> You received this message because you are subscribed to the Google Groups "synnefo" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to synnefo+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
Vangelis Koukis
vko...@grnet.gr
OpenPGP public key ID:
pub 1024D/1D038E97 2003-07-13 Vangelis Koukis <vko...@cslab.ece.ntua.gr>
Key fingerprint = C5CD E02E 2C78 7C10 8A00 53D8 FBFC 3799 1D03 8E97

Only those who will risk going too far
can possibly find out how far one can go.
-- T.S. Eliot
signature.asc

maximel...@gmail.com

unread,
Sep 24, 2017, 7:54:08 PM9/24/17
to Synnefo
To sove the issue,set this two credentials like this: EMAIL_HOST_USER = "postfix"
EMAIL_HOST_PASSWORD = ""

Postfix is the "smtpuser".
Regards

Reply all
Reply to author
Forward
0 new messages