nirnanaaa / docker-postfix-dovecot

16 stars 7 forks source link

Help? #1

Open ronnicek opened 10 years ago

ronnicek commented 10 years ago

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? :)

nirnanaaa commented 10 years ago

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?

ronnicek commented 10 years ago

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

nirnanaaa commented 10 years ago

I am on it.

ronnicek commented 10 years ago

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.. :-/

nirnanaaa commented 10 years ago

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 (notifications@github.com) 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.

ronnicek commented 10 years ago

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..

nirnanaaa commented 10 years ago

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 (notifications@github.com) 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.

ronnicek commented 10 years ago

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
nirnanaaa commented 10 years ago

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: mosny@zyg.li 250 2.1.0 Ok RCPT TO: mosny@zyg.li 451 4.3.0 mosny@zyg.li: Temporary lookup failure

On July 10, 2014 at 12:21:25 PM, Jindřich Skácel (notifications@github.com) 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.

ronnicek commented 10 years ago

Then.. how you run docker image?

nirnanaaa commented 10 years ago

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

avinashtanniru commented 9 years ago

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.