<html><head><base href="x-msg://1639/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You're now asking me to tell you how to install postfix on ubuntu. I'm afraid I don't know this as I've never done it before. You should be able to manage fine without actually setting up a mail server if you're just using this to test, see the comments I made about how to manually activate a user. If your postfix installation is working though you might be able to place the ActionMailer block of code at the bottom of production.rb (don't replace the whole file!). What you put in it depends on how you've set up postfix but something like the following might work:<div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ActionMailer::Base.smtp_settings = {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :address  => "<a rel="nofollow" target="_blank" href="http://mail.example.com/">l</a>ocalhost",</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :port  => 25,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :domain  => 'localhost',</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :user_name  => "",</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :password  => '',</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :authentication  => :login }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">    </div></div></div></div></div></span></blockquote>See here for more details: <a href="http://api.rubyonrails.org/classes/ActionMailer/Base.html">http://api.rubyonrails.org/classes/ActionMailer/Base.html</a></div><div><br></div><div>John</div><div><br><div><div>On 11 Nov 2010, at 05:16, Amrit Pal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I trid to install  the SMTP on my pc by issuing "<pre>sudo apt-get install postfix"</pre>and while  it is installingit it aksed for<span class="Apple-converted-space"> </span><br>                                              No Configuration.<br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">                                              Internet site<br>                                              Internet with Smarter host<br>                                              Satellite System<span class="Apple-converted-space"> </span><br>                                              Local only<br>                                                                                    Which option is to be select?<br>And the my enviornment/production.rb include following<span class="Apple-converted-space"> </span><br>      <span class="Apple-converted-space"> </span><br> # Settings specified here will take precedence over those in config/environment.rb<br><br># The production environment is meant for finished, "live" apps.<br># Code is not reloaded between requests<br>config.cache_classes = true<br><br># Full error reports are disabled and caching is turned on<br>config.action_controller.consider_all_requests_local = false<br>config.action_controller.perform_caching             = true<br>config.action_view.cache_template_loading            = true<br><br># See everything in the log (default is :info)<br># config.log_level = :debug<br><br># Use a different logger for distributed setups<br># config.logger = SyslogLogger.new<br><br># Use a different cache store in production<br># config.cache_store = :mem_cache_store<br><br># Enable serving of images, stylesheets, and javascripts from an asset server<br><span># config.action_controller.asset_host = "<a target="_blank" href="http://assets.example.com">http://assets.example.com</a>"</span><br><br># Disable delivery errors, bad email addresses will be ignored<br># config.action_mailer.raise_delivery_errors = false<br><br># Enable threaded mode<br># config.threadsafe! <span class="Apple-converted-space"> </span><br><br>                                            SHOULD I REPLACE IT WITH FOLLOWING ?<br>                                           <span class="Apple-converted-space"> </span><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ActionMailer::Base.smtp_settings = {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :address  => "<a rel="nofollow" target="_blank" href="http://mail.example.com/">mail.example.com</a>",</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :port  => 25,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :domain  => 'mail.example.com',</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :user_name  => "username",</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :password  => 'password',</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :authentication  => :login</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">    }</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br>                                 <span class="Apple-converted-space"> </span><br>   Thanx<span class="Apple-converted-space"> </span><br></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold; ">From:</span></b><span class="Apple-converted-space"> </span>John McKerrell <<a href="mailto:john@mckerrell.net">john@mckerrell.net</a>><br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space"> </span>Amrit Pal <<a href="mailto:amrit.pal27@yahoo.com">amrit.pal27@yahoo.com</a>><br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space"> </span>Wed, November 10, 2010 10:35:07 AM<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space"> </span>Re: [OSM-Photos] Suggesstion about photos at<span class="Apple-converted-space"> </span><a href="http://openstreetview.org">openstreetview.org</a><br></font><br>Well done.<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On the live production server I have the following in environment/production.rb :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ActionMailer::Base.smtp_settings = {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :address  => "<a rel="nofollow" target="_blank" href="http://mail.example.com">mail.example.com</a>",</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :port  => 25,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :domain  => 'mail.example.com',</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :user_name  => "username",</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :password  => 'password',</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  :authentication  => :login</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">    }</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If you have an SMTP server that you can use then you could do something similar, google ActionMailer for more information on the config. I think generally when it sends an email on my dev server then the text of the email is output on the server console so you can copy and paste the activation URL from there.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Alternatively you should be able to either read the activation code from the database or just delete the activation code, set activated_at to the current time and set state to 'active', I think that's enough to make the user active.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">John</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On 10 Nov 2010, at 15:22, Amrit Pal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: times, serif; font-size: 12pt; "><br class="Apple-interchange-newline">Well , i have installed the Osv on my pc.Now i want to study its code.But at starting i couldnt create a account .when i tried to make a account it says<span class="Apple-converted-space"> </span><br>                                           <span class="Apple-converted-space"> </span><br><h3 class="flash_notice">Thanks for signing up! We're sending you an email with your activation code.</h3><br> but there is no email server<span class="Apple-converted-space"> </span><br><br> So help me to make a account<span class="Apple-converted-space"> </span><br>Thanks<span class="Apple-converted-space"> </span><br></div><br><br class="Apple-interchange-newline"></blockquote></div><br></div></div></div></div><br></div></span><br class="Apple-interchange-newline"></blockquote></div><br></div></body></html>