deutsch

Local Mailserver + DSL = SpamMails? The solution…

is to use the mail relay of your ISP.

We host our mailserver internally at our office. Therefore we are sending emails from an dynamic IP range of our ISP. Usually these IP ranges are identified as spam hosts by pages like spamhaus.org.

To avoid this problem you can send out email via the (usually provided) mail relay (smtp auth) server of your ISP. To get this done you need to attach your Postfix to the mail relay as explained in the next lines:

Our ISP is 1und1 – so the process is the following:

  1. 1) Creating an eMailaccount at 1und1
  2. 2) Setting Up your Postfix Server at /etc/postfix/main.cf

    # using 1und1 as a mail relay
    relayhost = smtp.1und1.de
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
  3. 3) Setting up your smpt map at /etc/postfix/sasl_passwd

    smtp.1und1.de <eMailAddress>:<Password>
  4. 4) Creating .db file postmap /etc/postfix/sasl_passwd
  5. 5) Changing permissions of the sasl_passwd file if you don’t want others to see your credentials to “rw——-”
  6. 6) restart postfix

Try sending an email…

This entry was posted on Thursday, September 20th, 2007 at 11:51 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply