configure SMTP-AUTH and TLS

Discussion in 'Installation/Configuration' started by guidovanh, Feb 28, 2007.

  1. guidovanh

    guidovanh New Member

    On this page I read about configure Postfix for SMTP-AUTH and TLS.
    I entered the commands as shown on this page:
    Code:
    postconf -e 'mydomain = example.com'
    postconf -e 'myhostname = server1.$mydomain'
    (ok, I changed server1 and mydomain to other names for my system).
    After the last command (postconf -e 'myhostname = server1.$mydomain') I see a ">" prompt.
    What do I have to enter here?
     
  2. martinfst

    martinfst HowtoForge Supporter

    You probably did not enter the last single quote. The > sign is a shell continuation sign, so it expects more input. Usually this is because quoting is not terminated.
     
    Last edited: Feb 28, 2007
  3. guidovanh

    guidovanh New Member

    On another page I read that I have to enter this commands into /etc/postfix/main.cf, so I did.
    After completing main.cf and editing /etc/postfix/master.cf and restarting postfix replies an error message on line 693:
    missing '=' after attribute name: "postconf -e 'mydomain = vanharten.net'"

    Who can tell me what is wrong in this line? This line contains a "=", isn't it?
     
  4. martinfst

    martinfst HowtoForge Supporter

    Check the line(s) before the one with an error. Computers process straighforward, which us humans don't do all the time :)
    That makes us ..... well, humans
     
  5. guidovanh

    guidovanh New Member

    I don't know what to search in the text above where the system calls an error.
    The file was the original which I installed during setup SuSE. I only added the lines given on the website mentioned in the first posting of this topic.
     
    Last edited: Feb 28, 2007
  6. falko

    falko Super Moderator

    Just a guess: did you put
    Code:
    postconf -e 'mydomain = vanharten.net'
    into your main.cf instead of just
    Code:
    mydomain = vanharten.net
    ? postconf is a command that helps you edit your main.cf, but it must not be in main.cf.
     
  7. guidovanh

    guidovanh New Member

    Yes, I did, but at this moment the problem is solved. I already read that I have to add these lines without "postconf -e '".
    The system is working now...
     

Share This Page