VestaCP error when sending email with thunderbird

Discussion in 'Questions and Answers' started by thekreek, Feb 17, 2014.

  1. thekreek

    thekreek Member

    37
    5
    May 17, 2013
    Hello, I have a small issue with VestaCP, not sure if you have had the same problem before.

    I'm trying to send email with thunderbird as my email client, the message I'm getting its the following:

    An error occurred while sending mail. The mail server responded: Helo name contains a ip address (HELO was [192.168.1.50]) and not is valid. Please verify that your email address is correct in your mail preferences and try again.

    I double checked the settings in thunderbird:

    IMAP: mail.domain.com - port 143 - STARTTLS - Normal password

    SMTP: mail.domain.com port 587

    Thunderbird is able to download the email without a problem, the only thing I added to my VestaCP install was CSF following the instructions from Steven's blog

    I have done the following:

    * Change the LAN IP from the computer (wifi and wired)
    * Disable CSF (same error)

    Do you have any suggestions or tips?

    vestacp iniz email error local ip.png
     
  2. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Did your vps does have a valid hostname?

    And does your email client use auth for SMTP?

    An option like: "Outgoing server requires authentication, use same settings as incoming server"?
     
  3. mikho

    mikho Not to be taken seriously, ever!

    963
    253
    May 15, 2013
    The mailserver replies to the HELO command with an internal IP which is apparently is not accepted by Thunderbird.


    Is there an option to make the mailserver return the domain name in the HELO command?


    In MS Exchange its called a masquerade domain, most be the same here or a similar name.
     
  4. thekreek

    thekreek Member

    37
    5
    May 17, 2013
    Yes I'm using authetication on thunderbird.

    The issue appears to be from exim4, the logs show the same error. Currently I'm looking on the exim docs to see if I'm able to fix it, so far I haven't hit the jackpot.

    Yes it has an FQDN.
     
  5. switsys

    switsys Active Member

    204
    60
    Jul 18, 2013
    It seem to be the complete opposite. :p


    The client (Thunderbird) announces itself with the local IP, which is not accepted by the mail server.

    I think the problem could be related to exim not being configured to allow "domain/address literals" (RFC2821) and (RFC1123).

    Theoretically you should be able to resolve this by adding the line ALLOW_DOMAIN_LITERALS in the main exim config file, or MAIN_ALLOW_DOMAIN_LITERALS = yes in a 'local' configuration file.

    Or by editing OR commenting out the lines in the ACL that says 'deny' and 'drop' regarding 'acl_smtp_mail'.
     
  6. mikho

    mikho Not to be taken seriously, ever!

    963
    253
    May 15, 2013
    That was sort of what I ment but messed up while thinking and typing at the same time.


    Exim reply with the ip that Thunderbird says it comes from.


    You need to either make Thunderbird use the external ip or (as posted on LET) edit the exim conf to allow internal ips.
     
  7. switsys

    switsys Active Member

    204
    60
    Jul 18, 2013
    It doesn't matter if Thunderbird 'uses' the external IP or not.  


    It has nothing to do with whether the address is 'internal' or 'external'.


    It's about 'allowing' the usage of IP-addresses, ANY IP-address AT ALL, instead of DNS-names ( i.e. '[email protected]' instead of '[email protected]' ).
     
  8. mikho

    mikho Not to be taken seriously, ever!

    963
    253
    May 15, 2013
    It does matter, if Thunderbird reports an internal IP and Exim doesn't allow it then there is a problem.


    So, to solve it you need to change something on either the client or server, or both.
     
  9. wlanboy

    wlanboy Content Contributer

    2,126
    1,169
    May 16, 2013
    Check your SMTP setting within Thunderbird.

    You can define a user name for each SMTP account.

    Maybe Thunderbird will not add the ip If you add the domain there:

    [​IMG]
     
    Last edited by a moderator: Apr 30, 2017
  10. jarland

    jarland The ocean is digital

    873
    562
    Apr 4, 2013
    If things are set well it does. Most people tend to limit traffic that declares itself as  RFC1918 address space outside of a local network.