Inviting someone uses my email address instead of Wagn Bot's

Support Ticket

+status
answered
 

So after a whole lot of trial and error we got Ruby to send email. However, if I try to invite someone to the site, the system sends the email using my user account email address, which fails. 

 

553 5.7.1 <: Sender address rejected: not owned by user

 

How am I supposed to sign people up if the system won't ever be able to send them an email?

 

These errors aren't very Wagn-specific (they come from Rails and/or Postfix and have to do with what your configurations allow you to do), but there are a couple of wagn-specific solutions:

 

On wikirate, for example, we have these in config/application.rb:

 

config.email_defaults = { :from => 'noreply@wikirate.org' }

config.action_mailer.smtp_settings = { :address => 'kasper.wikirate.org' }

 

The first sets the default from address for all outgoing email. In my experience, if the domain name (eg wikirate.org) matches the hostname of the current server (as understood by postfix) or the address directly configured in smtp_settings (see above) then postfix is happy.

--Ethan McCutchen.....2014-06-04 15:36:56 +0000