docker-postfix-dovecot icon indicating copy to clipboard operation
docker-postfix-dovecot copied to clipboard

Help?

Open ronnicek opened this issue 11 years ago • 12 comments

Hi,

me and doc would like to help you to finish it (we go thru and it looks like mainly documentation and database is missing).

Are you planning to add at least database, so it will work well, then we can tune the other things? :)

ronnicek avatar Jul 10 '14 07:07 ronnicek

Hi,

Yeah I can add a postgres database, however it was initially intended to be linked from another docker container(which doesn't work on my testing machine yet...).

Do you think it is a good idea to add postgresql to the container itself?

nirnanaaa avatar Jul 10 '14 07:07 nirnanaaa

I think it should be in some data container, because it should be persistent :)

ronnicek avatar Jul 10 '14 07:07 ronnicek

I am on it.

nirnanaaa avatar Jul 10 '14 09:07 nirnanaaa

Btw. did you tried telnet to docker? I run it as docker run -e "HOSTNAME=mail2.domain.net" -e "MAILNAME=mail2.domain.net" -t nirnanaaa/docker-postfix-dovecot start, but when I do a telnet to port 25..

[root@docker ~]# telnet 172.17.0.21 25
Trying 172.17.0.21...
Connected to 172.17.0.21.
Escape character is '^]'.
220-mail2.domain.net ESMTP mail2.domain.net
HELO mail2.domain.net

And no answer as should be.. :-/

ronnicek avatar Jul 10 '14 10:07 ronnicek

uhm you need to wait 5 seconds or so until

200 mail2.domain.net appears. Thats a security mechanism provided by postscreen.

On July 10, 2014 at 12:14:22 PM, Jindřich Skácel ([email protected]) wrote:

Btw. did you tried telnet to docker? I run it as docker run -e "HOSTNAME=mail2.domain.net" -e "MAILNAME=mail2.domain.net" -t nirnanaaa/docker-postfix-dovecot start, but when I do a telnet to port 25..

[root@docker ~]# telnet 172.17.0.21 25 Trying 172.17.0.21... Connected to 172.17.0.21. Escape character is '^]'. 220-mail2.domain.net ESMTP mail2.domain.net HELO mail2.domain.net

And no answer as should be.. :-/

— Reply to this email directly or view it on GitHub.

nirnanaaa avatar Jul 10 '14 10:07 nirnanaaa

Yep, 220-mail2.domain.net ESMTP mail2.domain.net appears, but then when I type HELO mail2.domain.net or EHLO mail2.domain.net nothing happens..

ronnicek avatar Jul 10 '14 10:07 ronnicek

Postfix doesn’t answer on these “220-” codes containing the dash. Shortly after this 220- a 220 will appear. This is called pre-greeting. After the 220 (without dash) you are allowed to send your helo command.

On July 10, 2014 at 12:21:25 PM, Jindřich Skácel ([email protected]) wrote:

Yep, 220-mail2.domain.net ESMTP mail2.domain.net appears, but then when I type HELO mail2.domain.net or EHLO mail2.domain.net nothing happens..

— Reply to this email directly or view it on GitHub.

nirnanaaa avatar Jul 10 '14 10:07 nirnanaaa

Hmm... nothing appers after 220- and now it's nothing there..

[root@docker ~]# telnet 172.17.0.21 25
Trying 172.17.0.21...
Connected to 172.17.0.21.
Escape character is '^]'.
---- waiting here for 5 minutes ----

And when I try for example Google SMTP, there is no 220- (only 220 )

# telnet smtp.gmail.com 25
Trying 74.125.136.108...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP u10sm109449478wjz.43 - gsmtp

ronnicek avatar Jul 10 '14 10:07 ronnicek

Trace:

220-mx–2.mail.zyg.li ESMTP mx–2.mail.zyg.li ——— wait here 220 mx–2.mail.zyg.li ESMTP mx–2.mail.zyg.li HELO boot2docker.localdomain 250 mx–2.mail.zyg.li MAIL FROM: [email protected] 250 2.1.0 Ok RCPT TO: [email protected] 451 4.3.0 [email protected]: Temporary lookup failure

On July 10, 2014 at 12:21:25 PM, Jindřich Skácel ([email protected]) wrote:

Yep, 220-mail2.domain.net ESMTP mail2.domain.net appears, but then when I type HELO mail2.domain.net or EHLO mail2.domain.net nothing happens..

— Reply to this email directly or view it on GitHub.

nirnanaaa avatar Jul 10 '14 10:07 nirnanaaa

Then.. how you run docker image?

ronnicek avatar Jul 10 '14 10:07 ronnicek

docker run
-e PF_DB_USER='mail'
-e PF_DB_PASS='test'
-e PF_DB_NAME='test'
-e PF_DB_HOST='test'
-e MAILNAME='zyg.li'
-e HOSTNAME='mx-2.mail.zyg.li'
-p 143:143 \
-p 25:25
-p 993:993
-t
-i
--volumes-from data
ms2 start

nirnanaaa avatar Jul 10 '14 10:07 nirnanaaa

how to start dovecot i have install it when i tried to restart it it shows "dovecot: unrecognized service"

Please help me out with it.

avinashtanniru avatar Dec 09 '14 07:12 avinashtanniru