Re: smtp packets not bring transmitted
On Tue, 20 Sept 2022 at 05:52, Ali Alhaidary wrote: > > Add following section to ${OM_HOME}/conf/catalina.policy. > > to > > Add the following section to ${OM_HOME}/conf/catalina.policy. Fixed! Thanks Ali! :) The nightlies site will be updated after the build :) BTW new documentation is created in Markdown format: https://github.com/apache/openmeetings/blob/master/openmeetings-server/src/site/markdown/FAQ.md You can edit it at github directly :) > > On 9/19/22 6:31 AM, Maxim Solodovnik wrote: > > The page was created :) > > You can check it here > > https://nightlies.apache.org/openmeetings/FAQ.html (corrections are > > highly appreciated) > > > > The main site will be updated after next release > > > > On Thu, 15 Sept 2022 at 15:15, Roger James > > wrote: > >> > >> > >> On 15 September 2022 06:04:43 Maxim Solodovnik > >> wrote: > >> > >>> I was unable to find special page for "email configuration" at our > >>> site: https://openmeetings.apache.org/ > >>> Would it be OK if I'll add "FAQ" page under Top menu -> Configuration -> > >>> Misc > >>> And will add it to the FAQ? :)) > >>> > "If you change this from the default (25) you may have to add a > permission for your port to the catalina securty policy e.g. > > // Permissions for jakarta mail > > grant { > > permission java.net.SocketPermission > > "SMTPHOST:587", "connect,resolve"; > > };" > >> > >> Ok by me. > > > > -- Best regards, Maxim
Re: smtp packets not bring transmitted
Add following section to ${OM_HOME}/conf/catalina.policy. to Add the following section to ${OM_HOME}/conf/catalina.policy. On 9/19/22 6:31 AM, Maxim Solodovnik wrote: The page was created :) You can check it here https://nightlies.apache.org/openmeetings/FAQ.html (corrections are highly appreciated) The main site will be updated after next release On Thu, 15 Sept 2022 at 15:15, Roger James wrote: On 15 September 2022 06:04:43 Maxim Solodovnik wrote: I was unable to find special page for "email configuration" at our site: https://openmeetings.apache.org/ Would it be OK if I'll add "FAQ" page under Top menu -> Configuration -> Misc And will add it to the FAQ? :)) "If you change this from the default (25) you may have to add a permission for your port to the catalina securty policy e.g. // Permissions for jakarta mail grant { permission java.net.SocketPermission "SMTPHOST:587", "connect,resolve"; };" Ok by me.
Re: smtp packets not bring transmitted
The page was created :) You can check it here https://nightlies.apache.org/openmeetings/FAQ.html (corrections are highly appreciated) The main site will be updated after next release On Thu, 15 Sept 2022 at 15:15, Roger James wrote: > > > > On 15 September 2022 06:04:43 Maxim Solodovnik wrote: > >> I was unable to find special page for "email configuration" at our >> site: https://openmeetings.apache.org/ >> Would it be OK if I'll add "FAQ" page under Top menu -> Configuration -> Misc >> And will add it to the FAQ? :)) >> >>> >>> "If you change this from the default (25) you may have to add a permission >>> for your port to the catalina securty policy e.g. >>> >>> // Permissions for jakarta mail >>> >>> grant { >>> >>> permission java.net.SocketPermission >>> >>> "SMTPHOST:587", "connect,resolve"; >>> >>> };" > > > Ok by me. -- Best regards, Maxim
Re: smtp packets not bring transmitted
On Thu, 15 Sept 2022 at 13:04, Alvaro wrote: > > ...with the installation tutorials Gmail > configuration, using the normal account > password don´t send email. But if i put > the special password that Gmail show me > when i accept the double verification > Gmail, then it works right. user who wish to use Gmail as mail server should use special "application" password https://support.google.com/accounts/answer/185833 > > I don´t know what happens to the Gmail > users with normal password that have > not double verification password. > > > -- > > > On Thu, 15 Sep 2022 12:03:54 +0700 > Maxim Solodovnik wrote: > > > Hello Roger, > > > > sorry for the delay > > > > On Tue, 6 Sept 2022 at 18:54, Roger James > > wrote: > > > > > > > > > > > > > > > On 6 September 2022 11:35:33 Maxim Solodovnik > > > wrote: > > > > > >> Thanks for sharing! > > >> never need to add permission like this > > >> Are you using some sort of restricted JVM? > > > > > > > > > Not that I am aware of. > > > > > > java --version > > > openjdk 11.0.16 2022-07-19 > > > OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu122.04) > > > OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu122.04, > > > mixed mode, sharing) > > > > > >> > > >> According to the documentation: I can add it to the site, can you > > >> suggest the correct page? :)) > > > > > > > > > The one where there smtp port setting is documented. Something along the > > > lines of > > > > I was unable to find special page for "email configuration" at our > > site: https://openmeetings.apache.org/ > > Would it be OK if I'll add "FAQ" page under Top menu -> Configuration -> > > Misc > > And will add it to the FAQ? :)) > > > > > > > > "If you change this from the default (25) you may have to add a > > > permission for your port to the catalina securty policy e.g. > > > > > > // Permissions for jakarta mail > > > > > > grant { > > > > > > permission java.net.SocketPermission > > > > > > "SMTPHOST:587", "connect,resolve"; > > > > > > };" > > > > > > > > >> (this mail thread will be available for those who will search ... > > > > > > > > -- > > Best regards, > > Maxim > > > -- Best regards, Maxim
Re: smtp packets not bring transmitted
...with the installation tutorials Gmail configuration, using the normal account password don´t send email. But if i put the special password that Gmail show me when i accept the double verification Gmail, then it works right. I don´t know what happens to the Gmail users with normal password that have not double verification password. -- On Thu, 15 Sep 2022 12:03:54 +0700 Maxim Solodovnik wrote: > Hello Roger, > > sorry for the delay > > On Tue, 6 Sept 2022 at 18:54, Roger James wrote: > > > > > > > > > > On 6 September 2022 11:35:33 Maxim Solodovnik wrote: > > > >> Thanks for sharing! > >> never need to add permission like this > >> Are you using some sort of restricted JVM? > > > > > > Not that I am aware of. > > > > java --version > > openjdk 11.0.16 2022-07-19 > > OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu122.04) > > OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu122.04, mixed > > mode, sharing) > > > >> > >> According to the documentation: I can add it to the site, can you > >> suggest the correct page? :)) > > > > > > The one where there smtp port setting is documented. Something along the > > lines of > > I was unable to find special page for "email configuration" at our > site: https://openmeetings.apache.org/ > Would it be OK if I'll add "FAQ" page under Top menu -> Configuration -> Misc > And will add it to the FAQ? :)) > > > > > "If you change this from the default (25) you may have to add a permission > > for your port to the catalina securty policy e.g. > > > > // Permissions for jakarta mail > > > > grant { > > > > permission java.net.SocketPermission > > > > "SMTPHOST:587", "connect,resolve"; > > > > };" > > > > > >> (this mail thread will be available for those who will search ... > > > > -- > Best regards, > Maxim
Re: smtp packets not bring transmitted
Hello Roger, sorry for the delay On Tue, 6 Sept 2022 at 18:54, Roger James wrote: > > > > > On 6 September 2022 11:35:33 Maxim Solodovnik wrote: > >> Thanks for sharing! >> never need to add permission like this >> Are you using some sort of restricted JVM? > > > Not that I am aware of. > > java --version > openjdk 11.0.16 2022-07-19 > OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu122.04) > OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu122.04, mixed > mode, sharing) > >> >> According to the documentation: I can add it to the site, can you >> suggest the correct page? :)) > > > The one where there smtp port setting is documented. Something along the > lines of I was unable to find special page for "email configuration" at our site: https://openmeetings.apache.org/ Would it be OK if I'll add "FAQ" page under Top menu -> Configuration -> Misc And will add it to the FAQ? :)) > > "If you change this from the default (25) you may have to add a permission > for your port to the catalina securty policy e.g. > > // Permissions for jakarta mail > > grant { > > permission java.net.SocketPermission > > "SMTPHOST:587", "connect,resolve"; > > };" > > >> (this mail thread will be available for those who will search ... -- Best regards, Maxim
Re: smtp packets not bring transmitted
On Tue, 6 Sept 2022 at 17:30, wrote: > > > > On 06/09/2022 11:04, Maxim Solodovnik wrote: > > can you run command like > > `sudo -u nobody telnet mail_host 587` > > > > here `nobody` is the user you are using to run OM > > Maxim, > > I added the following to /opt/openmeetings/conf/catalina.policy. > > // Permissions for jakarta mail > grant { > permission java.net.SocketPermission > "SMTPHOST:587", "connect,resolve"; > }; > > I am now seeing traffic getting out of the openmeetings servlet application > and into the linux kernel socket. I think this needs to be documented > somewhere. > Thanks for sharing! never need to add permission like this Are you using some sort of restricted JVM? According to the documentation: I can add it to the site, can you suggest the correct page? :)) (this mail thread will be available for those who will search ... : -- Best regards, Maxim
Re: smtp packets not bring transmitted
On Tue, 6 Sept 2022 at 16:49, wrote: > > > > On 06/09/2022 10:38, Maxim Solodovnik wrote: > > On Tue, 6 Sept 2022 at 16:36, roger wrote: > > > > > > I have just run a test with the port set to 25 and I see packets going > > > out. > > > > I believe you need to check your firewall settings (for ex, `ufw`) > > > > The system I am testing is on an internal lan which is protected by a > firewall on the the gateway to the internet. There is no firewall running on > the system I am testing on. > > Ordinary mail clients running on this system can send things to port 587 on > the ISP's mail server. can you run command like `sudo -u nobody telnet mail_host 587` here `nobody` is the user you are using to run OM > > > > > > The only problem is my mail provider requires a secure connection > > > on port 587. I cannot see any mention of a policy for jakarta mail in > > > /opt/openmeetings/conf/catalina.policy. Is this set somewhere else? > > > > > > Roger > > > > > > > > -- Best regards, Maxim
Re: smtp packets not bring transmitted
On 06/09/2022 10:38, Maxim Solodovnik wrote: On Tue, 6 Sept 2022 at 16:36, roger wrote: > > I have just run a test with the port set to 25 and I see packets going > out. I believe you need to check your firewall settings (for ex, `ufw`) The system I am testing is on an internal lan which is protected by a firewall on the the gateway to the internet. There is no firewall running on the system I am testing on. Ordinary mail clients running on this system can send things to port 587 on the ISP's mail server. > The only problem is my mail provider requires a secure connection > on port 587. I cannot see any mention of a policy for jakarta mail in > /opt/openmeetings/conf/catalina.policy. Is this set somewhere else? > > Roger
Re: smtp packets not bring transmitted
On Tue, 6 Sept 2022 at 16:36, roger wrote: > > I have just run a test with the port set to 25 and I see packets going > out. I believe you need to check your firewall settings (for ex, `ufw`) > The only problem is my mail provider requires a secure connection > on port 587. I cannot see any mention of a policy for jakarta mail in > /opt/openmeetings/conf/catalina.policy. Is this set somewhere else? > > Roger -- Best regards, Maxim
Re: smtp packets not bring transmitted
Hello Roger, What mail server are you using? On Tue, 06 Sep 2022 08:59:07 +0100 Roger James wrote: > Help! > > Getting email messages out of the openmeetings server is not working for > me. I do not see any smtp traffic getting out of the openmeetings server > application. The only thing I see in the log are receive timeout errors. It > would appear that openmeetings thinks it has sent a connection request and > fails waiting for a response. I suspect this is a containment issue, but I > do not have a clue how to debug it. Any suggestions will be gratefully > received. I am running the server on Ubuntu 22.04. > > Roger
Re: smtp packets not bring transmitted
Hello, timeout errors usually means the ports are blocked by firewall can you try to `telnet mail_host mail_port` ? On Tue, 6 Sept 2022 at 14:59, Roger James wrote: > > Help! > > Getting email messages out of the openmeetings server is not working for me. > I do not see any smtp traffic getting out of the openmeetings server > application. The only thing I see in the log are receive timeout errors. It > would appear that openmeetings thinks it has sent a connection request and > fails waiting for a response. I suspect this is a containment issue, but I do > not have a clue how to debug it. Any suggestions will be gratefully received. > I am running the server on Ubuntu 22.04. > > Roger -- Best regards, Maxim