Bad command argument error 12

Fixes an issue in which the IMAP ID and MOVE commands are not offered and a "BAD Command Error. 12" error message is thrown in an Exchange Server 2013 co-existence environment.

Exchange Server 2013 Enterprise Exchange Server 2013 Standard Edition Exchange Server 2016 Standard Edition Exchange Server 2016 Enterprise Edition More…Less

Symptoms

Consider the following scenario:

  • You deploy Microsoft Exchange Server 2013 and Microsoft Exchange Server 2010 in a co-existence environment.

  • All mailboxes are located in Exchange Server 2010.

  • You point all DNS records to Microsoft Exchange 2013 Client Access server for the client connection.

In this scenario, when Internet Message Access Protocol (IMAP) client sends CAPABILITY commands for ID and MOVE that can be used in Exchange Server 2013, Exchange Server 2010 cannot respond to these commands. Additionally, the following error message is thrown:

BAD Command Error. 12

Cause

This issue occurs because Exchange Server 2010 does not support IMAP capability for ID and MOVE commands that are supported in Exchange Server 2013.

Resolution

To resolve this issue, install Cumulative Update 9 for Exchange Server 2013, and

create a setting override as follows:

New-SettingOverride <override name> -Component Imap -Section RfcIDImapCafe -Reason “Disable ID command in Cafe” –Parameters @(“Enabled=false”)

Once all mailboxes have been moved to Exchange Server 2013 or Exchange Server 2016, the setting override can be removed by using the Remove-SettingOverride commandlet.

Workaround

To work around this issue, manually point back the DNS records to Exchange 2010 Client Access servers for client connection.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.

More Information

For more information about how to disable IMAP commands in Cafe after you install Cumulative Update 9, run the following PowerShell cmdlet:

New-SettingOverride <override name> -Component Imap -Section RfcIDImapCafe -Reason “Disable ID command in Cafe” –Parameters @(“Enabled=false”)If you want to re-enable the ID command, you have to remove the previous setting override by running the Remove-SettingOverride <override name> cmdlet.

Note

  • For the <override name> parameter, you can use any name, such as «DisableID». Similarly, you can specify your own reason for the –Reason parameter.

  • You may also want to disable the MOVE command just to be safe. To do that, run another New-SettingsOverride command by using different override name and replace the value of the Section parameter as RfcMoveImapCafe.

  • When you run the command, it should become effective within 15 minutes.

Need more help?

I’m having trouble finding examples/troubleshooting tips online, and am not quite sure that I’m interpreting the documentation correctly. Any assistance would be greatly appreciated.

I’m connecting to an e-mail server, and want to read the e-mail subjects, and bodies. I first make my connection like so:

import imaplib
c = imaplib.IMAP4_SSL(hostname, port)
c.login(username, password)

foldername = 'INBOX/SSR'
c.select(str.encode(foldername), readonly = True)

today = datetime.date.today().strftime('%d-%b-%Y')
searchcriteria = '(SENTON '{}')'.format(today)
typ, msg_ids = c.search(None, searchcriteria)
msg_ids = [s.decode('ascii') for s in msg_ids]

for idnumber in msg_ids:
print(c.fetch(idnumber, «(BODY.PEEK[HEADER])»))

The code and works and output looks as expected, up until the last line, at which point, I get

imaplib.error: FETCH command error: BAD [b’ Command Argument Error. 12′]

My line of thought, and subsequent testing examined the following possible issues:

  1. bytes vs. string. I converted input back to bytes, but the error remained constant
  2. improper syntax: I tried other commands, such as BODY, SUBJECT, and ENVELOPE but still got the same message.

I’m not sure how to interpret the error, and don’t really know where to start. Referencing https://www.rfc-editor.org/rfc/rfc3501.html from pp. 102+, I noticed that the values are labeled differently, but don’t understand what the issue is with my implementation. How should I interpret the error? What is wrong with my syntax?

P.S. Correct me if I’m wrong, but the c.search shouldn’t change my directory, yes? As in, by selecting foldername, I «navigate» to the selected folder, but just searching only returns values and shouldn’t change my location?

Hey there,

i’ve got a problem with Exchange 2010 and IMAP4. The service is started successfully but it is unable to handle imap requests. When i try to test it with telnet is says by typing any command with «BAD Command Error. 12»

Here is the configuration from «Get-ImapSettings | fl»:

RunspaceId                        : 49df46c8-c92d-4860-8e5d-33b212ad3044

ProtocolName                      : IMAP4

Name                              : 1

MaxCommandSize                    : 10240

ShowHiddenFoldersEnabled          : False

UnencryptedOrTLSBindings          : {0.0.0.0:143}

SSLBindings                       : {0.0.0.0:993}

InternalConnectionSettings        : {SYNCHEXCASHUB01.sync.hosting:993:SSL, SYNCHEXCASHUB01.sync.hosting:143:TLS}

ExternalConnectionSettings        : {msyncing.net:993:SSL}

X509CertificateName               : msyncing.net

Banner                            : The Microsoft Exchange IMAP4 service is ready.

LoginType                         : PlainTextLogin

AuthenticatedConnectionTimeout    : 00:30:00

PreAuthenticatedConnectionTimeout : 00:01:00

MaxConnections                    : 2147483647

MaxConnectionFromSingleIP         : 2147483647

MaxConnectionsPerUser             : 16

MessageRetrievalMimeFormat        : BestBodyFormat

ProxyTargetPort                   : 143

CalendarItemRetrievalOption       : iCalendar

OwaServerUrl                      :

EnableExactRFC822Size             : False

LiveIdBasicAuthReplacement        : False

SuppressReadReceipt               : False

ProtocolLogEnabled                : True

EnforceCertificateErrors          : False

LogFileLocation                   : E:IMAPLOGS

LogFileRollOverSettings           : Daily

LogPerFileSizeQuota               : 0 B (0 bytes)

ExtendedProtectionPolicy          : None

EnableGSSAPIAndNTLMAuth           : True

Server                            : SYNCHEXCASHUB01

AdminDisplayName                  :

ExchangeVersion                   : 0.10 (14.0.100.0)

DistinguishedName                 : CN=1,CN=IMAP4,CN=Protocols,CN=SYNCHEXCASHUB01,CN=Servers,CN=Exchange Administrative

                                     Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Sync Hosting,CN=Microsoft Exch

                                    ange,CN=Services,CN=Configuration,DC=sync,DC=hosting

Identity                          : SYNCHEXCASHUB011

Guid                              : 7005ade4-ce3e-4a95-a352-45164924fdec

ObjectCategory                    : sync.hosting/Configuration/Schema/ms-Exch-Protocol-Cfg-IMAP-Server

ObjectClass                       : {top, protocolCfg, protocolCfgIMAP, protocolCfgIMAPServer}

WhenChanged                       : 07.11.2011 16:17:51

WhenCreated                       : 19.09.2011 20:53:51

WhenChangedUTC                    : 07.11.2011 15:17:51

WhenCreatedUTC                    : 19.09.2011 18:53:51

OrganizationId                    :

OriginatingServer                 : SYNCHEXAD02.sync.hosting

IsValid                           : True

Here is the protocol log output:

#Fields: dateTime,sessionId,seqNumber,sIp,cIp,user,duration,rqsize,rpsize,command,parameters,context

2011-11-07T15:10:10.499Z,0000000000000001,0,178.250.172.237:143,93.223.147.244:50724,,-2147483648,0,53,OpenSession,,

2011-11-07T15:10:11.218Z,0000000000000002,0,10.0.7.10:993,10.0.7.10:7103,,-2147483648,0,53,OpenSession,,

2011-11-07T15:10:11.311Z,0000000000000002,1,10.0.7.10:993,10.0.7.10:7103,,62,15,135,capability,,R=ok

2011-11-07T15:10:11.358Z,0000000000000002,2,10.0.7.10:993,10.0.7.10:7103,,0,11,91,logout,,R=ok

2011-11-07T15:10:12.374Z,0000000000000001,1,178.250.172.237:143,93.223.147.244:50724,,0,4,28,InvalidCommand,HELO,»R=»»HELO BAD Command Error. 12″»;RpcL=-1;LdapL=-1″

2011-11-07T15:10:13.889Z,0000000000000001,2,178.250.172.237:143,93.223.147.244:50724,,0,4,28,InvalidCommand,EHLO,»R=»»EHLO BAD Command Error. 12″»;RpcL=-1;LdapL=-1″

2011-11-07T15:10:15.624Z,0000000000000001,3,178.250.172.237:143,93.223.147.244:50724,,0,4,57,InvalidCommand,HELP,»R=»»HELP BAD Command Error. 12″

2011-11-07T15:11:32.873Z,0000000000000003,0,10.0.7.10:993,10.0.7.10:7334,,-2147483648,0,53,OpenSession,,

2011-11-07T15:11:32.888Z,0000000000000003,1,10.0.7.10:993,10.0.7.10:7334,,0,15,135,capability,,R=ok

2011-11-07T15:11:33.029Z,0000000000000003,2,10.0.7.10:993,10.0.7.10:7334,,140,50,23,login,extest_93056d1d1ec44@sync.hosting *****,»R=»»aDIO NO LOGIN failed.»»;Msg=LogonFailed:LoginDenied»

2011-11-07T15:11:33.029Z,0000000000000003,3,10.0.7.10:993,10.0.7.10:7334,,0,0,0,CloseSession,,

I’ve already fixed this once with adding the «compliance.dll» lines that was missing from the «..exe.config» files. After applying UR 6 the error is appearing again and i don’t know how to fix it this time..

please advise,

Peter

Details
Category: Microsoft Exchange 2010

Published: 06 February 2010

Some errors are just plain stupid. I wonder how the system generates an error which is presented to the user. Perhaps someone out there has the answer. Today I had a request from a fellow colleague whose application failing to connect to exchange using IMAP Protocol. In an effort to help out, I requested the colleague to test by configuring outlook to retrieve the emails using IMAP. This seemed to be simplest test to determine if IMAP was really having problems…

My colleague succeeded on connecting using outlook. However he was not convinced because Microsoft Outlook is a Microsoft Product hence suspected that it could easily work as expected when other non-Microsoft could fail to work. I sought another way to prove that IMAP was working, however I could not find a 3rd party or freeware email application that supports IMAP to aid in testing. Not even Google could help me locate such an application, I guess my search skills let me down. An idea popped up in mind, test it manually using command and simulate what usually happens behind the scene. I turned back to Google for the command to use in the test. Google proved to be good friend this time providing with instant accurate result.

The I figured out that Microsoft IMAP on my server required me to type the following

Telnet MyIMAPServer 143

Trying 192.168.0.200…

Connected to imap.myexchangeserver.com.

Escape character is ‘^]’.

. login myusername mypassword

. list

It is important to note that every command after telnetting to the IMAP Server must be preceded by a full stop and space then the command itself. And the test worked. Of course my colleagues application was not doing this. In the end my colleague changed the protocol to POP3 and he was happy.

A different variation of the Microsoft error «Bad Command 12» , is another one that says «Bad Command State». If you are getting this error «Bad Command State», then you need to check the authentication setting specified on your Exchange POP3 or IMAP connector. If authentication is set to secure authentication, then you need to make sure secure authentication is disabled. Disabling secure authentication setting for the POP or IMAP connector and restarting the respective service will put you back in business.

  • Imap and Pop not working on 2013 servers — BAD Command received in Invalid state

    Hello, 
    We recently moved our frontend server over to Exchange 2013. So now both internally and externally all mail traffic will flow through the new servre. After battling issue after issue I was able to get the new exchange environment working as it should. The
    only problem is that IMAP and POP3 logins do not work for 2013 mailboxes. It works fine for 2010 but not 2013. Here are the results from the testconnectivity website:
    The IMAP service is being tested.
    There was an error testing the IMAP service
    Additional Details
    Secured: CN=mail.domain.com, OU=Unified Communications, O=Companhy, POBox=United States, S…
    S: * OK The Microsoft Exchange IMAP4 service is ready.
    C: 1 CAPABILITY
    S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
    1 OK CAPABILITY completed.
    C: 2 LOGIN user <password>
    S: 2 NO LOGIN failed.
    C: 3 LIST «» *
    S: 3 BAD Command received in Invalid state.
    Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.MailProtocolException: 3 BAD Command received in Invalid state.
    at Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.ImapProtocolTester.SendCommand(String command, String logString)
    at Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.BaseProtocolTest.PerformTestReally()
    Elapsed Time: 1829 ms.
    Here are my Get-ImapSettings from the mailbox server
    RunspaceId                        : 1c5069f4-520f-4f62-88d6-affd0e0796d7
    ProtocolName                      : IMAP4
    Name                              : 1
    MaxCommandSize                    : 10240
    ShowHiddenFoldersEnabled          : False
    UnencryptedOrTLSBindings          : {[::]:143, 0.0.0.0:143}
    SSLBindings                       : {[::]:993, 0.0.0.0:993}
    InternalConnectionSettings        : {MAIL4.domain.com:993:SSL, MAIL4.domain.com:143:TLS}
    ExternalConnectionSettings        : {}
    X509CertificateName               : mail.domain.com
    Banner                            : The Microsoft Exchange IMAP4 service is ready.
    LoginType                         : SecureLogin
    AuthenticatedConnectionTimeout    : 00:30:00
    PreAuthenticatedConnectionTimeout : 00:01:00
    MaxConnections                    : 2147483647
    MaxConnectionFromSingleIP         : 2147483647
    MaxConnectionsPerUser             : 16
    MessageRetrievalMimeFormat        : BestBodyFormat
    ProxyTargetPort                   : 143
    CalendarItemRetrievalOption       : iCalendar
    OwaServerUrl                      :
    EnableExactRFC822Size             : False
    LiveIdBasicAuthReplacement        : False
    SuppressReadReceipt               : False
    ProtocolLogEnabled                : True
    EnforceCertificateErrors          : False
    LogFileLocation                   : C:Program FilesMicrosoftExchange ServerV15LoggingImap4
    LogFileRollOverSettings           : Daily
    LogPerFileSizeQuota               : 0 B (0 bytes)
    ExtendedProtectionPolicy          : None
    EnableGSSAPIAndNTLMAuth           : True
    Server                            : MAIL4
    AdminDisplayName                  :
    ExchangeVersion                   : 0.10 (14.0.100.0)
    DistinguishedName                 : CN=1,CN=IMAP4,CN=Protocols,CN=MAIL4,CN=Servers,CN=Exchange Administrative Group
                                        (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Company,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=willowcreek,DC=org
    Identity                          : MAIL41
    Guid                              : 593e53d7-64e5-4170-b897-47b1af944a5b
    ObjectCategory                    : domain.com/Configuration/Schema/ms-Exch-Protocol-Cfg-IMAP-Server
    ObjectClass                       : {top, protocolCfg, protocolCfgIMAP, protocolCfgIMAPServer}
    WhenChanged                       : 2/4/2015 8:45:39 AM
    WhenCreated                       : 1/22/2015 1:48:43 PM
    WhenChangedUTC                    : 2/4/2015 2:45:39 PM
    WhenCreatedUTC                    : 1/22/2015 7:48:43 PM
    OrganizationId                    :
    OriginatingServer                 : NS6.domain.com
    IsValid                           : True
    ObjectState                       : Unchanged
    The IMAP service is being tested.
    There was an error testing the IMAP service
    Additional Details
    Secured: CN=mail.willowcreek.org, OU=Unified Communications, O=Willow Creek Community Church, POBox=United States, STREET=67 E Algonquin Road, L=South Barrington, S=IL, PostalCode=60010, C=US
    S: * OK The Microsoft Exchange IMAP4 service is ready.
    C: 1 CAPABILITY
    S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
    1 OK CAPABILITY completed.
    C: 2 LOGIN ssimpson <password>
    S: 2 NO LOGIN failed.
    C: 3 LIST «» *
    S: 3 BAD Command received in Invalid state.
    Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.MailProtocolException: 3 BAD Command received in Invalid state.
    at Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.ImapProtocolTester.SendCommand(String command, String logString)
    at Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.BaseProtocolTest.PerformTestReally()
    Elapsed Time: 1829 ms.
    The IMAP service is being tested.
    There was an error testing the IMAP service
    Additional Details
    Secured: CN=mail.willowcreek.org, OU=Unified Communications, O=Willow Creek Community Church, POBox=United States, STREET=67 E Algonquin Road, L=South Barrington, S=IL, PostalCode=60010, C=US
    S: * OK The Microsoft Exchange IMAP4 service is ready.
    C: 1 CAPABILITY
    S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
    1 OK CAPABILITY completed.
    C: 2 LOGIN ssimpson <password>
    S: 2 NO LOGIN failed.
    C: 3 LIST «» *
    S: 3 BAD Command received in Invalid state.
    Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.MailProtocolException: 3 BAD Command received in Invalid state.
    at Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.ImapProtocolTester.SendCommand(String command, String logString)
    at Microsoft.Exchange.Tools.ExRca.Tests.ImapPop.BaseProtocolTest.PerformTestReally()
    Elapsed Time: 1829 ms.

    When you do the telnet test make sure you enter in the command like below verbatim. Right before you type login you need to add some preceding character in my case the > sign.
    * OK The Microsoft Exchange IMAP4 service is ready.
    > login jchong password (make sure you type a preceding character first like the > sign)
    > OK LOGIN completed.
    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

  • BAD Command Argument Error. 11 writing to Exchange 2007 — Help Please…

    Hi,
    I am writing an IMAP to IMAP mailbox converter. I am testing a UW mailbox that I have approx. 1200 messages in to a MS Exchange 2007 Server. I am performing a javax.mail.Folder destFolder.appendMessages(sourceFolder.getMessages()). I transfer almost half the messages this why when i get the following exception. I have googled and not found any reference to it, nor does the protocol trace look bazaar :
    javax.mail.MessagingException: A4 BAD Command Argument Error. 11;
    nested exception is:
    com.sun.mail.iap.BadCommandException: A4 BAD Command Argument Error. 11
    at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2337)
    at com.sun.mail.imap.IMAPFolder.appendMessages(IMAPFolder.java:1289)
    at edu.yale.its.tp.email.conversion.IMAPConverter.copyMessages(IMAPConverter.java:83)
    at edu.yale.its.tp.email.conversion.IMAPConverter.copyFolder(IMAPConverter.java:75)
    at edu.yale.its.tp.email.conversion.IMAPConverter.convert(IMAPConverter.java:36)
    at edu.yale.its.tp.email.conversion.IMAPConverter.start(IMAPConverter.java:27)
    at edu.yale.its.tp.email.conversion.IMAPConverter.main(IMAPConverter.java:16)
    Caused by: com.sun.mail.iap.BadCommandException: A4 BAD Command Argument Error. 11
    at com.sun.mail.iap.Protocol.handleResult(Protocol.java:296)
    at com.sun.mail.imap.protocol.IMAPProtocol.appenduid(IMAPProtocol.java:881)
    at com.sun.mail.imap.protocol.IMAPProtocol.append(IMAPProtocol.java:835)
    at com.sun.mail.imap.IMAPFolder$10.doCommand(IMAPFolder.java:1292)
    at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2377)
    at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2332)
    … 6 more
    Here is the protocol trace…
    0 [main] INFO — start Conversion
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_11/jre/lib/javamail.providers (No such file or directory)
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/imap.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/imap.jar!/META-INF/javamail.providers
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/pop3.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/pop3.jar!/META-INF/javamail.providers
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.address.map
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_11/jre/lib/javamail.address.map (No such file or directory)
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.partialfetch: false
    * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] pantheon-po09.its.yale.edu IMAP4rev1 2002.336 at Fri, 21 Sep 2007 09:34:04 -0400 (EDT)
    IMAP DEBUG: AUTH: PLAIN
    IMAP DEBUG: AUTH: LOGIN
    A0 CAPABILITY
    * CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN
    A0 OK CAPABILITY completed
    IMAP DEBUG: AUTH: PLAIN
    IMAP DEBUG: AUTH: LOGIN
    DEBUG: protocolConnect login, host=pantheon-po09.its.yale.edu, user=jjv6, password=<non-null>
    A1 AUTHENTICATE PLAIN
    +
    +*<—-REMOVED—->*+
    A1 OK [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User jjv6 authenticated
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_11/jre/lib/javamail.providers (No such file or directory)
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/imap.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/imap.jar!/META-INF/javamail.providers
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/pop3.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/pop3.jar!/META-INF/javamail.providers
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: URL jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.address.map
    DEBUG: successfully loaded resource: jar:file:/usr/local/java-apis/javamail/javamail-1.4/lib/smtp.jar!/META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: /usr/java/jdk1.5.0_11/jre/lib/javamail.address.map (No such file or directory)
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.partialfetch: false
    * OK Microsoft Exchange Server 2007 IMAP4 service ready
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    DEBUG: protocolConnect login, host=connect.yale.edu, user=jjv6, password=<non-null>
    A1 LOGIN +*<—-Removed—->*+
    A1 OK LOGIN completed.
    A2 LIST «» «Sakai-Dev List»
    * LIST (HasNoChildren) «/» «Sakai-Dev List»
    A2 OK LIST completed.
    DEBUG: connection available — size: 1
    A2 EXAMINE «Sakai-Dev List»
    * 1206 EXISTS
    * 2 RECENT
    * OK [UIDVALIDITY 1151671867] UID validity status
    * OK [UIDNEXT 11497] Predicted next UID
    * FLAGS (Junk NonJunk $Label5 $Label1 $Label2 $Label3 $Label4 $MDNSent Answered Flagged Deleted Draft Seen)
    * OK [PERMANENTFLAGS ()] Permanent flags
    * OK [UNSEEN 8] first unseen message in /imap/j/jjv6/Sakai-Dev List
    A2 OK [READ-ONLY] EXAMINE completed
    DEBUG: connection available — size: 1
    A3 SELECT «Sakai-Dev List»
    * 524 EXISTS
    * 0 RECENT
    * FLAGS (Seen Answered Flagged Deleted Draft $MDNSent)
    * OK [PERMANENTFLAGS (Seen Answered Flagged Deleted Draft $MDNSent)] Permanent flags
    * OK [UIDVALIDITY 13758] UIDVALIDITY value
    * OK [UIDNEXT 525] The next unique identifier value
    A3 OK [READ-WRITE] SELECT completed.
    A3 LIST «» «Sakai-Dev List»
    * LIST (NoInferiors UnMarked) «/» «Sakai-Dev List»
    A3 OK LIST completed
    3080 [main] DEBUG — Source Messages : 1206
    3080 [main] DEBUG — Dest Messages : 524
    3080 [main] DEBUG — Copying 1206 Messages
    A4 FETCH 1 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 1 FETCH (ENVELOPE («Tue, 21 Aug 2007 13:35:23 -0700 (PDT)» «Re: Sakai portlet problem in uPortal» ((«Onur Sirin» NIL «onursirin» «sabanciuniv.edu»)) ((«Onur Sirin» NIL «onursirin» «sabanciuniv.edu»)) ((«Onur Sirin» NIL «onursirin» «sabanciuniv.edu»)) ((NIL NIL «sakai-dev» «collab.sakaiproject.org»)) NIL NIL «<[email protected]>» «<[email protected]>») INTERNALDATE «21-Aug-2007 16:37:20 -0400» RFC822.SIZE 7024)
    A4 OK FETCH completed
    A5 FETCH 1 (BODY[])
    * 1 FETCH (BODY[] {7024}
    Received: from mr4.its.yale.edu (mr4.its.yale.edu [130.132.50.10])
    by pantheon-po09.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id l7LKbJRC006741
    (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
    Tue, 21 Aug 2007 16:37:19 -0400
    Received: from paploo.uhi.ac.uk (app1.prod.collab.uhi.ac.uk [194.35.219.184])
    by mr4.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id l7LKbH3b030903;
    Tue, 21 Aug 2007 16:37:18 -0400
    Received: from paploo.uhi.ac.uk (localhost [127.0.0.1])
    by paploo.uhi.ac.uk (Postfix) with ESMTP id 7F70050E80;
    Tue, 21 Aug 2007 20:54:16 +0100 (BST)
    Message-ID: <[email protected]>
    Mime-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Received: from prod.collab.uhi.ac.uk ([194.35.219.182])
    by paploo.uhi.ac.uk (JAMES SMTP Server 2.1.3) with SMTP ID 665
    for <[email protected]>;
    Tue, 21 Aug 2007 20:53:07 +0100 (BST)
    Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158])
    by shmi.uhi.ac.uk (Postfix) with ESMTP id 347909F12
    for <[email protected]>; Tue, 21 Aug 2007 21:35:26 +0100 (BST)
    Received: from isper.nabble.com ([192.168.236.156])
    by kuber.nabble.com with esmtp (Exim 4.63)
    (envelope-from <[email protected]>)
    id 1INaRf-0004yq-5U
    for [email protected]; Tue, 21 Aug 2007 13:35:23 -0700
    Date: Tue, 21 Aug 2007 13:35:23 -0700 (PDT)
    From: Onur Sirin <[email protected]>
    To: [email protected]
    Subject: Re: Sakai portlet problem in uPortal
    In-Reply-To: <[email protected]>
    X-Content-Type-Outer-Envelope: text/plain; charset=us-ascii
    X-Nabble-From: [email protected]
    References: <[email protected]> <[email protected]>
    X-Content-Type-Message-Body: text/plain; charset=us-ascii
    Content-Type: text/plain; charset=us-ascii
    X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed)
    X-Yale-Not-Spam: For more info see: http://www.yale.edu/email/spam/content.html
    X-Yale-Spam-Score: (0)
    X-Yale-Filter-Score: 0
    X-Scanned-By: MIMEDefang 2.52 on 130.132.50.10
    Hi Charles,
    I used a portlet you created first but not in trunk. (as sakai-dash.war
    file) This might be older one.
    From catalina.out i get following logs.First, as always i get:
    WARN: Shared Segment file is missing
    /home/sakai/tomcat/sakai/sharedsegments/1187722277361.zip (2007-08-21
    23:02:38,279
    SearchBuilder_0_org.sakaiproject.search.index.impl.JDBCClusterIndexStore)
    ERROR: There has been a major poblem with the Search Index which has become
    corrupted (2007-08-21 23:02:38,285
    SearchBuilder_0_org.sakaiproject.search.index.impl.ClusterFSIndexStorage)
    java.io.IOException: No Index available to open
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexReader(ClusterFSIndexStorage.java:211)
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexSearcher(ClusterFSIndexStorage.java:288)
    at
    org.sakaiproject.search.index.impl.SearchIndexStorage.getIndexSearcher(SearchIndexStorage.java:97)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.getIndexSearcher(SearchServiceImpl.java:554)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.reload(SearchServiceImpl.java:451)
    at
    org.sakaiproject.search.component.service.impl.SearchIndexBuilderWorkerImpl.run(SearchIndexBuilderWorkerImpl.java:485)
    at java.lang.Thread.run(Thread.java:595)
    WARN: Shared Segment file is missing
    /home/sakai/tomcat/sakai/sharedsegments/1187722277361.zip (2007-08-21
    23:02:38,460
    SearchBuilder_1_org.sakaiproject.search.index.impl.JDBCClusterIndexStore)
    ERROR: There has been a major poblem with the Search Index which has become
    corrupted (2007-08-21 23:02:38,466
    SearchBuilder_1_org.sakaiproject.search.index.impl.ClusterFSIndexStorage)
    java.io.IOException: No Index available to open
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexReader(ClusterFSIndexStorage.java:211)
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexSearcher(ClusterFSIndexStorage.java:288)
    at
    org.sakaiproject.search.index.impl.SearchIndexStorage.getIndexSearcher(SearchIndexStorage.java:97)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.getIndexSearcher(SearchServiceImpl.java:554)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.reload(SearchServiceImpl.java:451)
    at
    org.sakaiproject.search.component.service.impl.SearchIndexBuilderWorkerImpl.run(SearchIndexBuilderWorkerImpl.java:485)
    at java.lang.Thread.run(Thread.java:595)
    I don’t know what it is. !!!
    And then, when i logged into portal, i get the following message:
    SakaiPortalLogin.loginAndCreate id=onursirin pw=plugh-xyzzy sec=plugh-xyzzy
    fn=Onur ln=Sirin [email protected] ip=10.4.3.1
    Site exists…~onursirin
    That’s all what i see in catalina.out.
    By the way, we are using Cisco CSS (Content Switch) for Load Balancing
    process.
    Behind CSS, there is apache server and application server installed on two
    servers which mentioned in this page
    http://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-LoadBalancing+and+Scaling
    http://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-LoadBalancing+and+Scaling
    as thin client .
    CSS DNS address = sucourse.sabanciuniv.edu
    App server DNS address = sakws1.sabanciuniv.edu and sakws2.sabanciuniv.edu
    It is enough to type sucourse.sabanciuniv.edu address in web browser.
    Their sakai.properties files are similar. However, there are following
    parameters that i didn’t use in my sakai.properties file. May be i should
    use them. !!
    [email protected]
    [email protected]
    [email protected]
    Now, i have changed my connection type by connecting Campus VPN server with
    Checkpoint VPN client, i got my sakai course pages correctly via sakai
    portlet. However, in campus i had same problem today.
    So, like i said, the situation is changing due to unknown reason.
    From portlet, i clicked on any course, i get blank screen with followingaddress in web browser address bar.
    https://sucourse.sabanciuniv.edu/sakai-login-tool/container?sakai.session=02274ca6-fc19-413c-80d9-4332ae4e4499&ticket=ST-5342-bLIfR5lVs29HB1ZAeRrMA3bbmQtVWRJqQ6N-20
    That’s all.
    Thank you for your response Charles !
    Regards
    Charles Severance wrote:
    View this message in context: http://www.nabble.com/Sakai-portlet-problem-in-uPortal-tf4304476.html#a12262587
    Sent from the Sakai — Development mailing list archive at Nabble.com.
    This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
    You can modify how you receive notifications at My Workspace > Preferences.
    A5 OK FETCH completed
    A6 FETCH 1 (FLAGS)
    * 1 FETCH (FLAGS (Seen Deleted NonJunk))
    A6 OK FETCH completed
    A4 APPEND «Sakai-Dev List» (Deleted Seen NonJunk) «21-Aug-2007 16:37:20 -0400» {7024+}
    A7 FETCH 1 (BODY[])
    * 1 FETCH (BODY[] {7024}
    Received: from mr4.its.yale.edu (mr4.its.yale.edu [130.132.50.10])
    by pantheon-po09.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id l7LKbJRC006741
    (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
    Tue, 21 Aug 2007 16:37:19 -0400
    Received: from paploo.uhi.ac.uk (app1.prod.collab.uhi.ac.uk [194.35.219.184])
    by mr4.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id l7LKbH3b030903;
    Tue, 21 Aug 2007 16:37:18 -0400
    Received: from paploo.uhi.ac.uk (localhost [127.0.0.1])
    by paploo.uhi.ac.uk (Postfix) with ESMTP id 7F70050E80;
    Tue, 21 Aug 2007 20:54:16 +0100 (BST)
    Message-ID: <[email protected]>
    Mime-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Received: from prod.collab.uhi.ac.uk ([194.35.219.182])
    by paploo.uhi.ac.uk (JAMES SMTP Server 2.1.3) with SMTP ID 665
    for <[email protected]>;
    Tue, 21 Aug 2007 20:53:07 +0100 (BST)
    Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158])
    by shmi.uhi.ac.uk (Postfix) with ESMTP id 347909F12
    for <[email protected]>; Tue, 21 Aug 2007 21:35:26 +0100 (BST)
    Received: from isper.nabble.com ([192.168.236.156])
    by kuber.nabble.com with esmtp (Exim 4.63)
    (envelope-from <[email protected]>)
    id 1INaRf-0004yq-5U
    for [email protected]; Tue, 21 Aug 2007 13:35:23 -0700
    Date: Tue, 21 Aug 2007 13:35:23 -0700 (PDT)
    From: Onur Sirin <[email protected]>
    To: [email protected]
    Subject: Re: Sakai portlet problem in uPortal
    In-Reply-To: <[email protected]>
    X-Content-Type-Outer-Envelope: text/plain; charset=us-ascii
    X-Nabble-From: [email protected]
    References: <[email protected]> <[email protected]>
    X-Content-Type-Message-Body: text/plain; charset=us-ascii
    Content-Type: text/plain; charset=us-ascii
    X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed)
    X-Yale-Not-Spam: For more info see: http://www.yale.edu/email/spam/content.html
    X-Yale-Spam-Score: (0)
    X-Yale-Filter-Score: 0
    X-Scanned-By: MIMEDefang 2.52 on 130.132.50.10
    Hi Charles,
    I used a portlet you created first but not in trunk. (as sakai-dash.war
    file) This might be older one.
    From catalina.out i get following logs.First, as always i get:
    WARN: Shared Segment file is missing
    /home/sakai/tomcat/sakai/sharedsegments/1187722277361.zip (2007-08-21
    23:02:38,279
    SearchBuilder_0_org.sakaiproject.search.index.impl.JDBCClusterIndexStore)
    ERROR: There has been a major poblem with the Search Index which has become
    corrupted (2007-08-21 23:02:38,285
    SearchBuilder_0_org.sakaiproject.search.index.impl.ClusterFSIndexStorage)
    java.io.IOException: No Index available to open
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexReader(ClusterFSIndexStorage.java:211)
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexSearcher(ClusterFSIndexStorage.java:288)
    at
    org.sakaiproject.search.index.impl.SearchIndexStorage.getIndexSearcher(SearchIndexStorage.java:97)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.getIndexSearcher(SearchServiceImpl.java:554)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.reload(SearchServiceImpl.java:451)
    at
    org.sakaiproject.search.component.service.impl.SearchIndexBuilderWorkerImpl.run(SearchIndexBuilderWorkerImpl.java:485)
    at java.lang.Thread.run(Thread.java:595)
    WARN: Shared Segment file is missing
    /home/sakai/tomcat/sakai/sharedsegments/1187722277361.zip (2007-08-21
    23:02:38,460
    SearchBuilder_1_org.sakaiproject.search.index.impl.JDBCClusterIndexStore)
    ERROR: There has been a major poblem with the Search Index which has become
    corrupted (2007-08-21 23:02:38,466
    SearchBuilder_1_org.sakaiproject.search.index.impl.ClusterFSIndexStorage)
    java.io.IOException: No Index available to open
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexReader(ClusterFSIndexStorage.java:211)
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexSearcher(ClusterFSIndexStorage.java:288)
    at
    org.sakaiproject.search.index.impl.SearchIndexStorage.getIndexSearcher(SearchIndexStorage.java:97)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.getIndexSearcher(SearchServiceImpl.java:554)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.reload(SearchServiceImpl.java:451)
    at
    org.sakaiproject.search.component.service.impl.SearchIndexBuilderWorkerImpl.run(SearchIndexBuilderWorkerImpl.java:485)
    at java.lang.Thread.run(Thread.java:595)
    I don’t know what it is. !!!
    And then, when i logged into portal, i get the following message:
    SakaiPortalLogin.loginAndCreate id=onursirin pw=plugh-xyzzy sec=plugh-xyzzy
    fn=Onur ln=Sirin [email protected] ip=10.4.3.1
    Site exists…~onursirin
    That’s all what i see in catalina.out.
    By the way, we are using Cisco CSS (Content Switch) for Load Balancing
    process.
    Behind CSS, there is apache server and application server installed on two
    servers which mentioned in this page
    http://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-LoadBalancing+and+Scaling
    http://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-LoadBalancing+and+Scaling
    as thin client .
    CSS DNS address = sucourse.sabanciuniv.edu
    App server DNS address = sakws1.sabanciuniv.edu and sakws2.sabanciuniv.edu
    It is enough to type sucourse.sabanciuniv.edu address in web browser.
    Their sakai.properties files are similar. However, there are following
    parameters that i didn’t use in my sakai.properties file. May be i should
    use them. !!
    [email protected]
    [email protected]
    [email protected]
    Now, i have changed my connection type by connecting Campus VPN server with
    Checkpoint VPN client, i got my sakai course pages correctly via sakai
    portlet. However, in campus i had same problem today.
    So, like i said, the situation is changing due to unknown reason.
    From portlet, i clicked on any course, i get blank screen with followingaddress in web browser address bar.
    https://sucourse.sabanciuniv.edu/sakai-login-tool/container?sakai.session=02274ca6-fc19-413c-80d9-4332ae4e4499&ticket=ST-5342-bLIfR5lVs29HB1ZAeRrMA3bbmQtVWRJqQ6N-20
    That’s all.
    Thank you for your response Charles !
    Regards
    Charles Severance wrote:
    View this message in context: http://www.nabble.com/Sakai-portlet-problem-in-uPortal-tf4304476.html#a12262587
    Sent from the Sakai — Development mailing list archive at Nabble.com.
    This automatic notification message was sent by Sakai Collab (https://collab.sakaiproject.org/portal) from the DG: Development (a.k.a. sakai-dev) site.
    You can modify how you receive notifications at My Workspace > Preferences.
    A7 OK FETCH completed
    Received: from mr4.its.yale.edu (mr4.its.yale.edu [130.132.50.10])
    by pantheon-po09.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id l7LKbJRC006741
    (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
    Tue, 21 Aug 2007 16:37:19 -0400
    Received: from paploo.uhi.ac.uk (app1.prod.collab.uhi.ac.uk [194.35.219.184])
    by mr4.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id l7LKbH3b030903;
    Tue, 21 Aug 2007 16:37:18 -0400
    Received: from paploo.uhi.ac.uk (localhost [127.0.0.1])
    by paploo.uhi.ac.uk (Postfix) with ESMTP id 7F70050E80;
    Tue, 21 Aug 2007 20:54:16 +0100 (BST)
    Message-ID: <[email protected]>
    Mime-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Received: from prod.collab.uhi.ac.uk ([194.35.219.182])
    by paploo.uhi.ac.uk (JAMES SMTP Server 2.1.3) with SMTP ID 665
    for <[email protected]>;
    Tue, 21 Aug 2007 20:53:07 +0100 (BST)
    Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158])
    by shmi.uhi.ac.uk (Postfix) with ESMTP id 347909F12
    for <[email protected]>; Tue, 21 Aug 2007 21:35:26 +0100 (BST)
    Received: from isper.nabble.com ([192.168.236.156])
    by kuber.nabble.com with esmtp (Exim 4.63)
    (envelope-from <[email protected]>)
    id 1INaRf-0004yq-5U
    for [email protected]; Tue, 21 Aug 2007 13:35:23 -0700
    Date: Tue, 21 Aug 2007 13:35:23 -0700 (PDT)
    From: Onur Sirin <[email protected]>
    To: [email protected]
    Subject: Re: Sakai portlet problem in uPortal
    In-Reply-To: <[email protected]>
    X-Content-Type-Outer-Envelope: text/plain; charset=us-ascii
    X-Nabble-From: [email protected]
    References: <[email protected]> <[email protected]>
    X-Content-Type-Message-Body: text/plain; charset=us-ascii
    Content-Type: text/plain; charset=us-ascii
    X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed)
    X-Yale-Not-Spam: For more info see: http://www.yale.edu/email/spam/content.html
    X-Yale-Spam-Score: (0)
    X-Yale-Filter-Score: 0
    X-Scanned-By: MIMEDefang 2.52 on 130.132.50.10
    Hi Charles,
    I used a portlet you created first but not in trunk. (as sakai-dash.war
    file) This might be older one.
    From catalina.out i get following logs.First, as always i get:
    WARN: Shared Segment file is missing
    /home/sakai/tomcat/sakai/sharedsegments/1187722277361.zip (2007-08-21
    23:02:38,279
    SearchBuilder_0_org.sakaiproject.search.index.impl.JDBCClusterIndexStore)
    ERROR: There has been a major poblem with the Search Index which has become
    corrupted (2007-08-21 23:02:38,285
    SearchBuilder_0_org.sakaiproject.search.index.impl.ClusterFSIndexStorage)
    java.io.IOException: No Index available to open
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexReader(ClusterFSIndexStorage.java:211)
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexSearcher(ClusterFSIndexStorage.java:288)
    at
    org.sakaiproject.search.index.impl.SearchIndexStorage.getIndexSearcher(SearchIndexStorage.java:97)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.getIndexSearcher(SearchServiceImpl.java:554)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.reload(SearchServiceImpl.java:451)
    at
    org.sakaiproject.search.component.service.impl.SearchIndexBuilderWorkerImpl.run(SearchIndexBuilderWorkerImpl.java:485)
    at java.lang.Thread.run(Thread.java:595)
    WARN: Shared Segment file is missing
    /home/sakai/tomcat/sakai/sharedsegments/1187722277361.zip (2007-08-21
    23:02:38,460
    SearchBuilder_1_org.sakaiproject.search.index.impl.JDBCClusterIndexStore)
    ERROR: There has been a major poblem with the Search Index which has become
    corrupted (2007-08-21 23:02:38,466
    SearchBuilder_1_org.sakaiproject.search.index.impl.ClusterFSIndexStorage)
    java.io.IOException: No Index available to open
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexReader(ClusterFSIndexStorage.java:211)
    at
    org.sakaiproject.search.index.impl.ClusterFSIndexStorage.getIndexSearcher(ClusterFSIndexStorage.java:288)
    at
    org.sakaiproject.search.index.impl.SearchIndexStorage.getIndexSearcher(SearchIndexStorage.java:97)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.getIndexSearcher(SearchServiceImpl.java:554)
    at
    org.sakaiproject.search.component.service.impl.SearchServiceImpl.reload(SearchServiceImpl.java:451)
    at
    org.sakaiproject.search.component.service.impl.SearchIndexBuilderWorkerImpl.run(SearchIndexBuilderWorkerImpl.java:485)
    at java.lang.Thread.run(Thread.java:595)
    I don’t know what it is. !!!
    And then, when i logged into portal, i get the following message:
    SakaiPortalLogin.loginAndCreate id=onursirin pw=plugh-xyzzy sec=plugh-xyzzy
    fn=Onur ln=Sirin [email protected] ip=10.4.3.1
    Site exists…~onursirin
    That’s all what i see in catalina.out.
    By the way, we are using Cisco CSS (Content Switch) for Load Balancing
    process.
    Behind CSS, there is apache server and application server installed on two
    servers which mentioned in this page
    http://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-LoadBalancing+and+Scaling
    http://confluence.sakaiproject.org/confluence/display/DOC/Sakai+2.4+Admin+Guide+-LoadBalancing+and+Scaling
    as thin client .
    CSS DNS address = sucourse.sabanciuniv.edu
    App server DNS address = sakws1.sabanciuniv.edu and sakws2.sabanciuniv.edu
    It is enough to type sucourse.sabanciuniv.edu address in web browser.
    Their sakai.properties files are similar. However, there are following
    parameters that i didn’t use in my sakai.properties file. May be i should
    use them. !!
    [email protected]
    [email protected]
    [email protected]
    Now, i have changed my connection type by connecting Campus VPN server

    The command that seems to be causing problems for Exchange is this one:
    A4 APPEND «Sakai-Dev List» (Deleted Seen NonJunk) «21-Aug-2007 16:37:20 -0400» {7024+}
    As far as I can see, there’s nothing wrong with the syntax of that command.
    My first guess is that Exchange is unhappy with the flags. Possibly
    it refuses to append a message with the Deleted flag set. If you’re
    willing to modify the flags in the source mailbox, I would try turning
    off the DELETED flag. Or, try not copying deleted messages.
    If that doesn’t work, the next thing to try is to get rid of all of the
    flags. You might want to copy the message into a local copy
    in order to lose all the flags from the original.

  • Javax.mail.MessagingException: A5 BAD Command Argument Error. 12;

    This error appeared on mailboxes hosted on Exchange 2007. It happens when a folder is searched with 11+ OR terms. It works fine with <= 10 subjectTerm items OR’ed together. The search term does not matter. The mailboxes are migrating from Exchange 2003 where the problem does not occur. I tested 51 OR’ed subject terms against the 2003 mailbox and it works fine. I didn’t test beyond 51 terms.
    I upgraded to JavaMail 1.4.2 and the problem still exists.
    I’m not sure if this is a JavaMail bug or an error with Exchange 2007.
    Here is the output generated with session debugging enabled against Exchange 2007:
    DEBUG: setDebug: JavaMail version 1.4.2
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    DEBUG: mail.imap.statuscachetimeout: 1000
    DEBUG: mail.imap.appendbuffersize: -1
    DEBUG: mail.imap.minidletime: 10
    DEBUG: trying to connect to host «qtdenexcam20.ad.domain.com», port 143, isSSL false
    * OK Microsoft Exchange Server 2007 IMAP4 service ready
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    IMAP DEBUG: AUTH: PLAIN
    DEBUG: protocolConnect login, host=qtdenexcam20.ad.domain.com, user=userid, password=<non-null>
    A1 AUTHENTICATE PLAIN
    +
    d21kZXYAd21kZXYAUXczc3QyMDA4
    A1 OK AUTHENTICATE completed.
    A2 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAMESPACE LITERAL+
    A2 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    IMAP DEBUG: AUTH: PLAIN
    Opening email folders.
    DEBUG: connection available — size: 1
    A3 SELECT INBOX
    * 23 EXISTS
    * 0 RECENT
    * FLAGS (Seen Answered Flagged Deleted Draft $MDNSent)
    * OK [PERMANENTFLAGS (Seen Answered Flagged Deleted Draft $MDNSent)] Permanent flags
    * OK [UNSEEN 6] Is the first unseen message
    * OK [UIDVALIDITY 765] UIDVALIDITY value
    * OK [UIDNEXT 15790] The next unique identifier value
    A3 OK [READ-WRITE] SELECT completed.
    A4 LIST INBOX «»
    * LIST (Noselect HasChildren) «/» «»
    A4 OK LIST completed.
    * OK Microsoft Exchange Server 2007 IMAP4 service ready
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    IMAP DEBUG: AUTH: PLAIN
    A1 AUTHENTICATE PLAIN
    +
    d21kZXYAd21kZXYAUXczc3QyMDA4
    A1 OK AUTHENTICATE completed.
    A2 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAMESPACE LITERAL+
    A2 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    IMAP DEBUG: AUTH: PLAIN
    A3 LIST «» Folders/processed_items_LARG
    * LIST (HasChildren) «/» Folders/processed_items_LARG
    A3 OK LIST completed.
    A4 LIST «» Folders/junk_LARG
    * LIST (HasNoChildren) «/» Folders/junk_LARG
    A4 OK LIST completed.
    Retrieving all messages from: INBOX
    23 messages retrieved.
    Processing junk email.
    *** Searching for junk mail ***
    A5 SEARCH OR OR OR OR OR OR OR OR OR OR SUBJECT test1 SUBJECT test2 SUBJECT test3 SUBJECT test4 SUBJECT test5 SUBJECT test6 SUBJECT test7 SUBJECT test8 SUBJE
    CT test9 SUBJECT test10 SUBJECT test11 1:23
    A5 BAD Command Argument Error. 12
    Exception caught in main while processing config/email.larg.properties.
    javax.mail.MessagingException: A5 BAD Command Argument Error. 12;
    nested exception is:
    com.sun.mail.iap.BadCommandException: A5 BAD Command Argument Error. 12
    javax.mail.MessagingException: A5 BAD Command Argument Error. 12;
    nested exception is:
    com.sun.mail.iap.BadCommandException: A5 BAD Command Argument Error. 12
    at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1706)
    at com.domain.nroc.email.WMSEmailAgent.processJunkEmail(Unknown Source)
    at com.domain.nroc.email.WMSEmailAgent.main(Unknown Source)
    Caused by: com.sun.mail.iap.BadCommandException: A5 BAD Command Argument Error. 12
    at com.sun.mail.iap.Protocol.handleResult(Protocol.java:338)
    at com.sun.mail.imap.protocol.IMAPProtocol.issueSearch(IMAPProtocol.java:1550)
    at com.sun.mail.imap.protocol.IMAPProtocol.search(IMAPProtocol.java:1458)
    at com.sun.mail.imap.protocol.IMAPProtocol.search(IMAPProtocol.java:1433)
    at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1687)
    … 2 more
    I’ll post the Exchange 2003 debug output in a follow-up message because this message is exceeding the length limit.

    Here is the output generated with session debugging enabled against Exchange 2003 (and 51 subject terms):
    DEBUG: setDebug: JavaMail version 1.4.2
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    DEBUG: mail.imap.statuscachetimeout: 1000
    DEBUG: mail.imap.appendbuffersize: -1
    DEBUG: mail.imap.minidletime: 10
    DEBUG: trying to connect to host «itdene2km05.ad.domain.com», port 143, isSSL false
    * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (ITDENE2KM05.AD.DOMAIN.COM) ready.
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    DEBUG: protocolConnect login, host=itdene2km05.ad.domain.com, user=aduserid, password=<non-null>
    A1 LOGIN «ad\userid» pass
    A1 OK LOGIN completed.
    A2 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A2 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    Opening email folders.
    DEBUG: connection available — size: 1
    A3 SELECT INBOX
    * 1 EXISTS
    * 0 RECENT
    * FLAGS (Seen Answered Flagged Deleted Draft $MDNSent)
    * OK [PERMANENTFLAGS (Seen Answered Flagged Deleted Draft $MDNSent)] Permanent flags
    * OK [UIDVALIDITY 597925] UIDVALIDITY value
    A3 OK [READ-WRITE] SELECT completed.
    A4 LIST INBOX «»
    * LIST (Noselect) «/» «»
    A4 OK LIST completed.
    * OK Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 (ITDENE2KM05.AD.DOMAIN.COM) ready.
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    A1 LOGIN «ad\userid» pass
    A1 OK LOGIN completed.
    A2 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A2 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    A3 LIST «» Folders/processed_items_LARG
    * LIST (HasChildren) «/» Folders/processed_items_LARG
    A3 OK LIST completed.
    A4 LIST «» Folders/junk_LARG
    * LIST (HasNoChildren) «/» Folders/junk_LARG
    A4 OK LIST completed.
    Retrieving all messages from: INBOX
    1 messages retrieved.
    Processing junk email.
    *** Searching for junk mail ***
    A5 SEARCH OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR OR
    OR SUBJECT test1 SUBJECT test2 SUBJECT test3 SUBJECT test4 SUBJECT test5 SUBJECT test6 SUBJECT test7 SUBJECT test8 SUBJECT test9 SUBJECT test10 SUBJECT test1
    1 SUBJECT test12 SUBJECT test13 SUBJECT test14 SUBJECT test15 SUBJECT test16 SUBJECT test17 SUBJECT test18 SUBJECT test19 SUBJECT test20 SUBJECT test21 SUBJE
    CT test22 SUBJECT test23 SUBJECT test24 SUBJECT test25 SUBJECT test26 SUBJECT test27 SUBJECT test28 SUBJECT test29 SUBJECT test30 SUBJECT test31 SUBJECT test
    32 SUBJECT test33 SUBJECT test34 SUBJECT test35 SUBJECT test36 SUBJECT test37 SUBJECT test38 SUBJECT test39 SUBJECT test40 SUBJECT test41 SUBJECT test42 SUBJ
    ECT test43 SUBJECT test44 SUBJECT test45 SUBJECT test46 SUBJECT test47 SUBJECT test48 SUBJECT test49 SUBJECT test50 SUBJECT «Exchange Maintenance» 1
    * SEARCH 1
    A5 OK SEARCH completed.
    1 junk email items identified.
    A5 LIST «» Folders/junk_LARG

  • Compiling servlet class:javac gives ‘bad command’

    I have a servlet class in the path: E:Tomcat324jakarta-tomcat-3.2.4webappsexamplesWEB-INFclasses
    I am using Tomcat 3.2.4 and Just Go (the tomcat launcher) provides this log of my settings:
    CLASSPATH:
    .;E:Tomcat324jakarta-tomcat-3.2.4libservlet.jar;E:Tomcat324jakarta-tomcat-3.2.4libant.jar;E:Tomcat324jakarta-tomcat-3.2.4libjaxp.jar;E:Tomcat324jakarta-tomcat-3.2.4libcrimson.jar;E:Tomcat324jakarta-tomcat-3.2.4libwebserver.jar;E:Tomcat324jakarta-tomcat-3.2.4libjasper.jar
    Executable :
    E:JBuilder35jdk1.2.2jrebinjava.exe
    Command line arguments (in order appended) :
    -Dtomcat.home=E:Tomcat324jakarta-tomcat-3.2.4
    org.apache.tomcat.startup.Tomcat
    Environment Vars :
    TOMCAT_HOME=E:Tomcat324jakarta-tomcat-3.2.4
    TOMCAT_LIB=E:Tomcat324jakarta-tomcat-3.2.4lib
    JAVA_HOME=E:JBuilder35jdk1.2.2jre
    JAVA_EXE=E:JBuilder35jdk1.2.2jrebinjava.exe
    WINDIR=C:WINDOWS
    CLASSPATH=.;E:Tomcat324jakarta-tomcat-3.2.4libservlet.jar;E:Tomcat324jakarta-tomcat-3.2.4libant.jar;E:Tomcat324jakarta-tomcat-3.2.4libjaxp.jar;E:Tomcat324jakarta-tomcat-3.2.4libcrimson.jar;E:Tomcat324jakarta-tomcat-3.2.4libwebserver.jar;E:Tomcat324jakarta-tomcat-3.2.4libjasper.jar
    In my DOS screen, I go to the path E:Tomcat324jakarta-tomcat-3.2.4webappsexamplesWEB-INFclasses and type in «javac helloWorld.java» and I get the message :Bad Command or File Name
    I’d greatly appreciate it if anyone could tell me what path to use in DOS to enable me to use the javac command.
    My problem is there are so many paths in the Tomcat settings (above), I am not sure which one to use to compile my servlet.

    Thanks for the suggestion. I am not trying to use JBuilder, just the command line from DOS so I hope that won’t impact this.
    JAVAC is in e:jbuilder35jdk1.2.2bin
    and the class that I am trying to run is in:
    e:tomcat324jakarta-tomcat-3.2.4webappsexamplesWEB-INFclasses
    and it’s called CookieExample.java
    Here’s a copy of my DOS Screen of what I did and the result:
    E:>set path = javac e:jbuilder35jdk1.2.2bin;%path%
    E:>cd e:tomcat324jakarta-tomcat-3.2.4webappsexamplesWEB-INFclasses
    E:Tomcat324jakarta-tomcat-3.2.4webappsexamplesWEB-INFclasses>javac CookieE
    xample.java
    Bad command or file name
    -Any idea why I am still getting the error?

  • Compiler error — bad command or file name

    I have downloaded JDK 1.4 beta from this site and have
    ammended the path commands in my Autoexec file. I use
    the DOS edit to type my programs and save the files with
    a .java extension. When I type javac Convertion.java for
    example all I get is Bad command or file name.
    Any assistance will be appreciated.

    either you haven’t rebooted your machine or you have set the PATH correctly — first reboot, then double check autoexec.bat

  • 400 bad command..

    I did have flash player it quit working so i uninstalled it and tried to reinstall it now all i get is a bad command message. 
    TP/1.162778681 content length 89 content-type:text/html 400 bad

    What OS?
    What browser?

  • Bad command startup — throttling

    Hello guys, I need really some help.
    I have an issue with my mail (Server 2.2.1)
    The issue I have are:
    — warning: /usr/libexec/postfix/smtpd: bad command startup — throttling
    — merlin.macwebservers.com postfix/smtpd[1144]: fatal: unsafe ownership or permissions on /private/etc/postfix/submit.cred: uid/gid/mode are 0/27/600 should be 0/0/0600
    — I have some email but not from gmail, yahho
    My postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    biff = no
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    data_directory = /Library/Server/Mail/Data/mta
    debug_peer_level = 2
    debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
    default_destination_concurrency_limit = 7
    default_privs = nobody
    default_transport = smtp
    dovecot_destination_recipient_limit = 1
    enable_server_options = yes
    header_checks = regexp:/etc/postfix/header_checks
    html_directory = /usr/share/doc/postfix/html
    imap_submit_cred_file = /Library/Server/Mail/Config/postfix/submit.cred
    inet_interfaces = all
    inet_protocols = all
    mail_owner = _postfix
    mail_spool_directory = /var/spool/mail
    mailbox_command = /usr/bin/procmail
    mailbox_size_limit = 0
    mailbox_transport = dovecot
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    message_size_limit = 10485760
    mydestination = $myhostname
    mydomain = macwebservers.com
    mydomain_fallback = localhost
    myhostname = merlin.macwebservers.com
    mynetworks = 127.0.0.0/8, [::1]/128,
    myorigin = $mydomain
    newaliases_path = /usr/bin/newaliases
    postscreen_dnsbl_sites =
    queue_directory = /Library/Server/Mail/Data/spool
    readme_directory = /usr/share/doc/postfix
    recipient_canonical_maps = hash:/etc/postfix/system_user_maps
    recipient_delimiter = +
    relay_domains = $mydestination $virtual_maps $transport_maps
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpd_banner = $myhostname ESMTP
    smtpd_client_restrictions = check_client_access hash:/etc/postfix/blacklist_smtp
    smtpd_enforce_tls = no
    smtpd_helo_required = yes
    smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
    smtpd_recipient_restrictions = reject_unauth_pipelining, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, reject_unauth_destination, check_sender_access hash:/etc/postfix/sender_access, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, check_policy_service unix:postgrey/socket, permit
    smtpd_tls_CAfile = /etc/certificates/Alains-Mac-mini.local.0BEEA40E61E3D14D83B7838979EAAE191AF0930 0.chain.pem
    smtpd_tls_cert_file = /etc/certificates/Alains-Mac-mini.local.0BEEA40E61E3D14D83B7838979EAAE191AF0930 0.cert.pem
    smtpd_tls_ciphers = medium
    smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
    smtpd_tls_key_file = /etc/certificates/Alains-Mac-mini.local.0BEEA40E61E3D14D83B7838979EAAE191AF0930 0.key.pem
    smtpd_use_pw_server = yes
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    unknown_local_recipient_reject_code = 550
    use_sacl_cache = yes
    virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    virtual_alias_maps = hash:/etc/postfix/virtual

    This seem ok
    sudo postfix status:
    postfix/postfix-script: the Postfix mail system is running: PID: 15249
    But this sudo postfix -c /Library/Server/Mail/Config/postfix check give error:
    merlin:~ root# sudo postfix -c /Library/Server/Mail/Config/postfix check
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    /usr/sbin/postconf: warning: /Library/Server/Mail/Config/postfix/main.cf: unused parameter: virus_db_update_enabled=1virtual_alias_domains = $virtual_alias_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/custom_header_checks
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/main.cf.10.7.5
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/main.cf.10.7.5.orig
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/main.cf.default.10.8
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/main.cf.default~orig
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/makedefs.out
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/master.cf.10.7.5
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/master.cf.default
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/master.cf.default.10.8
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/master.cf.orig
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/postfix-files
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/postfix-files.prev
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/postfix-files~orig
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/rbl_whitelist
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/rbl_whitelist.db
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/sasl
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/system_user_maps
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/system_user_maps.db
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/virtual_users
    postfix/postfix-script: warning: not owned by root: /Library/Server/Mail/Config/postfix/virtual_users.db
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./aliases.desktop
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./custom_header_checks
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./main.cf.10.7.5
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./main.cf.10.7.5.orig
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./main.cf.default.10.8
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./main.cf.default~orig
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./makedefs.out
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./master.cf.10.7.5
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./master.cf.default
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./master.cf.default.10.8
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./master.cf.orig
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./postfix-files
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./postfix-files.prev
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./postfix-files~orig
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./rbl_whitelist
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./rbl_whitelist.db
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./system_user_maps
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./system_user_maps.db
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./virtual_domains
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./virtual_users
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Config/postfix/./virtual_users.db
    postfix/postfix-script: warning: not owned by _postfix: /Library/Server/Mail/Data/mta/./guid_device_maps.plist
    postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta

  • REP-50003 — Bad Command name

    Hi
    When i use the key name in the url (JSP), it gives REP-50003 Bad command name. It also displays value specified in the cgidat.dat file. Please suggest me what to do.
    Thanks & Regards
    Ranganath

    Hi Senthil
    Thanks for your reply.
    I verified the url, if i modify (in the address bar itself) the same url with the values i have specified in the cgidat.dat file it work’s fine. I have defined the values in cgidat.dat as follows
    TUSER: userid=scott/[email protected]
    in the URL i tried by specifying only the TUSER and then cmdkey=TUSER. I also tried lot of combinations in placing the key name (just after «?» and in the last), but it gives the same error.
    Regards
    Ranganath

  • Help, Javac comes up as «bad command»

    I installed j2rel1.4.0_03 — by default, it fell under program files->Java->j2rel1.4.0_03 . I tried javac under the dos prompt, and got «bad command». So I modified the path to this in my autoexec.bat:
    PATH=c:windows;c:windowscommand;c:ibmtools;c:;c:PROGRA~1Javaj2re14~1.0_0bin
    The command «java» is recognized, but «javac», even when issued from the bin subdirectory, still gets «bad command». I have spent a few hours on this already (and did the same when I tried on another pc 6 months or so ago). Is there some easier way of getting to first base that I am missing?
    G

    You might check to make sure the path is actually in the system path. Adding it to the autoexec.bat will only add it to the path when you restart. Type path at the prompt and make sure it is there. Also what os are you running. In winNT sometimes (depending on the configuration) the autoexec.bat does nothing, you might need to change autoconfig.nt, or just set it in the environment Variables. check if java -version works, this should let you know if it is set up right.

  • IMAP Problem with os 7.0.4 iphone 5s. Error connection

    IMAP Problem with os 7.0.4 iphone 5s. I have configured the email account twice IMAP. He comes to work about two days. Suddenly stops working. No download or by post for 3g wifi. Gives an error connecting to the server. The same configuration works properly on the samsung s3, s4. In an iphone 5c proper operation settings (with another email account). Have configured the mail account configured for IMAP in the notebook. The email account has more than 2 gigs in emails. We have a mail server postfix courier Debian Linux.
    No what is happening. If you could help me. Thank you very much.
    <Email Edited by Host>

    My cut out sim no 3G problem with my iPhone 5s, it was my newly Digi upgraded nano sim that no 3G signal.

  • Massive IMAP problem, multiple iPhones — constant spinning wheel

    A friend has had problems using email on his iPhone since he got it, and now after a couple of months of no problems, mine has started doing the same thing.
    The problem started for him on a UK 1.1.2 firmware iPhone with an IMAP account. If you start from scratch, manually setup an IMAP account, it will connect and get your messages. However later, you will find that the iPhone email program is constantly showing the spinning wheel at the top of the screen (showing activity), not the symbol at the bottom of the screen. Worse, the battery rapidly runs down (because it is doing constant data transfers), and worse new emails do not reliably get through. This happens whether you are using GPRS, EDGE, or WiFi (does not make a difference). This problem still happens with 1.1.3 firmware. There is so much data transfer happening (or trying to happen) that the phone actually gets quite warm.
    This week after a couple of months of owning my own iPhone with 1.1.3 firmware has also started doing the same thing. My main IMAP account is on a totally different server, running a different server application to my friends. However it also seems to happen with GMail accounts (using IMAP).
    I am currently at home and I can see my WiFi (AirPort Extreme) base-station showing lots of activity and I know that no other WiFi devices are active so it is purely the iPhone. Turning off the email account stops the problem (and I can then see the WiFi activity stop as well) but that is hardly a solution. Also setting it to manual polling for email helps but again is not a proper solution. It is so bad that sending emails is very difficult as well.
    Even though at the iPhone end nothing seems to be coming through, one can see the iPhone as a connected user at the server end (I have access to the servers, obviously not for Gmail though).
    My friend has swapped his phone four times at the Apple Store and still has the problem, and as I said mine has started as well. Turning off and on does not help, resetting network settings does not help.
    Apple Mail on a Mac (running both Leopard and Tiger), and other IMAP clients have no problems with the same IMAP accounts (for both of us).
    Other Internet access like Web, Stock Widget, Weather Widget, even the iTunes WiFi store work fine. It is just email that is broken.

    Pdobry wrote:
    The problem is that Mail app in iPhone is trying to download message headers via FETCH command and does not handle properly response from IMAP server which does not support partial download of email headers. It starts asking for the headers in the infinite loop which quickly drains out the battery
    More recent testing by myself reveals it is getting stuck on some messages when doing the ‘message peek’ to get the summary of an email. It gets the subjects fine (as the first pass) but then gets stuck on some emails when doing the second pass to get the summary. Apple Mail on a Mac does not (as far as I am aware) do a message peek so does not have this problem.
    The two different makes of server I have seen this problem with do support this message peek command in that at least some of the time it is working with the iPhone.
    I was able to get a debug level log which shows entries like this
    [02/Apr/2008 23:56:17][48699904] {imaps} Peek FETCH executed on message 0000ba58 in folder [email protected]/INBOX
    [02/Apr/2008 23:56:17][48699904] {imaps} Sent 1 fetch responses
    [02/Apr/2008 23:56:18][48699904] {imaps} Command 293 UID FETCH 47704 BODY.PEEK[2.HEADER]<1177.15207>
    [02/Apr/2008 23:56:18][48699904] {imaps} Peek FETCH executed on message 0000ba58 in folder [email protected]/INBOX
    [02/Apr/2008 23:56:18][48699904] {imaps} Sent 1 fetch responses
    [02/Apr/2008 23:56:18][48699904] {imaps} Command 294 UID FETCH 47704 BODY.PEEK[2.HEADER]<1177.15207>
    The above shows two repetitions but it keeps on (and on, and on). Other occasions show this does work for other messages. If I deliberately arrange to get the iPhone to connect to get the latest messages I can see it get stuck on a particular message, and then even if I turn it off and back on and reconnect it will get stuck on the same message. If repeated on a later date then the contents of the inbox will have changed and the message it gets stuck on will be different.
    As it seems to be linked to specific messages it was not a surprise that when this is tried on a practically empty email account the problem does not occur.
    This has happened with multiple different makes of mail server (well at least two), multiple email accounts, multiple users, and multiple different iPhones (one person had his swapped four times). It does not happen with ‘ordinary’ IMAP client software, only with the iPhone.
    Even if one for arguments sake assumes the mail server is at fault and is sending the iPhone garbage, the iPhone should only try a single specific email a maximum number of times (for example five), and then give up. This would prevent it draining the battery so fast and trying to cook itself (by constantly running its transmitter).

  • Javac probleme: bad class file error

    I’m new to java
    I have two classes myPoint.jav and TestPoint.java, when I compile them, I error:
    in the command line I type:
    C:otmanjava>javac -g geometrysrcmyPoint.java TestPoint.java
    TestPoint.java:8: cannot access myPoint
    bad class file: c:otmanjavageometrysrcmyPoint.class
    class file contains wrong class: geometry.src.myPoint
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    myPoint p = new myPoint();
    ^
    1 error
    Can some one help me Thanks
    //Here is the class c:otmanjavaTestPoint.java
    import geometry.src.*;
         Testing my class Point
    public class TestPoint {
    public static void main(String[] args) {
              myPoint p = new myPoint();
              System.out.println(«thank you very much»);
              System.exit(0);
    // And here is the class c:otmanjavageometrysrcmyPoint.java
    package geometry.src;
         class myPoint members and methods of a 3D point
    public class myPoint {
         private double m_x,m_y,m_z;          // the coordinates
         public double getx() {return m_x;}
         public double gety() {return m_y;}
         public double getz() {return m_z;}
         public void setx(double x) {m_x=x;}
         public void sety(double y) {m_y=y;}
         public void setz(double z) {m_z=z;}
         public void translate(double dx,double dy, double dz) {
              m_x += dx;m_y += dy;m_z += dz;
         // Constructor ————————————————————
         myPoint(double x,double y,double z) {
              m_x=x;m_y=y;m_z=z;
         myPoint() {
              m_x=0;m_y=0;m_z=0;
         myPoint(myPoint p) {
              m_x=p.getx();m_y=p.gety();m_z=p.getz();
    // ———————————————————————————

    Thank you for the reply but still have problem.
    I created a directory classes and the directories look like:
    C:otmanjava
    TestPoint.java
    classes
    geometry
    src
    myPoint.java
    When I compile using the line command:
    C:otmanjava>javac -g -d classes geometrysrcmyPoint.java TestPoint.java
    I get the error:
    TestPoint.java:8: cannot find symbol
    symbol : constructor myPoint()
    location: class geometry.src.myPoint
    myPoint p = new myPoint();
    ^
    1 error
    Now the directories look like:
    C:otmanjava
    TestPoint.java
    classes
    geometry
    src
    myPoint.class
    geometry
    src
    myPoint.java
    I think that myPoint was compiled without problem but TestPoint was not compiled and it gives 1 error.
    Can you help me? Thanks.<!—Session data—>

  • Mail 4.2 IMAP problems

    Mail 4.2 does not delete mail from the server when, while in Mail, I move an e-mail from an IMAP folder to a local (on my laptop) folder. When I check mail again, the message is downloaded again.
    Sometimes, but not always, if I have read a message, the message is reflagged as unread when mail is checked.
    When using a slow internet connection, such as in a hotel or a clients conference room, mail does not download new messages from my IMAP server. It does download new messages from an Exchange server.
    I have none of these problems when I use Thunderbird 3.0, so the problem is Mail and not my server.
    I do not use GMail or any of the other canned IMAP servers. My IMAP accounts on are a virtual FreeBSD server from Verio.
    Applecare support thinks this is a bug, but I suspect that is the standard way of saying I don’t know.

    Count me as another person seeing the issue where IMAP moves aren’t «sticking».
    I connect my Mail to an MS Exchange server at work, and for the past 2 weeks, my move operations on messages aren’t committing to the server. If I switch over to Entourage or Outlook Web Access, the moves will stick.
    For example, I mark a message as Junk, which is supposed to then move the message to the Junk folder. I navigate away from the Inbox to another folder, and when I come back, the message that I’d marked as Junk is back in the Inbox. This happens for all folders, not just Inbox, by the way.
    I’ve tried synchronizing, I’ve tried the Rebuild command. I’ve even trashed my Envelope file and let that rebuild cleanly. No joy.
    Very frustrating to have to open another mail client in order to do mailbox cleanup all the time.

  • Remote IMAP problems

    We have recently started hosting our email on our ‘in-house’ server. We can send and receive email with the following caveats:
    1) Outgoing SMTP messages get lost so I am temporarily relaying all outgoing email through our old ISP SMTP address. How do I set up local SMTP so that it works?
    2) For remote email IMAP and SMTP sending / receiving I have opened the corresponding ports on our firewall so that we can sync home computers / mobile devices to our email. Things seemed to work fine but now I am having all sorts of connection issues. The SMTP log is showing authentication problems.
    Help would be appreciated.

    William Bowden1 wrote:
    in terminal do command postconf -n and let us see it
    I’m having the same issue. Clean install of Snow Leopard Server with 10.6.2 update applied.
    Nothing fancy configured, no tweaking manually, all done by-the-book.
    Here’s my (sanitised) postconf -n output:
    server:~ localadmin$ postconf -n
    alias_maps = hash:/etc/aliases
    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 = 26214400
    mydestination = $myhostname, localhost.$mydomain, localhost, mail, server, $mydomain
    mydomain = example.com.au
    mydomain_fallback = localhost
    myhostname = mail.example.com.au
    mynetworks = 127.0.0.0/8
    newaliases_path = /usr/bin/newaliases
    ownerrequestspecial = no
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost = mail.optusnet.com.au
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpsasl_passwordmaps =
    smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated permit
    smtpdenforcetls = no
    smtpdhelorequired = yes
    smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname
    smtpdpw_server_securityoptions = gssapi,cram-md5
    smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
    smtpdsasl_authenable = yes
    smtpdtlsCAfile = /etc/certificates/server.example.com.au.BIGHEXNUMBER.chain.pem
    smtpdtls_certfile = /etc/certificates/server.eelaw.com.au.BIGHEXNUMBER.cert.pem
    smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL
    smtpdtls_keyfile = /etc/certificates/server.eelaw.com.au.BIGHEXNUMBER.key.pem
    smtpdtlsloglevel = 0
    smtpduse_pwserver = yes
    smtpdusetls = yes
    unknownlocal_recipient_rejectcode = 550
    virtualaliasmaps =
    server:~ localadmin$

  • Я пытаюсь подключиться к службе IMAP outlook.office365.com.

    Чтобы подтвердить, что это не проблема с подключением, я использовал советник по дистанционному анализу MS Remote.

    Вот соответствующий код:

        public async Task Connect(string hostname, int port, bool ssl, System.Net.Security.RemoteCertificateValidationCallback validateCertificate)
    {
    try
    {
    this.Host = hostname;
    this.Port = port;
    this.Ssl = ssl;

    this.connection = new TcpClient(hostname, port);
    this.stream = this.connection.GetStream();
    if (ssl)
    {
    System.Net.Security.SslStream sslStream;
    if (validateCertificate != null)
    sslStream = new System.Net.Security.SslStream(this.stream, false, validateCertificate);
    else
    sslStream = new System.Net.Security.SslStream(this.stream, false);
    this.stream = sslStream;

    await sslStream.AuthenticateAsClientAsync(hostname);
    }

    await this.SendCommand(string.Empty);

    string[] response = await this.SendCommand("$ CAPABILITY");
    capability = response[0].Trim().Split(' ');

    this.IsConnected = true;
    this.Host = hostname;
    }
    catch (Exception)
    {
    this.IsConnected = false;

    if (this.stream != null)
    this.stream.Dispose();
    this.stream = null;

    throw;
    }
    }

    protected async Task<string[]> SendCommand(string command)
    {
    const int bufferSize = 2048;

    byte[] bytes = System.Text.Encoding.Default.GetBytes(command);
    await this.stream.WriteAsync(bytes, 0, bytes.Length);
    this.stream.Flush();

    byte[] buffer = new byte[bufferSize];
    await this.stream.ReadAsync(buffer, 0, bufferSize);
    return this.Encoding.GetString(buffer).TrimEnd(' ', '').Split(new[] { 'r', 'n' }, StringSplitOptions.RemoveEmptyEntries);
    }

    Моя первая, пустая команда проходит и возвращает ожидаемую строку:

    * OK The Microsoft Exchange IMAP4 service is ready. [QgBZADIAUABSADAAMgBDAEEAMAAwADQAOQAuAG4AYQBtAHAAcgBkADAAMgAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]

    Но моя совместимость и другие попытки команды LOGIN возвращают все:

    * BAD Command Error. 12

    Любая идея, что я сделал неправильно? Уже несколько часов я бил головой о стену.

    Понравилась статья? Поделить с друзьями:
  • Bad allocation как исправить 3d инструктор
  • Bad allocation while creating disk aligned video frame premiere как исправить
  • Bad allocation free cam 8 как исправить
  • Bad allocation altstore как исправить
  • Bad alloc c как исправить