Hello everybody
Excuse me if it is a dumb question but I'm new in this forum.
I'm setting a Alfresco community server with Ubuntu 18.4 for testing and so far so good.
I have a problem for inbound mail (outbound is fine). The inbound is working BUT only via telnet and with a specific port (2525).
I configured the inbound like that :
#Inbound
email.server.enabled=true
email.inbound.enabled=true
email.server.port=2525
email.server.domain= mydomain.com
#email.inbound.unknownUser=anonymous
I then tested with :
telnet mydomain.com 2525
ehlo mydomain.com
mail from: <testuser@anotherdomain.com>
rcpt to: <aliasoffolder@mydomain.com>
data
this is a test
.
quit
I can find the test email delivered in the proper folder
But it is just impossible to do the same with port 25 (thus with a standard email client going thru a normal SMTP server)
So far there are no firewalls in the server or router.
I understand that Tomcat cannot bind to port 25 and consquently a NAT redirection is needed.
The problem seems to come from the command :
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 2525
I wonder if this is enough ?
Alternatively can Tomcat use port 25 ?
Thanks a lot in advance for some help, I'm getting mad with that problem...