Invalid helo name Jhipster - spring-boot

I have set the file application-prod.yml with mail account but it is not working with mail server , it returns error 550 invalid helo name. i want to know where i can set host correctly.
thanks
mail:
host: mail.xxxx.cloud
port: 587
username: register#xxxx.cloud
password: xxxxxxxxxx
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: mail.xxxx.cloud
...
...
...
mail:
from: register#xxxx.cloud
base-url: https://host.xxxx.cloud/

Related

How to set the servers property of openapi with Apache Camel?

I am trying to setup a openapi specification and publish the API with Apache Camel and Spring. I tried using restConfiguration, adding the property in the application.yaml, and using the #OpenApiProperty on the app. Everytime the generated yaml reads:
- servers
- url: ""
platform:
# not used
urlrewrite:
enabled: false
token: ${LOCAL_TOKEN:}
apim:
token_ep: ${x/token}
client:
username: ${apim_client_username:}
password: ${apim_client_password:}
consumerKey: ${apim_client_id:}
consumerSecret: ${apim_client_secret:}
endpointsOrchestrated:
server: myServer
emr-endpoint: xxxxxxxx
triggerName: ${PLATFORM_MODULE_ID}
env: dev
domain: ${PLATFORM_MODULE_DOMAIN}
openapi:
title: My Sample api
version: 1.0.0
camel:
dataformat:
jackson:
auto-discover-object-mapper: true
springboot:
tracing: false
rest:
host: myhost.com
port: 8080
spring:
application:
name: aaa
profiles:
active: ${ENV:local}
server:
servlet:
context-path: /
port: ${TOMCAT_PORT:8080}
host: localhost
# MAX HTTP THREADS
tomcat:
threads:
max: ${MAIN_HTTP_THREADS:200}

elasticsearch.yml ses email config

Took the config from elastic search documentation, and added it to elastic cloud yml.
xpack.notification.email.account:
ses_account:
smtp:
auth: true
starttls.enable: true
starttls.required: true
host: email-smtp.us-east-1.amazonaws.com
port: 587
user: <username>
password: <password>
giving me the below error:
'xpack.notification.email.account.ses_account.profile': is not allowed

Email service in Jhipster

I'm new to Jhispter and I created an application using the yeoman generator for Jhipster.
When I logged as an admin to this application to check the Health checks section I noticed that email service is down and the details says this :
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1
How can I solve this problem ?
You must fill properties in application-dev.yml or application-prod.yml with your real account data (eg gmail account)
mail:
host: localhost
port: 25
username:
password:
Sample file:
https://github.com/jhipster/jhipster-sample-app-token/blob/master/src/main/resources/config/application-dev.yml
Go to application-prod.yml and add config below to fix it.
spring:
mail:
host: smtp.gmail.com
port: 587
user: your gmail address
password: your password
protocol: smtp
tls: true
auth: true
from: spoonatte#gmail.com
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.gmail.com
OR in application-prod.yml
mail:
host: smtp.gmail.com
port: 587
username: your gmail address
password: your password
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.gmail.com
messages:
cache-seconds: 1
thymeleaf:
cache: false

REDMINE on Debian 7 doesn't send mails over Exchange

i'm running Redmine on Debian 7 and try to send mails via Mircosoft Exchange.
My configuration.yml looks like:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: <FIREWALLIP or SMTPIP>
port: 25
domain: <MYDOMAIN.local or mydomain.de>
authentication: :login
user_name: "username"
password: "pwd"
I used both the Firewall and smtp ips and various combinations of domains and usernames to try it.
Sending the mail via telnet works with both ips.
Can anyone help?
Thanks.
edit resolved:
works with this configuration:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: <FIREWALLIP>
port: 25
domain: <mydomain.de>
works with this configuration:
default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: <FIREWALLIP>
port: 25
domain: <MYDOMAIN.local or mydomain.de>
authentication: :login
user_name: "username"
password: "pwd"

Cant acces to MAMP after creating Database with Doctrine and Symfony2

I'm trying to get on with the Symblog Tutorial for Symfony2 (http://tutorial.symblog.co.uk/docs/doctrine-2-the-blog-model.html)
After I created my databse with php app/console doctrine:database:create I dont have acces to localhost/MAMP/ anymore?! This is the Error Message "Error: Could not connect to MySQL server!"
Can anyone help me?
Thats my config.yml
Doctrine Configuration
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
unix_socket: /var/mysql/mysql.sock
orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true
Thats my parameters.ini
[parameters]
database_driver="pdo_mysql"
database_host="localhost"
database_port="3306"
database_name="symfony"
database_user="root"
database_password=""
The default port for MAMP server should be 8889 while you are using 3306, the error could be that.
My parameters
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: '8889'
database_name: symfony_blog
database_user: root
database_password: root
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: en
secret: 7f03537e81f981683bc773b9ec7113ab5861adec
database_path: null

Resources