Comment configurer le smtp et pop de openpaas?


#41

after installing php7.0-xml contacts start working

apt-get install php7.0-xml


#42

Now facing next issue
While testing smtp it showing error

Email sent failed with server error: “Can’t send mail - all recipients were rejected: 550 5.1.1 Unknown user: admin@openpaas.local”

less /var/log/james/james.log

15:09:17.253 [INFO ] o.a.j.p.l.n.AbstractProtocolAsyncServer - No maximum message size is enforced for this server.
15:09:17.378 [INFO ] o.a.j.p.l.n.AbstractConfigurableAsyncServer - Init SMTP Service done
15:09:17.389 [INFO ] o.a.j.p.l.n.AbstractConfigurableAsyncServer - Init SMTP Service done
15:09:17.399 [INFO ] o.a.j.p.l.n.AbstractConfigurableAsyncServer - Init SMTP Service done
15:09:17.404 [INFO ] o.e.j.s.Server - jetty-9.4.7.v20170914
15:09:17.438 [INFO ] o.e.j.s.AbstractConnector - Started ServerConnector@28cb86b2{HTTP/1.1,[http/1.1]}{0.0.0.0:1080}
15:09:17.438 [INFO ] o.e.j.s.Server - Started @15165ms
15:09:17.448 [INFO ] o.a.j.w.WebAdminServer - Web admin set up to enable CORS from *
15:09:17.485 [INFO ] s.e.j.EmbeddedJettyServer - == Spark has ignited …
15:09:17.485 [INFO ] s.e.j.EmbeddedJettyServer - >> Listening on 0.0.0.0:8000
15:09:17.485 [INFO ] o.e.j.s.Server - jetty-9.4.7.v20170914
15:09:17.493 [INFO ] o.e.j.s.session - DefaultSessionIdManager workerName=node0
15:09:17.493 [INFO ] o.e.j.s.session - No SessionScavenger set, using defaults
15:09:17.494 [INFO ] o.e.j.s.session - Scavenging every 660000ms
15:09:17.496 [INFO ] o.e.j.s.AbstractConnector - Started ServerConnector@6b240485{HTTP/1.1,[http/1.1]}{0.0.0.0:8000}
15:09:17.496 [INFO ] o.e.j.s.Server - Started @15223ms
15:09:17.496 [INFO ] o.a.j.w.WebAdminServer - Web admin server started
15:09:17.506 [WARN ] o.a.j.b.c.v.CassandraSchemaVersionManager - No schema version information found on Cassandra, we assume schema is at version SchemaVersion{version=2}
15:09:17.512 [WARN ] o.a.j.b.c.v.CassandraSchemaVersionManager - No schema version information found on Cassandra, we assume schema is at version SchemaVersion{version=2}
15:09:17.512 [WARN ] o.a.j.m.m.CassandraSessionModule - Current schema version is SchemaVersion{version=2}. Recommended version is SchemaVersion{version=6}
15:09:17.514 [INFO ] o.a.j.m.m.MailboxListenersLoaderImpl - Loading user registered mailbox listeners
15:09:17.516 [INFO ] o.a.j.m.m.MailboxListenersLoaderImpl - Loading user registered mailbox listener org.apache.james.mailbox.spamassassin.SpamAssassinListener
15:09:17.534 [WARN ] o.a.j.m.s.SpamAssassinListenerModule - Could not find spamassassin configuration file. Disabling this service.
15:09:17.534 [INFO ] o.a.j.m.m.MailboxListenersLoaderImpl - Loading user registered mailbox listener org.apache.james.mailbox.cassandra.MailboxOperationLoggingListener
15:09:17.537 [INFO ] o.a.j.m.m.MailboxListenersLoaderImpl - Loading user registered mailbox listener org.apache.james.mailbox.quota.mailing.listeners.QuotaThresholdCrossingListener
15:09:45.886 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection established from 192.168.105.157
15:09:45.941 [INFO ] o.a.j.p.s.c.f.AbstractValidRcptHandler - Rejected message. Unknown user: admin@openpaas.local
15:09:45.941 [INFO ] o.a.j.p.s.c.l.HookResultLogger - org.apache.james.smtpserver.fastfail.ValidRcptHandler: result= (DENY Connected)
15:09:45.947 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection closed for 192.168.105.157
15:10:03.493 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection established from 192.168.105.157
15:10:03.517 [INFO ] o.a.j.p.s.c.f.AbstractValidRcptHandler - Rejected message. Unknown user: admin@united.co
15:10:03.518 [INFO ] o.a.j.p.s.c.l.HookResultLogger - org.apache.james.smtpserver.fastfail.ValidRcptHandler: result= (DENY Connected)
15:10:03.523 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection closed for 192.168.105.157
15:10:20.620 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection established from 114.32.135.70
15:10:21.488 [INFO ] o.a.j.u.c.CassandraUsersRepository - Could not retrieve user modem. Password is unverified.
15:10:21.489 [ERROR] o.a.j.p.a.h.CommandHandler - AUTH method LOGIN failed from modem@114.32.135.70
15:10:21.705 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection closed for 192.32.135.70
15:10:36.710 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection established from 192.168.105.157
15:10:36.732 [INFO ] o.a.j.p.s.c.f.AbstractValidRcptHandler - Rejected message. Unknown user: admin@openpaas.local
15:10:36.732 [INFO ] o.a.j.p.s.c.l.HookResultLogger - org.apache.james.smtpserver.fastfail.ValidRcptHandler: result= (DENY Connected)
15:10:36.738 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection closed for 192.168.105.157
15:10:44.966 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection established from 192.168.105.157
15:10:44.986 [INFO ] o.a.j.p.s.c.f.AbstractValidRcptHandler - Rejected message. Unknown user: admin@open-paas.org
15:10:44.987 [INFO ] o.a.j.p.s.c.l.HookResultLogger - org.apache.james.smtpserver.fastfail.ValidRcptHandler: result= (DENY Connected)
15:10:44.992 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection closed for 192.168.105.157
15:11:01.145 [INFO ] o.a.j.p.n.BasicChannelUpstreamHandler - Connection established from 192.168.105.157


#43

Hello binoyda,

Can you give the result of these commands please:

james-cli.jar -h 127.0.0.1 -p 9999 listdomains
james-cli.jar -h 127.0.0.1 -p 9999 listusers

#44

Hi,
it showing permission denied

root@openpaas:~# /usr/share/james/james-cli.jar -h 127.0.0.1 -p 9999 listusers
-bash: /usr/share/james/james-cli.jar: Permission denied


#45

Hello,

Can you try:

java -jar james-cli.jar -h 127.0.0.1 -p 9999 listdomains
java -jar james-cli.jar -h 127.0.0.1 -p 9999 listusers

#46

I got error:

root@openpaas:/usr/share/james# java james-cli.jar -h 127.0.0.1 -p 9999 listdomains
Error: Could not find or load main class james-cli.jar
root@openpaas:/usr/share/james# /usr/share/james/james-cli.jar -h 127.0.0.1 -p 9999 listdomains
-bash: /usr/share/james/james-cli.jar: Permission denied
root@openpaas:/usr/share/james# java james-cli.jar -h 127.0.0.1 -p 9999 listusers
Error: Could not find or load main class james-cli.jar


#47

Any thoughts? to how fix the issue.

FYI: I reinstalled Debian 9(strech) and reinstalled Openpaas as per official docs, upgrade Cassndra but result is same.

Kind regards,
Daniel


#48

Hi,

OpenPaaS had some fixs on the installation packages, I will try to reproduce your problem and report to you today.

Thanks.


#49

Hi,

Please try to install with new fix on the installation.
And then provide me the error after you run as root

systemctl status {mongodb,elasticsearch,cassandra,redis-server,rabbitmq-server,nginx,james,openpaas}

Thanks.


#50

When I try to reinstall, following commands not working, i think http://get.open-paas.org/ is missing please check
wget -qO - get.open-paas.org | bash