Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 236707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:22:00+00:00 2026-05-11T20:22:00+00:00

Having issues with a rails 2.2.2 app running on a VPS (Ubuntu 8.10): looking

  • 0

Having issues with a rails 2.2.2 app running on a VPS (Ubuntu 8.10): looking for github repos, posts, anything that covers the right way of setting up email processing. For example, should it be using sendmail or smtp?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:22:00+00:00Added an answer on May 11, 2026 at 8:22 pm

    Are you looking to send or receive email (or both)?

    The answers will be different in each case, and may (or may not) include configuring a mail server on the VPS.

    If you need to configure a mail server the best guides (extensive and step by step) I found are those from slicehost that you find here: Mail server setup and configuration

    If you need to just receive emails the best thing is to avoid installing a mail server and let your service provider (or Moogle) handle the incoming email.

    Then you have to write some code to fetch those emails form the POP or IMAP server and feed them to the incoming mail handler (which typically is based on ActionMailer). One easy way to write the fetching code is to use the fetcher plug-in which incorporates the following common pattern of interaction with the mail server:

    1. Connect to a remote server (POP or IMAP)
    2. Download the available messages
    3. Process each message (passing it to another object)
    4. Remove all downloaded messages from the remote server

    you need to create an instance of the class Fetcher passing the class of the object that will process the emails (plus any other configuration parameters that are needed), then calling the fetch method will execute the steps 1 to 4 above.

    The plug-in is on Github: http://github.com/look/fetcher/tree/master and you can use it both to build a daemon (i.e. a process which stays in a loop polling the mail server for new messages), or to write a batch file to be run from cron (taken from the plug-in docs):

    begin
      Lockfile.new('cron_mail_fetcher.lock', :retries => 0) do
        config = YAML.load_file("#{RAILS_ROOT}/config/mail.yml")
        config = config[RAILS_ENV].to_options
    
        fetcher = Fetcher.create({:receiver => MailReceiver}.merge(config))
        fetcher.fetch
      end
    rescue Lockfile::MaxTriesLockError => e
      puts "Another fetcher is already running. Exiting."
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As usual, I'm having strange issues with deploying a Rails app to our different
I am having issues with my Rails 3.1 app. I have two controllers &
I am having issues with paperclip in my rails application. I am able to
I'm having issues when running the default tests in Rails3 beta4 with Cancan (
I'm developing a Rails app and I've run into an issue that I can't
When deploying a Rails 3.1 app on JRuby to JBoss, I'm having a jndi/jdbc
My Rails 3.1 app is using PDFkit to render specific pages, and I'm running
I'm having a rough time with Apache and my Rails app on my production
Im using rails 3.2.3 and am having issues with HABTM relationships. Basically, I have
I am developing an issue tracker app in Rails 3 but I am having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.