The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)

Discussion in 'HOWTO-Related Questions' started by Carlo Gambino, Jul 19, 2008.

  1. Carlo Gambino

    Carlo Gambino New Member

    Hello All,

    I have been toying with the idea of hosting my own server recently and stumbled upon falko's tutorial with Ubuntu. I have been going pretty well but have run into trouble with configuring postfix.

    Page 5 directs the following changes to the postfix config:

    Code:
    postconf -e 'smtpd_sasl_local_domain ='
    postconf -e 'smtpd_sasl_auth_enable = yes'
    postconf -e 'smtpd_sasl_security_options = noanonymous'
    postconf -e 'broken_sasl_auth_clients = yes'
    postconf -e 'smtpd_sasl_authenticated_header = yes'
    postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'
    postconf -e 'inet_interfaces = all'
    echo 'pwcheck_method: saslauthd' >> /etc/postfix/sasl/smtpd.conf
    echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf
    However, when I attempt to do this, I get:
    Code:
    postconf -e 'smtpd_sasl_local_domain ='
    >postconf -e 'smtpd_sasl_auth_enable = yes'
    postconf: fatal: edit accepts no multi-line input
    Where am I going wrong?
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Plesae excute the commandds line by line.
     
  3. Carlo Gambino

    Carlo Gambino New Member

    That's what I was doing.

    First I entered:

    Code:
    postconf -e 'smtpd_sasl_local_domain ='
    Which returned:
    Code:
    >
    Should I not then go on to the next?:
    Code:
    >postconf -e 'smtpd_sasl_auth_enable = yes'
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    PLease try to copy / past the line to your shell consle or SSH client. The bahaviour that you describe happens if you either forgot the closing ' at the end of the line or you use different quotes at the beginning and ending if the command.
     
  5. Carlo Gambino

    Carlo Gambino New Member

    Thanks, Till!

    This led me into so many new territories, but to take your suggestions, I needed to SSh into the server from my desktop in order to cut/paste. After some learning, I've gotten it and you're correct. Even though it looks correct to me as I typed it into the server directly, I must have made a mistake somewhere!
     

Share This Page