500 Internal server error for trying to invite people to the pod.

105 views
Skip to first unread message

Blaine

unread,
Jun 8, 2012, 2:04:54 PM6/8/12
to diaspo...@googlegroups.com
I have gone to my ropes end (i know very little about the email section of diaspora or however it works) and each time i try to send an invitation email- i get a 500 server error. Any ideas?

Blaine

unread,
Jun 9, 2012, 12:57:53 AM6/9/12
to diaspo...@googlegroups.com
I checked the error log and this is what i got:
Errno::ECONNREFUSED (Connection refused - connect(2)):
  lib/email_inviter.rb:28:in `mail'
  lib/email_inviter.rb:22:in `send!'
  lib/email_inviter.rb:22:in `each'
  lib/email_inviter.rb:22:in `send!'
  app/controllers/invitations_controller.rb:50:in `create'
  lib/rack/chrome_frame.rb:39:in `call'


To me this looks like it is something with postfix, any suggestions on where to look

On Fri, Jun 8, 2012 at 11:04 AM, Blaine <bur...@gmail.com> wrote:
I have gone to my ropes end (i know very little about the email section of diaspora or however it works) and each time i try to send an invitation email- i get a 500 server error. Any ideas?

--
You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/diaspora-dev/-/PKuaJiWueG8J.
To post to this group, send email to diaspo...@googlegroups.com.
To unsubscribe from this group, send email to diaspora-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/diaspora-dev?hl=en.

Vereniging ORXNet

unread,
Jun 9, 2012, 10:30:21 AM6/9/12
to diaspo...@googlegroups.com
Install ssmtp and configure smtp server in the confs?

Blaine

unread,
Jun 9, 2012, 2:05:27 PM6/9/12
to diaspo...@googlegroups.com
SMTP is installed and configured, though its defaults. Does diaspora require anything different than defaults? I also added the information to application.yml, though i don't know if i set it up right. The pastebin of my application.yml is http://pastebin.com/JCqRfTH4 thanks

Vereniging ORXNet

unread,
Jun 10, 2012, 4:38:40 PM6/10/12
to diaspo...@googlegroups.com
Must have something to do with the auth you use with the smtp server. Have you tried it with an open smtp server? F.e. with the smtp of your provider?
Message has been deleted

sanjM

unread,
Jul 23, 2012, 11:16:10 AM7/23/12
to diaspo...@googlegroups.com

You need to check your application.yml file in the config folder and the 
settings below: 

###################################################### 
  # Email Configuration 
  ###################################################### 

  ## First you need to enable it ;) 
  mailer_on: true 

  ## Sender address used in mail send by Diaspora 
  sender_address: 'webm...@example.com

  ## This selects which mailer should be used. Take 'smtp' for a smtp 
  ## connection, 'sendmail' to use the sendmail binary or 
  ## 'messagebus' to use the messagebus service. 
  mailer_method: 'smtp' 

  # Address/port to smtp server handling outgoing mail. 
  smtp_address: 'mail.example.com or whatever your mail domain is' 
  smtp_port: '587' 

  #API key if you are using message bus 
  message_bus_api_key: '' 

  # The path to the sendmail binary. Ignored if mailer_method is not set to 
sendmail 
  sendmail_location: '/usr/sbin/sendmail' 

  # Set this to true if you want to use exim and sendmail 
  sendmail_exim_fix: false 

  # Authentication required to send mail. Use one of 'plain', 
  # 'login' or 'cram_md5'. Use 'none' if server does not support 
  # authentication 
  smtp_authentication: 'plain' 

  # Automatically enable TLS? Ignored if smtp_authentication is set to none 
  smtp_starttls_auto: true 

  # OpenSSL verify mode used when connecting to a SMTP server with TLS. 
  # Set this to none if you have a self signed certificate, keep it empty 
(not '') for the default 
  # Possible values: none, peer, client_once, fail_if_no_peer_cert 
  smtp_openssl_verify_mode: none 

  # Domain of smtp server. 
  # This should match the common name of the certificate 
  # the SMTP server sends. If he sends one 
  smtp_domain: 'mail.example.com or just example.com depending on your 
setup' 

  # Credentials to log in to the SMTP server - may be necessary if 
  # smtp_authentication is not 'none' 
  smtp_username: 'XXXXX' 
  smtp_password: 'PASSWORD HERE' 

  # Sender address in Diaspora's outgoing mail. 
  smtp_sender_address: 'webm...@example.com

Once I got those setup correctly, invites got sent out correctly - even the 
failed ones and no more 500 Internel Error. 

Reply all
Reply to author
Forward
0 new messages