Newbie configuration/installation question
I have installed Postfix on Ubuntu to use to only send emails for my rails application. My rails application is not able to connect to it. Could this be because sendmail is listeneing at port 20? also, what configuration would suit me best if I only want to send emails ant not receive. This is onyl for testing purposes on my own laptop. Thanks, Tashfeen
Re: Newbie configuration/installation question
On Mon, Apr 13, 2009 at 3:59 PM, Tashfeen Ekram wrote: > I have installed Postfix on Ubuntu to use to only send emails for my rails > application. My rails application is not able to connect to it. Could this > be because sendmail is listeneing at port 20? > also, what configuration would suit me best if I only want to send emails > ant not receive. This is onyl for testing purposes on my own laptop. Don't run bind( `cat /etc/services` ) :) http://www.postfix.org/STANDARD_CONFIGURATION_README.html
Re: Newbie configuration/installation question
> I have installed Postfix on Ubuntu to use to only send emails for my rails application. My rails application is not able to connect to it. Could this be because sendmail is listeneing at port 20? > also, what configuration would suit me best if I only want to send emails ant not receive. This is onyl for testing purposes on my own laptop. Postfix listens on port 25, which (excluding configuration changes) which is where all your applications will expect to find it. Postfix also comes with it's own version of sendmail, so you need to uninstall the version that came with ubuntu. By default postfix will only relay mail from IPs in "mynetworks" Make sure you check mynetworks in main.cf to make sure it only contains 127.0.0.1, so you don't end up relaying for everybody on your local network. Terry
Re: Newbie configuration/installation question
Tashfeen Ekram wrote: > I have installed Postfix on Ubuntu to use to only send emails for my > rails application. My rails application is not able to connect to it. > Could this be because sendmail is listeneing at port 20? > also, what configuration would suit me best if I only want to send > emails ant not receive. This is onyl for testing purposes on my own > laptop. Just to eliminate a lot of guesswork: when you say you "installed postfix" did you do something like "apt-get install postfix" or click on postfix to install via synaptic, or did you download a tarball from the internet and build it yourself? How is rails configured to send the mail - with the sendmail command, or via an smtp connection to the local host? Joe
Re: Newbie configuration/installation question
I installed it with apt-get install postfix and then choose "Internet Site" during the configuration. i have configured rails to use smtp. config.action_mailer.smtp_settings = { :address => 'localhost', :port => 25, :domain => 'www.example.com', } - Original Message From: J Sloan To: postfix-users@postfix.org Sent: Monday, April 13, 2009 5:45:40 PM Subject: Re: Newbie configuration/installation question Tashfeen Ekram wrote: > I have installed Postfix on Ubuntu to use to only send emails for my > rails application. My rails application is not able to connect to it. > Could this be because sendmail is listeneing at port 20? > also, what configuration would suit me best if I only want to send > emails ant not receive. This is onyl for testing purposes on my own > laptop. Just to eliminate a lot of guesswork: when you say you "installed postfix" did you do something like "apt-get install postfix" or click on postfix to install via synaptic, or did you download a tarball from the internet and build it yourself? How is rails configured to send the mail - with the sendmail command, or via an smtp connection to the local host? Joe
Re: Newbie configuration/installation question
can a previous installation of sendmail conflict with postfix? i seem to be getting timed out errors. postfix is running per the command prompt status check. - Original Message From: Tashfeen Ekram To: postfix-users@postfix.org Sent: Tuesday, April 14, 2009 9:57:35 AM Subject: Re: Newbie configuration/installation question I installed it with apt-get install postfix and then choose "Internet Site" during the configuration. i have configured rails to use smtp. config.action_mailer.smtp_settings = { :address => 'localhost', :port => 25, :domain => 'www.example.com', } - Original Message From: J Sloan To: postfix-users@postfix.org Sent: Monday, April 13, 2009 5:45:40 PM Subject: Re: Newbie configuration/installation question Tashfeen Ekram wrote: > I have installed Postfix on Ubuntu to use to only send emails for my > rails application. My rails application is not able to connect to it. > Could this be because sendmail is listeneing at port 20? > also, what configuration would suit me best if I only want to send > emails ant not receive. This is onyl for testing purposes on my own > laptop. Just to eliminate a lot of guesswork: when you say you "installed postfix" did you do something like "apt-get install postfix" or click on postfix to install via synaptic, or did you download a tarball from the internet and build it yourself? How is rails configured to send the mail - with the sendmail command, or via an smtp connection to the local host? Joe
Re: Newbie configuration/installation question
I would try testing just smtp delivery and make sure that is working, before adding the extra layer of complexity. Right now it's not clear whether the message is being rejected by postfix, or postfix is misconfigured, or rails is misconfigured. A peek at the relevant sections, if any, in /var/log/mail.log would be helpful - Joe Tashfeen Ekram wrote: I installed it with apt-get install postfix and then choose "Internet Site" during the configuration. i have configured rails to use smtp. config.action_mailer.smtp_settings = { :address=> 'localhost', :port => 25, :domain => 'www.example.com', } here is the trace i get: Timeout::Error (execution expired): /usr/lib/ruby/1.8/timeout.rb:60:in `open' /usr/lib/ruby/1.8/net/smtp.rb:551:in `do_start' /usr/lib/ruby/1.8/net/smtp.rb:551:in `do_start' /usr/lib/ruby/1.8/net/smtp.rb:525:in `start' app/controllers/user/dashboard_controller.rb:13:in `index' Rendered rescues/_trace (82.7ms) Rendered rescues/_request_and_response (0.7ms) Rendering rescues/layout (internal_server_error) - Original Message From: J Sloan To: postfix-users@postfix.org Sent: Monday, April 13, 2009 5:45:40 PM Subject: Re: Newbie configuration/installation question Tashfeen Ekram wrote: I have installed Postfix on Ubuntu to use to only send emails for my rails application. My rails application is not able to connect to it. Could this be because sendmail is listeneing at port 20? also, what configuration would suit me best if I only want to send emails ant not receive. This is onyl for testing purposes on my own laptop. Just to eliminate a lot of guesswork: when you say you "installed postfix" did you do something like "apt-get install postfix" or click on postfix to install via synaptic, or did you download a tarball from the internet and build it yourself? How is rails configured to send the mail - with the sendmail command, or via an smtp connection to the local host? Joe