Jacques:  Why does ofbiz 16.x set real properties
in: ./framework/common/data/CommonSystemPropertyData.xml?  This is part of
"seed"... It hard-codes:


systemPropertyId="ORGANIZATION_PARTY" systemPropertyValue="Company"
systemPropertyId="VISUAL_THEME" systemPropertyValue="FLAT_GREY"
systemPropertyId="currency.uom.id.default" systemPropertyValue="USD"
systemPropertyId="country.geo.id.default" systemPropertyValue="USA"
systemPropertyId="defaultFromEmailAddress" systemPropertyValue="
ofbizt...@example.com"
systemPropertyId="mail.notifications.enabled" systemPropertyValue="N"
systemPropertyId="mail.smtp.port" systemPropertyValue="465"
systemPropertyId="mail.smtp.starttls.enable" systemPropertyValue="true"
systemPropertyId="mail.smtp.socketFactory.port" systemPropertyValue="465"
systemPropertyId="mail.smtp.socketFactory.class"
systemPropertyValue="javax.net.ssl.SSLSocketFactory"
systemPropertyId="mail.smtp.socketFactory.fallback"
systemPropertyValue="false"
systemPropertyId="mail.smtp.sendpartial" systemPropertyValue="true"

Which seems to override general.properties.


On Tue, Feb 13, 2018 at 6:55 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Thanks Pierre!
>
> This is indeed something which is tricky for new users and even easily
> forgettable in general.
>
> Before I post about SystemProperty and EntityUtilProperties on dev ML, I
> want to suggest here that we put a comment at the top of each properties
> file as a reminder that the properties there could be overridden in a
> SystemProperty
>
> Jacques
>
>
> Le 12/02/2018 à 21:32, pierre.gaudin a écrit :
>
>> Also, have a look at SystemProperty entity for key
>> mail.notifications.enabled
>>
>> Pierre
>>
>> On 12/02/2018 19:53, Mike wrote:
>>
>>> For TLS (mail.smtp.starttls.enable=true ), use port 587
>>>
>>> On Mon, Feb 12, 2018 at 4:37 AM, Дмитрий Цыганок <d...@kapitanweb.ru>
>>> wrote:
>>>
>>> Hello!
>>>> I've deployed Ofbiz several times, but each time with the right
>>>> settings,
>>>> email notifications are not sent.
>>>>
>>>> Here are my settings from /var/www/ofbiz/framework/commo
>>>> n/config/general.
>>>> properties:
>>>>
>>>> unique.instanceId=ofbiz1
>>>> currency.uom.id.default=USD
>>>> ORGANIZATION_PARTY=Company
>>>> VISUAL_THEME=RAINBOWSTONE_SAPHIR
>>>> currency.decimal.format=#,##0.00
>>>> currency.rounding.default=10
>>>> currency.scale.enabled=N
>>>> locale.properties.fallback=en
>>>> #locales.available=ar,de,en,es,fr,hi,it,nl,pt,ro,ru,th,zh
>>>> #timeZones.available=US/Eastern,US/Central,US/
>>>> Mountain,US/Pacific,US/Alaska,US/Hawaii
>>>> country.geo.id.default=USA
>>>> partner.trackingCodeId.default=
>>>> usps.address.match=(^.*?p[\\. ]*o[\\. ]*box.*$)|(^.*?post.*?office.*
>>>> ?box.*$)|((^|(^.*?
>>>> ))r[\\. ]*r[\\. ]*(( +)|([0-9#]+)).*$)|(^.*?rural.*?route.*$)
>>>> defaultFromEmailAddress=dmtsyga...@gmail.com
>>>> mail.notifications.enabled=Y
>>>> mail.notifications.redirectTo=d...@kapitanweb.ru
>>>> mail.smtp.relay.host=smtp.gmail.com
>>>> mail.smtp.auth.user=dmtsyga...@gmail.com
>>>> mail.smtp.auth.password=*******
>>>> mail.smtp.port=465
>>>> mail.smtp.starttls.enable=true
>>>> mail.smtp.socketFactory.port=465
>>>> mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
>>>> mail.smtp.socketFactory.fallback=false
>>>> mail.address.caseInsensitive=N
>>>> mail.debug.on=N
>>>> mail.smtp.sendpartial=true
>>>> http.upload.max.sizethreshold=10240
>>>> http.upload.tmprepository=runtime/tmp
>>>> http.upload.max.size=-1
>>>> mail.spam.name=X-Spam-Flag
>>>> mail.spam.value=YES
>>>> Ofbiz always issues this error in the logs and the mail is not sent:
>>>>
>>>> " 2018-01-17 22:21:19,562 |OFBiz-JobQueue-1     |EmailServices
>>>>       |I| Mail notifications disabled in general.properties; mail with
>>>> subject [test] not sent to addressee [ d...@kapitanweb.ru   "
>>>>
>>>>
>>>> I also tried different mail accounts, but the result is always the same.
>>>>
>>>> What could be the reason? Please help me to solve this problem.
>>>> Thank you very much in advance!
>>>>
>>>> ---
>>>> Best Regards,
>>>> Dmitriy
>>>>
>>>>
>>>>
>>
>>
>

Reply via email to