Error: Local address contains control or whitespace
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Error: Local address contains control or whitespace

  1. #1
    Member
    Join Date
    Oct 2012
    Posts
    22

    Question Error: Local address contains control or whitespace

    When we try to send an email from a smartphone, this message appears in the sync.log :

    2015-07-28 14:14:07,782 ERROR [ZxMobile] [tid=48768;account=user@domain.com;id=android11;mod el=googleNexus4;oip=X.X.X.X;eas=14.1;rid=1173;] sync - Unable to send email: com.zimbra.common.service.ServiceException: system failure: Unable to send message
    ExceptionId:ZxMobile:1438085647781:be85440e41a0d17 4
    Code:service.FAILURE: org.openzal.zal.exceptions.ZimbraException: com.zimbra.common.service.ServiceException: system failure: Unable to send message
    ExceptionId:ZxMobile:1438085647781:be85440e41a0d17 4
    Code:service.FAILURE
    at org.openzal.zal.exceptions.ExceptionWrapper$31.cre ate ( ExceptionWrapper.java:304 )
    at org.openzal.zal.exceptions.ExceptionWrapper.wrap ( ExceptionWrapper.java:352 )
    ...
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.r un ( QueuedThreadPool.java:538 )
    at java.lang.Thread.run ( Thread.java:722 )
    Caused by: com.zimbra.common.service.ServiceException: system failure: Unable to send message
    ExceptionId:ZxMobile:1438085647781:be85440e41a0d17 4
    Code:service.FAILURE
    at com.zimbra.common.service.ServiceException.FAILURE ( ServiceException.java:258 )
    at com.zimbra.cs.mailbox.MailSender.sendMimeMessage ( MailSender.java:691 )
    ...
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.r un ( QueuedThreadPool.java:538 )
    at java.lang.Thread.run ( Thread.java:722 )
    Caused by: javax.mail.internet.AddressException: Local address contains control or whitespace in string ``User Name''
    at javax.mail.internet.InternetAddress.checkAddress ( InternetAddress.java:1213 )
    at javax.mail.internet.InternetAddress.parse ( InternetAddress.java:1091 )
    at javax.mail.internet.InternetAddress.parseHeader ( InternetAddress.java:658 )
    at javax.mail.internet.MimeMessage.getAddressHeader ( MimeMessage.java:702 )


    We've found that by removing the blank space in the "from" field, the sending works. Not a valid solution because we have many users ...

  2. #2
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,360
    Hello S3rgi!

    Can you please give me an example of the format of the "from" field that does not work?

    Have a nice day,
    Cine
    the ZeXtras Team

  3. #3
    Member
    Join Date
    Oct 2012
    Posts
    22
    "User Name" don't work, "UserName" works... On sync.log appears the "from" string that cause the error...

    Have a nice day
    Sergi

  4. #4
    Member
    Join Date
    Oct 2012
    Posts
    22
    Ah! We have the last version of zextras.

  5. #5
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    570
    Hi S3rgi,

    can you post your complete account configuration?

    As far as I know, while other mail servers like Lotus Notes or Exchange can have a user name containing spaces, on zimbra the user name must be an address of your mailbox and it cannot have spaces... In your logs I can see your account reported as account=user@domain.com so a valid username should be "user", so why do you need to use the string "User Name"?

    My 2 cents.
    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  6. #6
    Member
    Join Date
    Oct 2012
    Posts
    22
    excuse my ignorance... How can I extract a complete configuration of an account?

    anyway, the issue with the string field "from" is because in this field we have the phonetic text of the username. Our users access the zimbra through an LDAP directory, and their username is a number like "u21340", when its real name (and this is the from string) is "Antonio Banderas", and all e-mail addresses are aliases like "abanderas@domain.com"

    Thanks,
    Sergi

  7. #7
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,360
    Hello s3rgi!

    In order to get an account's configuration you just need to run the following command as the "zimbra" user:

    Code:
    zmprov ga abanderas@domain.com
    Can you please send both this info and a clean Account Logger file to community@zextras.com?

    You can obtain such file by following this steps:
    - Delete the appropriate Exchange ActiveSync account from the affected device.
    - Remove any related entry from the "Devices" list in the ZxMobile section of the ZeXtras Administration Zimlet.
    - Activate a "debug" level Account Logger.
    - Create the appropriate Exchange ActiveSync account on the affected device.
    - Wait until all items are synchronized and then reproduce the issue.
    - Reproduce the issue and send the logfile to community@zextras.com, making sure to add the URL to this post in the message's body.

    Have a nice day,
    Cine
    the ZeXtras Team

  8. #8
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,360
    Hello s3rgi!

    The devs investigated the logs you sent, and no issues with the "From" field has been found...
    On the other hand, the "To:" field of the email in the logs contains multiple bad characters - specifically, HTML entities: we successfuly reproduced the issue with the raw mime found in the logs and fixed it by removing all illegal characters in the "To" field: did you copy/paste that address on your client or is it saved in your Address Book? In the latter case, could you please email me a copy of the contact?

    Have a nice day,
    Cine
    the ZeXtras Team

  9. #9
    Member
    Join Date
    Oct 2012
    Posts
    22
    Hello Cine,
    Ok, but the problem occurs when we write directly to zimbra's contact and also when send to a mail addresses written direct to the "To" field... And the logs always says: "Caused by: javax.mail.internet.AddressException: Local address contains control or whitespace in string ``Sergi Navas''. This field in our tests is always the "From" string...

    Also, think in our language (Catalan - ca_ES) there may be are "bad" characters because we use UTF8 in our systems...

    Sergi Navas.

  10. #10
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,360
    Hello sr3gi!

    This is not a locale issue, in the logs you sent we found the following entry:

    Code:
    From: abanderas@domain.com
    To: Antonio Banderas <abanderas#gmail.com>
    Those "&lt;" and "&gt;" are HTML entities for the "<" and ">" symbols, and are the cause of the error found in the log... Could you please check your Address Book? Did you import that specific contact from another source - and if so, how?

    Have a nice day,
    Cine
    the ZeXtras Team

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •