Page 2 of 10 FirstFirst 1234 ... LastLast
Results 11 to 20 of 99

Thread: Howto: Run your own virtual mail server using Ruby on Rails and...

  1. #11
    Join Date
    May 2006
    Location
    Bromsgrove, UK
    Beans
    597
    Distro
    Kubuntu Development Release

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    Just the same: ugs.cghm.net

    They look ok to me. That wouldn't affect anything at this stage though.

  2. #12
    Join Date
    Apr 2007
    Beans
    5

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    ok, did as you said, and the install of everything else went fine .

    Great tutorial, and thanks for the additional help.

  3. #13
    Join Date
    May 2006
    Location
    Bromsgrove, UK
    Beans
    597
    Distro
    Kubuntu Development Release

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    Super. Thats really good to know. If you feel like it look into starting Rails on boot and customizing the views so you can do all the admin from one page. I'm now doing the Ubuntu Gateway Server admin interface in Django.

  4. #14
    Join Date
    Apr 2007
    Beans
    13
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Part 2: Setting up postfix-MySQL and dovecot-MySQL

    Great stuff!!! Thanks darrenm.

    Tested on a dell dimension 8200, P4 2GHZ Machine, with Ubuntu Edgy Eft 6.10 Server and it works, just a few tweaks.

    1. sudo pico /etc/apt/sources.list
      Make sure multiverse & universe is included for
      sudo apt-get install lha arc
      deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
      deb-src http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
    2. Replaced sudo hostname server.yourdomain.com with sudo echo server.yourdomain.com.com > /etc/hostname, not sure whether it makes difference.
    3. Extra ruby packages required for ruby on rails
      sudo apt-get install libmysql-ruby ruby1.8 ruby1.8-dev rdoc ri irb
    4. As it does not contain rubygems in Ubuntu Edgy Eft 6.10 Server (Hat Tip to: Ruby on Rails on Ubuntu, How To: Ubuntu 6.10 Edgy on Rails and a few others.
      sudo -i
      wget http://rubyforge.org/frs/download.ph...gems-0.9.2.tgz
      tar xzvf rubygems-0.9.2.tgz
      cd rubygems-0.9.2
      ruby setup.rb
      After you finish the setup, feel free to remove the .tgz and rubygems folders from your desktop.
      gem update
      gem install rails --include-dependencies
      exit
    5. sudo pico /etc/dovecot/dovecot.conf
      In place of mail_location = maildir:/var/mail/vhosts/%d/%n, use default_mail_env = maildir:/var/mail/vhosts/%d/%n
    6. sudo pico ~/rubyapps/vmail/config/database.yml, enter socket: /var/run/mysqld/mysqld.run and remove socket: /var/run/mysqld/mysqld.sock does not exist in Edgy Eft 6.10 Server
    7. sudo pico /etc/dovecot/dovecot.conf
      Change #first_valid_uid = 500 to first_valid_uid = 150 and change #last_valid_uid = 0 to last_valid_uid = 0


    Let me clarify, all above commands run as root (sudo or sudo -i). With apologies for any confusion.


    ;p
    Better late than never.
    Last edited by popot; May 24th, 2007 at 11:02 AM. Reason: Seems there are a lot of problems edgy eft installation, giving more details, hoping this helps

  5. #15
    Join Date
    May 2006
    Location
    Bromsgrove, UK
    Beans
    597
    Distro
    Kubuntu Development Release

    Re: Part 2: Setting up postfix-MySQL and dovecot-MySQL

    Thanks for the info mate. I didn't expect there to be as much of a difference in Edgy but its good to know that it will work on Edgy too.

    I'll put this on the first part of the thread so no-one misses it.

  6. #16
    Join Date
    Jan 2007
    Location
    The Void
    Beans
    124
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    I'm wending my way through this, got the ruby error (running edgy server); will tack that next.
    My PF server is an old GW500 running production. Was looking to evaluate this for a replacement. Some of the notes are little bothersome since you seem to indicate that this shouldn't be used in production.
    Going to keep working on it anyway.
    Thanks and I'll post back how it goes.
    Even a thousand-mile journey begins with the first step.
    -
    Fall down seven times, get up eight.

  7. #17
    Join Date
    Jan 2007
    Location
    The Void
    Beans
    124
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    Quote Originally Posted by VorDesigns View Post
    I'm wending my way through this.
    Restarting mail server: dovecotError: Error in configuration file /etc/dovecot/dovecot.conf line 174: Unknown setting: mail_location

    Used your Code:
    found the pop3s easily enough, couldn't find mail_location so I put it in the mail locations section
    Code:
    mail_location = maildir:/var/mail/vhosts/%d/%n
     pop3_uidl_format = %08Xu%08Xv
    
    auth default {
    mechanisms = plain
    
    userdb static {
         args = uid=155 gid=155 home=/var/mail/vhosts/%d/%u
    }
    
     passdb sql {
       args = /etc/dovecot/dovecot-sql.conf
    }
    }
    Will look at that in few after I figure out how to install Ruby.
    Even a thousand-mile journey begins with the first step.
    -
    Fall down seven times, get up eight.

  8. #18
    Join Date
    Jan 2007
    Location
    The Void
    Beans
    124
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    Jumped down to your errata to dealy with ruby, downloaded the specified version which is one back from current.
    untarred the filles and proceed with the following errors
    Code:
    tanuki@dai_fuku_cho:~/rubyinstall$ cd rubygems-0.9.2
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ ruby setup.rb
    -bash: ruby: command not found
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ ls
    bin        examples  lib          post-install.rb  redist    setup.rb
    ChangeLog  gemspecs  LICENSE.txt  Rakefile         Releases  test
    doc        GPL.txt   pkgs         README           scripts   TODO
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ ./setup.rb
    -bash: ./setup.rb: Permission denied
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ sudo ./setup.rb
    sudo: ./setup.rb: command not found
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ sudo ruby setup.rb
    sudo: ruby: command not found
    Also, based on my initial scanning, as instructed your process will put ruby in a user directory as opposed to installing it in the "standard installation location (typically /usr/local/lib/ruby)"?

    Looks like I'm stallled until I can figure out what is missing in this document or what I did wrong.
    Even a thousand-mile journey begins with the first step.
    -
    Fall down seven times, get up eight.

  9. #19
    Join Date
    May 2006
    Location
    Bromsgrove, UK
    Beans
    597
    Distro
    Kubuntu Development Release

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    Quote Originally Posted by VorDesigns View Post
    Restarting mail server: dovecotError: Error in configuration file /etc/dovecot/dovecot.conf line 174: Unknown setting: mail_location

    Used your Code:
    found the pop3s easily enough, couldn't find mail_location so I put it in the mail locations section
    Code:
    mail_location = maildir:/var/mail/vhosts/%d/%n
     pop3_uidl_format = %08Xu%08Xv
    
    auth default {
    mechanisms = plain
    
    userdb static {
         args = uid=155 gid=155 home=/var/mail/vhosts/%d/%u
    }
    
     passdb sql {
       args = /etc/dovecot/dovecot-sql.conf
    }
    }
    Will look at that in few after I figure out how to install Ruby.
    Thats very strange. Even their online documentation http://wiki.dovecot.org/MailLocation shows mail_location to be the correct usage and format so I don't know why its complaining. Is it still happening now?

  10. #20
    Join Date
    May 2006
    Location
    Bromsgrove, UK
    Beans
    597
    Distro
    Kubuntu Development Release

    Re: Howto: Run your own virtual mail server using Ruby on Rails and...

    Quote Originally Posted by VorDesigns View Post
    Jumped down to your errata to dealy with ruby, downloaded the specified version which is one back from current.
    untarred the filles and proceed with the following errors
    Code:
    tanuki@dai_fuku_cho:~/rubyinstall$ cd rubygems-0.9.2
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ ruby setup.rb
    -bash: ruby: command not found
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ ls
    bin        examples  lib          post-install.rb  redist    setup.rb
    ChangeLog  gemspecs  LICENSE.txt  Rakefile         Releases  test
    doc        GPL.txt   pkgs         README           scripts   TODO
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ ./setup.rb
    -bash: ./setup.rb: Permission denied
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ sudo ./setup.rb
    sudo: ./setup.rb: command not found
    tanuki@dai_fuku_cho:~/rubyinstall/rubygems-0.9.2$ sudo ruby setup.rb
    sudo: ruby: command not found
    Also, based on my initial scanning, as instructed your process will put ruby in a user directory as opposed to installing it in the "standard installation location (typically /usr/local/lib/ruby)"?

    Looks like I'm stallled until I can figure out what is missing in this document or what I did wrong.
    It looks like you haven't actually installed ruby. If you do a
    Code:
    sudo apt-get install ruby
    does it install ruby? It should already have if you copied and pasted the command from the first post in the howto.

    Also it looks like theres a little confusion - When I wrote about the ruby app I didn't mean ruby itself, I meant the ruby on rails app which is the app you create using ruby. Does that make sense?

    What stage are you at now? Is dovecot still complaining on restart?

Page 2 of 10 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •