# Cannot send mails out on linux

**URL:** <https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477>\
**Category:** Rails\
**Created:** [March 3, 2010, 8:32am UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477 "2010-03-03T08:32:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 3, 2010, 8:32am UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/1 "2010-03-03T08:32:11Z")

</div>

hi, i’m new to Rails. just setup an application and every thing looks  
fine except: cannot send mails out using “sendmail” setting.

worse: there is no error from ActionMailer - deliver\_ never complained  
and I got a message of “successful”.

however, the recipient never received any email.

any idea what is going on here?

thank you so much!!!

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 3, 2010, 9:14am UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/2 "2010-03-03T09:14:10Z")

</div>

Greetings.  
It is a server issue probably/  
If your server or develoment machine is Debian/Ubuntu, try sudo apt-  
get install postfix

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 3, 2010, 10:46am UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/3 "2010-03-03T10:46:22Z")

</div>

Katherine wrote:

> Greetings.  
> It is a server issue probably/  
> If your server or develoment machine is Debian/Ubuntu, try sudo apt-  
> get install postfix

thanks. that is a nice suggestion. i’m using a shared hosting that has  
redhat installed. could you help me how to install postfirx there?

really appreciate the quick reply!

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 3, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/4 "2010-03-03T22:10:59Z")

</div>

If you are using a shared host chances are installing postfix will be  
impossible.  
But the shared host should have an SMTP service you could use… maybe  
best to ask the host for these details?

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 3, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/5 "2010-03-03T22:37:19Z")

</div>

can you send out email from a mail client using the smtp service?

On 3 March 2010 16:09, mark [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Charles A. Lopez  
removed\_email\_address@domain.invalid

What’s your vision for your organization?  
What’s your biggest challenge?

Let’s talk.  
(IBM Partner)

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 4, 2010, 4:12am UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/6 "2010-03-04T04:12:08Z")

</div>

Sent from my iPhone

On Mar 3, 2010, at 7:04 PM, John U. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > 
> > 
> > Let’s talk.
> 
> .  
> For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en)  
> .

Did you check the logs for possible error messages?

-Conrad

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 4, 2010, 4:04am UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/7 "2010-03-04T04:04:25Z")

</div>

Charles A. Lopez wrote:

> can you send out email from a mail client using the smtp service?
> 
> On 3 March 2010 16:09, mark [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > .  
> > For more options, visit this group at  
> > [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
> 
> –  
> Charles A. Lopez  
> removed\_email\_address@domain.invalid
> 
> What’s your vision for your organization?  
> What’s your biggest challenge?
> 
> Let’s talk.  
> (IBM Partner)

no.  
i cannot do it eitgher - there is no error message though.

I also tried “sendmail” direcly, it works fine.

also, i tested sendmail from Perl. it is good too.

just dont understand ActionMailer…

thank you!!!

---

<div class="post-metadata">

**Author:** ![johnuseast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Post date:** [March 4, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477/8 "2010-03-04T17:29:34Z")

</div>

Conrad T. wrote:

> Sent from my iPhone
> 
> On Mar 3, 2010, at 7:04 PM, John U. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > > 
> > > 
> > > Let’s talk.
> > 
> > .  
> > For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en)  
> > .
> 
> Did you check the logs for possible error messages?
> 
> -Conrad

no error messages at all…
