SMTP sending email error

Discussion in 'Installation/Configuration' started by JULINT, Nov 3, 2021.

  1. JULINT

    JULINT Member

    Hi ,
    Please help me, when i want to reply/send email, i got this:

    <localhost>: Helo command rejected: need fully-qualified hostname (in reply
    to RCPT TO command)

    How to solve this issue?
    I have attached postconf data
     

    Attached Files:

  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You have myhostname=localhost. That is not going to work.
    Maybe you need to redo the e-mail server setup? Or use ISPConfig, that is easier to setup. Link in my signature.
     
    Jesse Norell likes this.
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Additionally, check that you have the correct hostname in /etc/mailname.
     
  4. JULINT

    JULINT Member

    Hi,
    I am using ISPConfig.. but i dont know how to fix it
     
  5. JULINT

    JULINT Member

    Hi,
    It contains server1.appindowebcity.com
    It should be change to another value ?
     
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    When posting in the non-ISPConfig forums, it's assumed you're not using ISPConfig, or at least that the issue is unrelated; I'll move this thread.
    Change the myhostname line in /etc/postfix/main.cf. I would guess that /etc/hosts is also incorrect, and likely what lead to postfix being misconfigured.
    No, that's fine, assuming it's the correct server name. Change your main.cf and hosts file so they all agree.
     
  7. JULINT

    JULINT Member

    Hi,

    I will try it..
    Thanks for your help
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you are using ISPConfig, the e-mail tutorial, link in my signature, is good help.
     
  9. JULINT

    JULINT Member

  10. JULINT

    JULINT Member

    Hi Jesse,

    I have updated :
    - main.cf for myhostname to server1.appindowebcity.com
    -- /etc/hosts to 127.0.0.1 server1.appindowebcity.com
    then reboot server

    I am got another error , smtp server failed..
     
  11. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Refer to the perfect server guide you installed from for what the hosts file should look like, or the tutorial on using the autoinstaller if that's what you used. Also check that /etc/hostname is correct, I forgot to mention that one.
     
  12. JULINT

    JULINT Member

    Hi Jesse,
    Thanks for your help...
    I have able to send to recipient.. and i have installed recipient server also with ispconfig..

    But why it is not receiving , and the next day i got failed report :
    Host or domain name not found. Name service error for
    name=mail.listrikkita.com type=A: Host not found

    i will try to add A record for mail.domain.com also..
     
  13. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    The reason is exactly what you posted, no A record for mail.listrikkita.com, and the solution is to add the A record as you mentioned.
     
  14. JULINT

    JULINT Member

    Hi Jesse,
    type A record for mail has been automatically generated.
     

    Attached Files:

  15. JULINT

    JULINT Member

    Hi Jesse,
    I have been using cloudflare.. maybe i need to set from cloudflare..
    It is my own fault..
     

Share This Page