"need fully-qualified hostname" error

Can someone please help me with a basic problem with setting up the mail server, I can't seem to get to first base. The following is a Terminal session using telnet to do some basic testing (with personal info substituted for generic names) -
==============================
mbp-5:~ Tony$ telnet mailserver.mydomain 25
Trying 82.7.140.46...
Connected to mailserver.mydomain.
Escape character is '^]'.
220 mailserver.mydomain ESMTP Postfix
helo me
250 mailserver.mydomain
Mail from:myaddress@somedomain
250 2.1.0 Ok
Rcpt to:[email protected]
504 5.5.2 <me>: Helo command rejected: need fully-qualified hostname
=============================================
In my Server Admin/Mail/General settings I have the host name set to mailserver.mydomain
Can anyone give me a pointer please

Thanks for that info.
However, is the FQDN mailserver.example.com or example.com ?
Hey guys - old thread, but was poking about and came across this.  I'll assume you've fix this, but the reason for the behavior (in case others find this) is that Postfix's default configuration requires a FQHN at HELO.  This helps with spam and reverse DNS.  If you want to turn this behavior off, then change this line in main.cf from:
[smtpd_helo_restrictions = reject_non_fqdn_helo_hostname reject_invalid_helo_hostname]
To:
[smtpd_helo_restrictions = reject_invalid_helo_hostname]
Personally, I do NOT like changing this.  However, mail clients on Windows (Outlook, OE and maybe others) pull the hostname off the TCP/IP stack.  So if your machine is named FOO, even if you have a domain suffix of "bar.com" which is forced, or if you force it in the "Computer Name" tab with the "More" button, Win7 will only send FOO to Outlook or OE which is sloppy.  RFC1123 states you MUST send FQHN, but MSFT doesn't allways care about RFC.  And actually, it is a lack of communication between OS and Apps.
Many people have asked how to force Outlook to send the FQHN.  This is a misnomer as it is the OS that sends it.  Regardless, once can force the hostname by editing the registry.  Note this regards the TCP/IP parameters only.  These two values can be changed:
In [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\services\Tcpip\Parameters]
For the [Hostname] value, you would change [FOO] to [foo.bar.com]
Likewise for the [NV Hostname] value, you would change [FOO] to [foo.bar.com]
If you have many systems, you could always write a .reg file to do it for you.
In this way, you can leave your server more secure and provide functionality to your Windows clients.
Hope this helps.
t

Similar Messages

  • Error: Helo command rejected: need fully-qualified hostname

    Im trying to setup a SL Server as mail server for internal and external use (company.lan and company.net).
    When I try to send to the internal (company.lan) I get the following error:
    Helo command rejected: need fully-qualified hostname.
    Here is my postconf -n output
    I guess the error is in the line with the bold letters. How can I change it and should I?
    Thanks
    Kostas
    Last login: Mon Nov 16 23:42:18 on console
    server:~ admin$ postconf -n
    biff = no
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    header_checks = pcre:/etc/postfix/customheaderchecks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = dovecot
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    messagesizelimit = 10485760
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mydomain = COMPANY.lan
    mydomain_fallback = localhost
    myhostname = server.COMPANY.lan
    mynetworks = 127.0.0.0/8,192.168.16.0
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated permit
    smtpdenforcetls = no
    smtpdhelorequired = yes
    *smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname*
    smtpdpw_server_securityoptions = cram-md5
    smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
    smtpdsasl_authenable = yes
    smtpdtlsCAfile = /etc/certificates/server.COMPANY.lan.57680B96FCEC7F50F59A01D8F7DC4E841B2DB453.c hain.pem
    smtpdtls_certfile = /etc/certificates/server.COMPANY.lan.57680B96FCEC7F50F59A01D8F7DC4E841B2DB453.c ert.pem
    smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL
    smtpdtls_keyfile = /etc/certificates/server.COMPANY.lan.57680B96FCEC7F50F59A01D8F7DC4E841B2DB453.k ey.pem
    smtpduse_pwserver = yes
    smtpdusetls = yes
    unknownlocal_recipient_rejectcode = 550
    virtualaliasdomains = $virtualaliasmaps hash:/etc/postfix/virtual_domains
    virtualaliasmaps = hash:/etc/postfix/virtual_users
    server:~ admin$

    Παρακαλώ (you are welcome) Kostas,
    If mail is for internal use only, you can keep the .lan address as long as you authenticate to send.
    If you need to send to external addresses, then make sure you use a valid e-mail address or your mails will be rejected by other mail servers.
    HTH,
    Alex

  • Helo command rejected: need fully-qualified hostname

    Hi,
    I am using iPlanet messaging server 5.2. My email is rejected by some mail servers with following reason:
    Helo command rejected: need fully-qualified hostname
    Could you please give me some sujjestions to fix this problem?
    Thanks in advance!
    Francis

    Without knowing what os you're on, I'll assume solaris . .
    You can address your helo/ehlo greeting two ways:
    1. Fix your /etc/hosts so that the fqdn comes before your nickname
    xx.xx.xx.xx hostname.domain hostname
    or
    2. Add the fqdn to the daemon line in the imta.cnf file:
    ! tcp_local
    tcp_local smtp mx single_sys remotehost inner \ switchchannel identnonelimited subdirs 20\
    maxjobs 20 pool SMTP_POOL maytlsserver\ maysaslserver saslswitchchannel tcp_auth\
    threaddepth 64 dequeue_removeroute
    tcp-daemon HOSTNAME.YOUR_DOMAIN

  • 504 5.5.2 windows : Helo command rejected: need fully-qualified hostname

    Hello2all!
    Just try to send e-mail from PC client running Outlook 2003 clien, and can't, the returning message is *504 5.5.2 <windows>: Helo command rejected: need fully-qualified hostname*
    From other e-mail client e-mail's sending and recieving very well, but Outlook 2003 return this message.
    Anybody has idea?

    I am so sorry, found great answer from Apple.
    May be someone will be interested.
    http://support.apple.com/kb/TS3023

  • Server error: '504 5.5.2 LITBSL2 : Helo command rejected: need fully-qualified hostname'

    Clearly I've messed up my DNS.
    Non of my Windows clients using Outlook can send mail, though they can all receive mail.
    what am i missing?
    tks,

    I am so sorry, found great answer from Apple.
    May be someone will be interested.
    http://support.apple.com/kb/TS3023

  • Relay Access denied /fully-qualified hostname

    hello guys,
    I have made an application that sends emails (with attachments) to different users. It works fine when I use an email account (smtp server) from my network but not otherwise.... For example if i use it from my university then uni's smtp server must be used. But when i run it from my job, my uni's server does not work (vice versa).
    I get the following exceptions:
    Thu Feb 05 12:46:40 CET 2004
    ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
    nested exception is:
         class javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
         class javax.mail.SendFailedException: 554 <[email protected]>: Recipient address rejected: Relay access denied
         at javax.mail.Transport.send0(Transport.java:218)
         at javax.mail.Transport.send(Transport.java:80)
         at MailUtil.testOutgoingSmtp(Main.java:692)
         at EmailConfigDialog.testBtActionPerformed(Main.java:1578)....
    Thu Feb 05 12:30:58 CET 2004
    ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
    nested exception is:
         class javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
         class javax.mail.SendFailedException: 504 <cube>: Helo command rejected: need fully-qualified hostname
         at javax.mail.Transport.send0(Transport.java:218)
         at javax.mail.Transport.send(Transport.java:80)
         at MailUtil.testOutgoingSmtp(Main.java:692)
         at EmailConfigDialog.testBtActionPerformed(Main.java:1578)
    my hostname is cube. Can someone please help? It is driving me crazy :::(.
    I am using windows xp
    cheers
    Awan

    Sorry, hit the post button before addressing the other problem. While your getting the DNS problem solved find the guy that is administering the SMTP server and tell him it is not relaying messages for you. He'll probably want to know the address so bring the stack trace with you and show him the 500 series error.

  • Configure Postfix to allow a non fully-qualified hostname to send email

    I have a Mushroom Networks Porcini box that sends notifications from email address bbna@bbna
    When I set up the Porcini to send notifications to my email address using a Mac Mini running Snow Leopard Server the email session aborts:
    macbookenet:~ pderby$ telnet red.pderby.com 25
    Trying 208.37.99.226...
    Connected to red.pderby.com.
    Escape character is '^]'.
    220 red.pderby.com ESMTP Postfix
    HELO bbna
    250 red.pderby.com
    MAIL FROM:<bbna@bbna>
    250 2.1.0 Ok
    RCPT TO:<[email protected]>
    504 5.5.2 <bbna>: Helo command rejected: need fully-qualified hostname
    I would like to configure Postfix to accept mail from this MAIL FROM address as an exception, rejecting any other addresses that are not fully-qualified.
    Is there a way to do that?
    Thanks for any help!

    Launch Terminal.app and buried in the usual postconf -n output for your host, you should find this line:
    smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
    If so, then edit it with the following two lines (that first line is one long line) to tweak that:
    sudo postconf -e "smtpd_helo_restrictions = permit_mynetworks reject_invalid_helo_hostname reject_non_fqdn_helo_hostname"
    sudo postfix reload
    That will cause local hosts (from the mynetworks setting) to bypass the SMTP HELO check that's tripping your "underpowered" box here.

  • Fail to install 9iAS9.0.2-a fully qualified hostname has not be specified

    hello
    in order to study oracle9iAS,i download the 9iAS9.0.2 from your website,but at the first disk installation,it tell me:
    "installation has detected that a fully qualified hostname has not be specified for this host,oracle9i Application server installation need a default domain name to be specified..........................."
    and my host file under "C:\WINNT\system32\drivers\etc" is as following:
    # Copyright (c) 1993-1999 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    127.0.0.1 localhost
    who can help me to solve the problem?
    thank you

    You should enter another ip-address like
    199.999.99.0 hostename.domain
    127.0.0.1 localhost
    If you don't intend to publish the website outside your own domain you can use a localdomain If you do want to be able to see the website from outside then you will need a fully qualified internet adress like web.oracle.com.
    Try a ping from a commandbox (start > run > cmd) and you can see what adress your machine has now.
    If you have windows 2000 SP 3 operating system don't even begin trying to install Portal
    Oracle Portal is not working op service pack 3.
    Regards
    Arnoud
    Senior Oracle Internet Consultant
    http://www.thedoc.nl

  • Fully Qualified Hostname problem with 9iAS install on WinNT

    I am working within a corporate lan and installing 9ias to a Windows NT Sp 6 PC. I am using a fixed ip address and a fixed dns server. Although in the tcp/ip properties, dns tab I specify the hostname (shashi_build) and the domain (optus.com.au) and have an entry in the hosts and lmhosts files (192.168.218.238 shashi_build.optus.com.au shashi_build), the installer keeps coming up with an error message saying:
    "Installation has detected that a fully qualified hostname has not been specified for this host. Oracle 91AS installation requires a default domain name to be specified for each host where it is installed. Please consult your operating system instructions for detials on assigning a default domain name. If you are not using a DNS server, then the file c:\winnt\system32\drivers\etc\hosts must also include a line of the the form:
    <IP_ADDRESS> <FULLY_QUALIFIED_HOSTNAME< <ALIASES>
    After making these changes, please reboot the host and restart the install."
    Unquote.
    The use dns for name resolution box is checked on the wins tab. Use lmhosts is checked too.
    I even tried using DHCP, but to no effect.
    I have ensured that the temp directory has sufficient space, page file is a minimum 1024 mb etc.
    Can someone please help urgently? Thanks in anticipation.

    This is a big deal. Please search the forum for "fully qualified host name" or "fully qualified domain name." You must get this right at install because you cannot make any changes later.
    I made several posts relating to this issue in detail ca. Jan. 2003.
    Mike

  • [svn:bz-trunk] 14749: Change tests to use fully qualified hostname of flexteam.corp.adobe. com as flexteam was not resolving on all regression boxes.

    Revision: 14749
    Revision: 14749
    Author:   [email protected]
    Date:     2010-03-14 05:43:14 -0700 (Sun, 14 Mar 2010)
    Log Message:
    Change tests to use fully qualified hostname of flexteam.corp.adobe.com as flexteam was not resolving on all regression boxes.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/202863/bug202863Doc Lit.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/proxyService/202863/bug202863Rpc Enc.mxml

  • Powershell send-mailmessage error - helo command rejected: need fully-qualified

    did you try the From and To email addresses in the format of
    "User01 "
    "User02 "
    Like the examples here?
    https://technet.microsoft.com/en-us/library/hh849925.aspx

    Hello,I need help with sending e-mails via Powershell using SMTP authentication. I've described the problem here on StackOverflow already:
    http://stackoverflow.com/questions/31542444/powershell-send-mailmessage-error-helo-command-rejected-...Re-pasting here: """I've read many sources regarding this issue, but no luck :/I am trying to use Powershell 4.0 (Windows server 2012 R2) to send e-mails via the Send-MailMessage commandlet in this way:PHP$From = "[email protected]"$To = "[email protected]"$Subject = "e-mail odeslany z powershellu :)"$Body = "..."$SMTPServer = "smtp.mydomain.cz"$SMTPPort = "587"$credentials = new-object Management.Automation.PSCredential “[email protected]”, (“xxxpasswordxxx” | ConvertTo-SecureString -AsPlainText -Force)Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer...
    This topic first appeared in the Spiceworks Community

  • Oracle 9i Application server installation problem(MSG:Fully qualified domain name)

    I have installed Oracle 9i database.Now downloaded application server 9iAs,when i am installing I have got this error message(J2ee and web cache)
    Message begin
    Installation has detected that a fully qualified hostname has not been specified for this host.Oracle 9i application server requires a default domain name to be specified for each host where it is installed .Please consult your OS instructions for details on assigning a default domain name If u are not using DNS server then the file d:\windows\system32\drivers\etc hostsmust also include a line of a form
    <IP_ADDRESS><FULLY_QUALIFIED_HOST_NAME><ALIESES>
    Message End
    Could some one suggest the procedure to follow.
    Pl ,mailme to [email protected]
    I appriciate your help
    Tahnq
    Ravi

    Search this forum for answers and discussions.
    Basically, your machine will need a "fully qualified hostname" e.g. myhostname.mydomain.com, only myhostname is not enough.
    Also, AS does not allow the IP to change after install e.g. no DHCP (dynamically allocated IP) allowed!
    Hth,
    Fredrik

  • Server fully qualified Name

    Hi Experts,
    How to findout the EP server fully qualified name?
    I have following URL only
    for eg: http://<servername>:<port>/irj/portal
    i need fully qualified name?
    Regards,
    Manivannan P

    Hi sap_prof, hi colleagues,
    as I had also problems when starting with WDA on my SAP NetWeaver 7.0 SR 3, Development Subscription,
    I like to add some comments how I have solved this situation.
    My SAP AS-ABAP-Java runs in a Microsoft workgroup landscape (without an explicit  DNS-Server) together
    with a NAS server and four client machines.
    Looking here (as usual) in the forum, I found yesterday following threads:
    [FQDN for workgroup]
    [Re: Server fully qualified Name]
    So, having found the solution for my issue, I decided to come back to the community to give my implemented solution.
    But knowing now the correct term FQDN, I found instead following additionally thread which give us the hint in the right
    direction: [Re: CX_FQDN runtime error]
    Reading in the book "Windows Server 2003, R2 and SP1 Edition, Wiley, given by Jeffrey R. Shapiro and Jim Boyce,
    I get conscious about that with Windows hosts file you are able to resolve FQDN names without needing to query
    a DNS server for resolution.
    So, I build up my hosts files on all machines in the following manner:
    127.0.0.1    localhost
    192.168.MMM.NNN    <hostname>    <hostname>.dr-rauch.eu
    192.168.MMM.NNN    <HOSTNAME>    <HOSTNAME>.dr-rauch.eu
    192.168.MMM.NNN    <Hostname>    <Hostname>.dr-rauch.eu
    I repeated the three last items for all of my server and client machines.
    Additionally, I added in the properties of the internet protocol (TCP/IP) of the NICs the following DNS-Server
    address items:
    preferred DNS-Server    127.0.0.1
    alternative DNS-Server    IP-address of my gateway/router, to be able furtheron to access the www.
    Last but not least, I extended my SAP AS-ABAP-Java instance profile as proposed in the online help with the
    following item:
    icm/host_name_full = $(SAPLOCALHOST).dr-rauch.eu, and
    via SU01 I managed a new user - especially for web access - to prevent some upcomming access and
    other issues, and did what is said in the SAP note 1088717 - Active Services for WDA in the SICF.
    Now I am able and ready to work in my "DNS-less" Microsoft workgroup landscape with my SAP system.
    Thank you for this forum.
    Regards, Christian

  • Fully Qualified Host Name does not work

    Hello,
    I've EP 7 with Usage Types AS Java, EPC, EP, BI Java, BP-ERP & XSS.
    I am using fully qualified hostname by means of making entries in hosts file at OS level. I've also set icm/host_name_full parameter correctly.
    Now when I enter URL as http://<fully qualified hostname>:<port>/irj/portal I am able to login to the system but after which if I try to navigate through any links under Employee Self-Service and Manager Self-Service for e.g. Employee Self-Service --> Benifits and Payment --> Request Claims, nothing happens. neither it throws any error nor does any page is displayed.
    Same thing when I try without using fully qualified hostname like http://<hostname>:<port>/irj/portal it works absolutely fine.
    I have done same settings as described above on my development as well as production system where it works absolutely fine with fully qualified hostname.
    Regards,
    Kashyap

    Hi
    if you are using proxy try adding your domain name in your proxy exceptions list
    Internet Options ->Connections ->Lan Settings->Proxy Server ->Advanced->Exceptions . try adding your host name to that list
    hope it will work.
    Jo

  • Install 9ias on win2k qualified hostname

    Hi,
    I'am trying to install oracle 9ias release 2 on our server, but when doing the installation, it gives the error:
    installation detected that a fully qualified hostname has not been specified for this host.....etc
    <IP_ADRESS><FULLY_QUALIFIED_HOSTNAME> <ALIASES>
    We have here a DNS server, so I tried also to set in manually in the hostfile, but the same error..
    Has somebody experience the same problems? and how can i resolve this?
    thanks,
    Remco Ploeg

    Hi Remco,
    the easiest way is adding a line to your hosts file with following structure:
    your_ip_addres machine.domain.tld alias
    example:
    193.2.1.66 this_is.my_ias.com my_ias
    beware - you MUST follow this sequence - if you put alias in front of 'fully qualified host name' you'll get the same error again.
    By the way - you've probably noticed till now from other discussions that this 'feature' ia s major pain in the ...
    good luck,
    Ervin!

Maybe you are looking for

  • Medialink 1.55 NOT working

    Hi, I use my PS3 for streaming with my iMac. Since the last (mandantory) firmware update from Sony, Medialink does not support my PS3 (unsupported device). Today I received the update from Nullriver. I hoped this would solve all the issues. But... Me

  • Applet trouble

    Hi, I am no good at applets but i thorught i would make one. Wel, i made one that works lovely in Applet viewer but when i run it in Opera it has no animation! I do have java 2 installed, hence that i can see the applet. But i get no annimation as yo

  • How can use Chrome System in Flash Builder

    i have a problem with flash builder (Gumbo). in fact i can't use system chrome in flash builder beta.(after changing .xml file) please help me

  • Why firefox cannot load my website but other programs can

    I try to open mywebsite. At first it succesful to load the site, but a second later my website didnt appear. I try another browser such as Internet Explorer and able to open mysite. I tell my friend to open in their browser, they say that using chrom

  • Help Regarding OutOfMemoryError Exception

    Hello, I am trying to write a small program, which downloads all images returned by a google image search. First when I give a query like "tiger" to search, it downloads the images numbering till 684. The download of images count start from 0. My cod