Announcement

Collapse
No announcement yet.

Email trough extern SMTP smart relay

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Email trough extern SMTP smart relay

    Hello,

    how can I send email from OX trough extern SMTP smart relay host (like web.de) ?
    Where can I place email aliases ( user_here is user_there@web.de ).
    Where can I save the login user and password for smtp.web.de ?

    Thanks

    Thomas

  • #2
    Your first question:
    In main.cf (in /etc/postfix on OpenSUSE) you have to add the line
    Code:
    relayhost = <yourexternalhost>
    And restart postfix.

    Your second question:
    In /etc/aliases
    (run newaliases afterwards)

    Your third question:
    I don't know. But maybe on some Postfix forum you can find the answer.

    Comment


    • #3
      Email trough extern SMTP smart relay

      If you use a normal Mail Server as SmartHost, it is very simple.
      Add or modify in your main.cf the relayhost line, like gertjan describe. On the most systems it is recommended to connect with a user and SSL. For that you will need to add following lines to your main.cf.
      Code:
      smtp_sasl_auth_enable = yes
      smtp_sasl_security_options = noanonymous
      smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
      Now you need to create a password file where you identify the user with password witch will connect to the smtp server of your provider/mail server.
      Just create the file /etc/postfix/sasl_password with following content:
      Code:
      your.smarthost.de username:yourSecretPasswortThere
      Now you have to create the database password file.
      Code:
      postmap /etc/postfix/sasl_password
      Don't forget to restart your postfix service!
      The path of the password file can be different. It's your choose.

      Comment


      • #4
        Thanks

        I tried this configuration and it works fine.

        Comment


        • #5
          Originally posted by sedeke View Post
          Email trough extern SMTP smart relay

          If you use a normal Mail Server as SmartHost, it is very simple.
          Add or modify in your main.cf the relayhost line, like gertjan describe. On the most systems it is recommended to connect with a user and SSL. For that you will need to add following lines to your main.cf.
          Code:
          smtp_sasl_auth_enable = yes
          smtp_sasl_security_options = noanonymous
          smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
          Now you need to create a password file where you identify the user with password witch will connect to the smtp server of your provider/mail server.
          Just create the file /etc/postfix/sasl_password with following content:
          Code:
          your.smarthost.de username:yourSecretPasswortThere
          Now you have to create the database password file.
          Code:
          postmap /etc/postfix/sasl_password
          Don't forget to restart your postfix service!
          The path of the password file can be different. It's your choose.

          This is exactly how I have mine setup, but when I go to send an email through the OX console as a user I get:

          "Error code: There was an issue in authenticating your E-Mail password. This may be because of a recent password change. To continue please logout now and then log back in with your most current password. (server=localhost, user=8, context=1)"

          Any ideas?

          Comment


          • #6
            Did you enter:
            Code:
            relayhost = <yourexternalhost>
            Also, maybe you have to create a password map from the file sasl_passwd: That's what I did, too:
            Code:
            postmap hash:/etc/postfix/sasl_passwd
            If that don't help:
            I am no Linux nor Postfix expert, but I can compare your main.cf with mine, if that would help. Just post it here leaving out confidentials.

            Comment

            Working...
            X