learning mail relay

Discussion in 'Installation/Configuration' started by bobwdn, Jan 22, 2009.

  1. bobwdn

    bobwdn Member

    I am adding email service to our ISPConfig (v2.2.27, I think, running on Ubuntu 8.04.1 LTS.) I studied the thread 'ISPConfig & Nameserver' and my users can receive emails correctly. Because I am on a dynamic ip address, I followed Falko's 'Set Up Postfix For Relaying Emails Through Another Mailserver.'

    Our ISP provider allows ten no charge email address per account and I have setup an email account called '[email protected](dot)net' for use as the relay account. While setting up the account, their support instruction specifically allows 250 email relays. I am assuming that this should be plenty as there are only seven users total on our email server.

    Sorry for length of background info. During testing, I discovered that I had mis-typed one command line instruction. I returned to that command and simply re-entered the correct instructions. I believe I am correct when I say that the second string of commands simply overwrite the old info and that I do not have to delete (for example) the '/etc/postfix/sasl_passwd' file prior to entering new commands? Or does this second string of commands append to existing files?

    We are having trouble sending emails from the ISPConfig server to the world. Sending email between users works fine. I have confirmed that the relay email account I setup can send emails.

    Searching the forums has left me confused.

    I am still learning nameserver and there settings, so it could be that I have misinterpreted the 'ISPConfig & Nameserver' thread. Part way through the thread, the ISP and DNS reference names changed from the beginning of the thread and I think I got confused as to which was the domain registrar and which was the dynamic dns service address. But, if I can receive emails, I think I have that all set correctly?

    Please help me correct my sending email problem.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The best is to delete the file /etc/postfix/sasl_passwd and then reenter the command to create and fill it with the correct smtp login credentials.
  3. bobwdn

    bobwdn Member

    mail relay and receive now not working

    Thanks, Till for your response. I did as you instructed so that is corrected.

    This morning I have discovered that I am no longer receiving any email from the outside world, as I had yesterday morning.

    I am going to "get into" all my dns settings as they have to be set incorrectly, somehow.

    As these issues may be unrelated to ISPConfig, I am going to review my dns settings with my dynamic dns service provider and my domain name registrar to determine correctness and not burden this forum with what very likely are my mistakes.

    Please cost this thread for now. :confused:
  4. sjau

    sjau Local Meanie Moderator

    if I'm not mistaken it's a hash file. So when you altered saslpasswd you need to postmap it before it takes effect.
  5. merlincc

    merlincc New Member

    You are correct: postmap /etc/postfix/sasl_passwd will do the trick. After doing this check that a .db file has been generated by doing an ls -al /etc/postfix.

    You should see both files: sasl_passwd and sasl_passwd.db

    And just to be redundant because I spent the last week dealing with this issue be sure to put the proper lines in the main.cf file.

    relayhost = [your isp's smtp.mail.domain] : (alternate port if 25 is blocked)
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

    Good luck!
  6. bobwdn

    bobwdn Member

    I am closing this thread for now

    If it is okay with everyone, I am closing this thread for now.

    I am having dns issues that are quite honestly my mistake and I am going to correct my error before I move forward.

    And, yes, you are correct, after deleting and then creating new /etc/postfix/sasl_passwd one should again run postmap to convert the file into postfix usable db file.


Share This Page