cant run an smtp docker container on linux AMI

0

Hi, i'm trying to run postfix/dovcot containers using docker-compose on a new Linux AMI based vm i just created. docker daemon issues an error: "Error response from daemon: driver failed programming external connectivity on endpoint <XXXXXX Container name XXXXX> (582c7551d1c87e6131cb153b1dee9f9c1d0bd5ea1eaedfe070d7952276547569): Error starting userland proxy: listen tcp4 0.0.0.0:25: bind: address already in use"

indeed ,running

sudo lsof -i:25 |grep LISTEN

shows that the port is used. this is the output :

master  3038 root   13u  IPv4  17945      0t0  TCP localhost:smtp (LISTEN)

What am i missing here ? why is that port taken ? i read some comments on the net saying that Amazon prevent using port 25 by default - is that the case here ? Thanks in advance Sivan

질문됨 2년 전564회 조회
1개 답변
0
수락된 답변

So i found out that this AMI comes with postfix installed and enabled , i did not know postfix is installed by default. i simply had to disable and stop the service. I found this by mistake while running some ps aux commands ,grepping for pids. what i did was:

sudo systemctl stop postfix
sudo systemctl disable postfix # so that postfix wont reload when my vm restarts
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠