# Actionmailer and postfix settings

**URL:** <https://www.ruby-forum.com/t/actionmailer-and-postfix-settings/157140>\
**Category:** Rails\
**Created:** [January 7, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/actionmailer-and-postfix-settings/157140 "2009-01-07T18:23:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyanlion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f0a364/32.png) [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Post date:** [January 7, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/actionmailer-and-postfix-settings/157140/1 "2009-01-07T18:23:57Z")

</div>

Hi,

I am having problems configuring my actionmailer to work with postfix.

I followed this tutorial:  
[http://howtoforge.org/virtual-users-and-domains-postfix-courier-mysql-centos5.1](http://howtoforge.org/virtual-users-and-domains-postfix-courier-mysql-centos5.1)

and i got the server set up.

at first i fixed the mail settings to work with gmail using this  
tutorial:

[http://www.danielfischer.com/2008/01/09/how-to-use-gmail-as-your-mail-server-for-rails/](http://www.danielfischer.com/2008/01/09/how-to-use-gmail-as-your-mail-server-for-rails/)

and my app worked with gmail.

but now i want it to work with my newly built email server. I read  
somewhere if your server has tls u have to do something special with  
actionmailer for it to work so i am relying on fischer’s workaround.

so i inputed this into the mailer.yml file that danielfischer created:

```
:address: localhost
:port: 25
:domain: localhost
:user_name: removed_email_address@domain.invalid
:password: secret
:authentication: :plain
:tls: true

```

Should i have used mydomain instead of localhost?  
I just can’t seem to get it to connect there is nothing in my tail -  
f /var/log/maillog error  
Please help!
