title: Email in Redmine 2.2 on Debian Wheezy : getaddrinfo: Name or service not known
body: <p>I've installed Redmine 2.2.2 on Debian Wheezy and when I try to send a test e-mail from the configuration panel, I always get the <code>getaddrinfo: Name or service not known</code> error message. </p>
  
  <p>Apparently I'm not the only one having this error but everything I've tried has failed so far</p>
  
  <p>Change access rights of sys files</p>
  
  <pre><code>sudo chmod o+r /etc/resolv.conf
  sudo chmod o+r /etc/hosts
  </code></pre>
  
  <p>Change the email.yml config. I've tried </p>
  
  <pre><code>production:
    delivery_method: :sendmail
  </code></pre>
  
  <p>and I've also tried </p>
  
  <pre><code>production:
      delivery_mthod: :smtp
      smtp_settings:
          address: localhost
          port: 25
  </code></pre>
  
  <p>With no success (and I restart Apache every time I change a setting)</p>
  
  <p>FYI, I can send e-mail with the server command line. This works fine : </p>
  
  <pre><code>$ echo "It works !" | mail -s "test" me@myself.com
  </code></pre>
  
  <p>Is there something else I should try ? Thanks in advance</p>
  
  <p>PS : my Redmine environment is</p>
  
  <pre><code>Environment:
    Redmine version                          2.2.2.stable.11348
    Ruby version                             1.9.3 (x86_64-linux)
    Rails version                            3.2.11
    Environment                              production
    Database adapter                         Mysql2
  Redmine plugins:
    no plugin installed
  </code></pre>