4 Replies Latest reply on Aug 10, 2015 2:46 AM by Bastian Weinlich

    Problem changing a property in mail subsystem via cli

    Bastian Weinlich Newbie

      Hello!

       

      My mail subsystem in my standalone.xml looks like this:

       

        <subsystem xmlns="urn:jboss:domain:mail:1.1">

                  <mail-session jndi-name="java:jboss/mail/Default">

                      <custom-server name="smtp" outbound-socket-binding-ref="mail-smtp">

                          <login name="myUser" password="XXX"/>

                          <property name="mail.smtp.starttls.enable" value="true"/>

                          <property name="mail.smtp.starttls.required" value="true"/>

                          <property name="mail.smtp.auth" value="true"/>

                          <property name="mail.smtp.ssl.checkserveridentity" value="false"/>

                          <property name="mail.smtp.ssl.trust" value="*"/>

                          <property name="mail.smtp.from" value="test@test.de"/>

                      </custom-server>

                  </mail-session>

              </subsystem>

       

      I want to change the mail.smtp.from property to new@new.de. So I tried the following CLI command:

       

      /subsystem=mail/mail-session="java:jboss/mail/Default"/custom-server=smtp/property="mail.smtp.from":write-attribute(name="value", value="new@new.de")

       

      But it doesn't work, it says: JBAS014883: No resource definition is registered for address

       

      How to do it right?