# Mongrel\_rails and postfix

**URL:** <https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008>\
**Category:** Rails\
**Created:** [December 11, 2006, 3:18pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008 "2006-12-11T15:18:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@harper](https://www.ruby-forum.com/u/harper)\
**Post date:** [December 11, 2006, 3:18pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008/1 "2006-12-11T15:18:58Z")

</div>

Hi,

i was having trobule implementing actionmailer on a new server of my app  
working with mongrel\_rails + postfix . . . beforehand, while developing,  
i was using postfix + webrick, and i could send emails quite easily; in  
fact, there was no problem at all… 🙂  
however, with mongrel\_rails, it seems the action mailer doesn’t have the  
right configuration to access the postfix server. ie, ACTIONMAILER  
DOESN’T SEND ANY EMAILS!! i’ve been rubbing my head on this for about  
six-seven hours, and i have no idea where to proceed from here…pretty  
weak documentation as far as i have gone around.  
is there a slight chance anyone has some hidden resource on the web i  
haven’t found? or someone know of where i put this configuration?  
many thanks for any help, or any lead…

john

---

<div class="post-metadata">

**Author:** ![harper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@harper](https://www.ruby-forum.com/u/harper)\
**Post date:** [December 13, 2006, 1:13am UTC](https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008/2 "2006-12-13T01:13:15Z")

</div>

On Dec 11, 2006, at 6:18 AM, Shai R. wrote:

> however, with mongrel\_rails, it seems the action mailer doesn’t  
> john  
> Hi,

The environment would be my first guess if Webrick works and Mongrel  
doesn’t.

Any chance that Mongrel is running with the Rails environment set to  
‘development?’ By default, I think config/development.rb has this line:  
config.action\_mailer.raise\_delivery\_errors = false

So you wouldn’t see delivery errors as exceptions.

And in test, ActionMailer doesn’t use the MTA at all:  
config.action\_mailer.delivery\_method = :test

Scott

---

<div class="post-metadata">

**Author:** ![harper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@harper](https://www.ruby-forum.com/u/harper)\
**Post date:** [December 13, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008/3 "2006-12-13T13:25:50Z")

</div>

i’ll check it out… thx for the help  
🙂

---

<div class="post-metadata">

**Author:** ![harper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@harper](https://www.ruby-forum.com/u/harper)\
**Post date:** [December 14, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008/4 "2006-12-14T16:15:57Z")

</div>

I have an application that uses mongrel\_clusters and postfix and it  
works just fine “out of the box”. I basically followed the Action  
Mailer chapter in the Agile book.

---

<div class="post-metadata">

**Author:** ![harper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@harper](https://www.ruby-forum.com/u/harper)\
**Post date:** [December 13, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/mongrel-rails-and-postfix/79008/5 "2006-12-13T13:25:54Z")

</div>

i’ll check it out… thx for the help
