                             valueLink: @linkState('smtpPort'),
                             type: 'text',
                             className: 'form-control'
+                            onBlur: @_onSMTPPort,
+                            onInput: => @setState(smtpManualPort: true)
                     getError 'smtpServer'
                     getError 'smtpPort'
                 div className: 'form-group',

                    div className: 'col-sm-1',
                        input
                            id: 'mailbox-imap-ssl',
                            valueLink: @linkState('imapSSL'),
                            type: 'checkbox',
                            className: 'form-control'
                    label
                        htmlFor: 'mailbox-imap-tls',
                        className: 'col-sm-2 control-label',

            init = (field) ->
                state[field] = ''
            init field for field in @_accountFields
            state.smtpPort = 465
            state.smtpSSL  = true
            state.smtpTLS  = false
            state.imapPort = 993
            state.imapSSL  = true
            state.imapTLS  = false
            state.newMailboxParent = null
            state.tab = null

