Not signed in (Sign In)
    •  
      CommentAuthorShpigford
    • CommentTimeJun 4th 2008 edited
     permalink
    I just moved my Rails app over from another server to Slicehost and am getting errors when using the app to send mail.

    Here's the full error output from the log:
    http://pastie.caboo.se/private/uus62bulnqzrxunro35sag

    Any ideas where I might start looking for fix this?
    • CommentAuthorSchultz
    • CommentTimeJun 4th 2008
     permalink
    have you installed a SMTP server on your slice yet? By default it does not have one installed.
  1.  permalink
    What happens if you do something like:

    echo "hello world" | mail -s "test" youremail@domain.com

    Does that work? Can you get email to work outside of rails?
    •  
      CommentAuthorShpigford
    • CommentTimeJun 4th 2008
     permalink
    @Schultz: Well, the ExceptionNotifier plugin works correctly...does it not use SMTP?
    •  
      CommentAuthorShpigford
    • CommentTimeJun 5th 2008
     permalink
    I've been poking around at this for a couple of hours and I'm still really confused as to why ExceptionNotifier has successfully delivered hundreds of emails from my server but my own email sending from my app won't work.

    I was able to get rid of the 500 error, but the mail just isn't getting sent. The app works fine as it was previously setup on a different server...so it wouldn't be my own code unless I'm just missing some setting somewhere.

    Any tips? I don't really want to use Google's SMTP stuff.
    •  
      CommentAuthorShpigford
    • CommentTimeJun 5th 2008
     permalink
    Someone. Anyone.

    Not trying to be annoying here...but not being able to send email from my app is pretty much a deal killer.
    • CommentAuthorilikepi
    • CommentTimeJun 5th 2008
     permalink

    Have you checked the system mail log (usually /var/log/mail) to see if mail generated from your app generates any entries there? Typically even successful mails will generate something, so if you’re seeing nothing at all there, you might start to wonder whether your app is talking to your mail server at all. Try opening an SSH session and running ‘tail -f /var/log/mail’, and then try to send a message from your app.

    •  
      CommentAuthorShpigford
    • CommentTimeJun 5th 2008 edited
     permalink
    This is the message from the mail log when I just tried to send mail from the app:
    http://pastie.org/private/irhtieplhjhx7qeclsmew
    • CommentAuthorilikepi
    • CommentTimeJun 5th 2008 edited
     permalink
    OK, so it appears that the mail server believes your info@ address is invalid. Unless I'm misreading that log, the mail server believes it should be local (evidenced by the "postfix/local[2893]" bit, referring to Postfix's local delivery agent. Is the info@ address supposed to exist on your local system or on Google Apps?
    •  
      CommentAuthorShpigford
    • CommentTimeJun 5th 2008
     permalink
    I use Google Apps for receiving email at that domain. I guess I still don't understand why ExceptionNotifier continually sends emails from that info@ address without an issue.
    • CommentAuthorilikepi
    • CommentTimeJun 5th 2008 edited
     permalink

    Whether it can send mail from an address is not indicative of whether it can send mail to that same address.

    Anyway, regardless, Postfix believes incorrectly that it is the final destination for your domain. You probably just need to convince it otherwise. I suspect you have your domain listed in the mydestination parameter in main.cf. This is probably not what you want.

    Thankful People: Shpigford
    •  
      CommentAuthorShpigford
    • CommentTimeJun 5th 2008
     permalink
    Sweet goodness. That worked. My head was on the verge of exploding. :)