I'm struggling with a problem related to sending mail via smtp.

I recently moved my ost install to a new host. Because this host doesn't have a completely setup smtp server, I need to use another smtp server.

When I try to send mail from ost, the mail server I'm using shows this message in the log...

Jan 9 18:05:14 listmail postfix/smtpd[23193]: NOQUEUE: reject: RCPT from unknown[34.234.127.4]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<support@support.example.com> to=<david@example.com> proto=ESMTP helo=<localhost>

Ost then proceeds to send the message through the smtp server on localhost.

Any suggestions on how I can fix this?

david

    fallingrock
    Can you give some details of your osTicket version, PHP, webserver ...

    Have you set SMTP as default?
    Outgoing Email: Default email only applies to outgoing emails without SMTP setting.

    2 years later

    Hi,

    I also upgraded my osticket version from 1.10 to 1.15. At the same time, I changed my smtp server. After changing the smtp server, I got similar error as above.

    After checking the smtp server log, I found that, host name is received as "localhost" in helo message. As per my knowledge, I had correctly configured the hostname in my osticket server. After doing lot of troubleshooting, I could solve it by changing the host name from "localhost" to correct hostname in include/pear/Mail/smtp.php file, in below noted line.

    I do not know whether this is correct. I am not sure whether it will cause any other issue. I expect your support to do the needful in proper way. Please find details of my setup below.

    Thank you.

    Write a Reply...