Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-08 Thread laurent

Hi Mike,

I receive the mail sent with your script. It verbose this:

send: 'ehlo host.domain.com\r\n'
reply: '250-host.domain.com\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-SIZE 1024\r\n'
reply: '250-VRFY\r\n'
reply: '250-ETRN\r\n'
reply: '250-STARTTLS\r\n'
reply: '250-AUTH LOGIN PLAIN\r\n'
reply: '250-AUTH=LOGIN PLAIN\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250 DSN\r\n'
reply: retcode (250); Msg: host.domain.com
PIPELINING
SIZE 1024
VRFY
ETRN
STARTTLS
AUTH LOGIN PLAIN
AUTH=LOGIN PLAIN
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:r...@host.domain.com size=427\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send: 'rcpt TO:laur...@host.domain.com\r\n'
reply: '250 2.1.5 Ok\r\n'
reply: retcode (250); Msg: 2.1.5 Ok
send: 'data\r\n'
reply: '354 End data with CRLF.CRLF\r\n'
reply: retcode (354); Msg: End data with CRLF.CRLF
data: (354, 'End data with CRLF.CRLF')
send: 'Content-Type: multipart/mixed; 
boundary368381694963480==\r\nMIME-Version: 
1.0\r\nFrom: r...@host.domain.com\r\nto: 
laur...@host.domain.com\r\ndate: Wed, 08 Apr 2009 17:04:45 
+0200\r\nSubject: Mail testing 
message\r\n\r\n--===368381694963480==\r\nContent-Type: 
text/plain; charset=us-ascii\r\nMIME-Version: 
1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nTest message body 
;)\r\n--===368381694963480==--\r\n.\r\n'

reply: '250 2.0.0 Ok: queued as 4DDD1F24001\r\n'
reply: retcode (250); Msg: 2.0.0 Ok: queued as 4DDD1F24001
data: (250, '2.0.0 Ok: queued as 4DDD1F24001')
send: 'quit\r\n'
reply: '221 2.0.0 Bye\r\n'
reply: retcode (221); Msg: 2.0.0 Bye

So it looks like working.
Actually I'm trying to make apache send an e-mail via postfix. I went 
through installing a complete virtual mail host but maybe I will go back 
to a simpler way.
I got the smtp, pop, imap installed, I don't really need the virtual 
host stuff. I could send email even before. hm. Obscure.


I'm using neko vm as server side programming, trying to make neko make 
apache send an e-mail. I think my next step is to connect apache to postfix.
I'm looking into this, if you have any idea where I should look you're 
welcome.


Thanks
Laurent

Mike Kazantsev a écrit :

On Wed, 08 Apr 2009 01:04:53 +0200
laurent laur...@logiquefloue.org wrote:

  

Why don't I have thos lines showing:



Short: because you (client) have to send some of them _to_ server, since
it doesn't know what you need when you just connected.

  

EHLO domain.com



That's what a typical client sends in response to server smtp
announcement.

  

250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME



And that's what server responds to it, further announcing it's
capabilities, so client may choose how to relay the message thru it.


Try this simple python script to check smtp capability of your server:
http://fraggod.net/svc/dumpz/d7936/

Just save it into some file like smtp_test.py, replace domain with
address of your server and use python smtp_test.py to launch it.
It should show you whole protocol exchange between client and server,
along with ocurred errors, if any.


For me (working case), it's output looks like this (domain.com here is
my mail domain, for example case):

send: 'ehlo [127.0.0.1]\r\n'
reply: '250-domain.com\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-SIZE 1024\r\n'
reply: '250-VRFY\r\n'
reply: '250-ETRN\r\n'
reply: '250-STARTTLS\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250 DSN\r\n'
reply: retcode (250); Msg: domain.com
PIPELINING
SIZE 1024
VRFY
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:mail_t...@domain.com size=390\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send: 'rcpt TO:postmas...@domain.com\r\n'
reply: '250 2.1.5 Ok\r\n'
reply: retcode (250); Msg: 2.1.5 Ok
send: 'data\r\n'
reply: '354 End data with CRLF.CRLF\r\n'
reply: retcode (354); Msg: End data with CRLF.CRLF
data: (354, 'End data with CRLF.CRLF')
send: 'Content-Type: multipart/mixed; 
boundary0122837587==\r\nMIME-Version: 1.0\r\nFrom: 
mail_t...@domain.com\r\nto: postmas...@domain.com\r\ndate: Wed, 08 Apr 2009 07:22:07 
+0600\r\nSubject: Mail testing message\r\n\r\n--===0122837587==\r\nContent-Type: 
text/plain; charset=us-ascii\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 
7bit\r\n\r\nTest message body ;)\r\n--===0122837587==--\r\n.\r\n'
reply: '250 2.0.0 Ok: queued as 555F1101FDC\r\n'
reply: retcode (250); Msg: 2.0.0 Ok: queued as 555F1101FDC
data: (250, '2.0.0 Ok: queued as 555F1101FDC')
send: 'quit\r\n'
reply: '221 2.0.0 Bye\r\n'
reply: retcode (221); Msg: 2.0.0 Bye


  





Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-08 Thread laurent

IT'S WORKING! ahahahaHAHAHAHAHAHAHAHHA
I did nothing for thatHahAHAHAHAHAHAHAH
appart from installin a smtp server, yeah...:)

cheers!
Laurent


laurent a écrit :

Hi Mike,

I receive the mail sent with your script. It verbose this:

send: 'ehlo host.domain.com\r\n'
reply: '250-host.domain.com\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-SIZE 1024\r\n'
reply: '250-VRFY\r\n'
reply: '250-ETRN\r\n'
reply: '250-STARTTLS\r\n'
reply: '250-AUTH LOGIN PLAIN\r\n'
reply: '250-AUTH=LOGIN PLAIN\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250 DSN\r\n'
reply: retcode (250); Msg: host.domain.com
PIPELINING
SIZE 1024
VRFY
ETRN
STARTTLS
AUTH LOGIN PLAIN
AUTH=LOGIN PLAIN
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:r...@host.domain.com size=427\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send: 'rcpt TO:laur...@host.domain.com\r\n'
reply: '250 2.1.5 Ok\r\n'
reply: retcode (250); Msg: 2.1.5 Ok
send: 'data\r\n'
reply: '354 End data with CRLF.CRLF\r\n'
reply: retcode (354); Msg: End data with CRLF.CRLF
data: (354, 'End data with CRLF.CRLF')
send: 'Content-Type: multipart/mixed; 
boundary368381694963480==\r\nMIME-Version: 
1.0\r\nFrom: r...@host.domain.com\r\nto: 
laur...@host.domain.com\r\ndate: Wed, 08 Apr 2009 17:04:45 
+0200\r\nSubject: Mail testing 
message\r\n\r\n--===368381694963480==\r\nContent-Type: 
text/plain; charset=us-ascii\r\nMIME-Version: 
1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nTest message body 
;)\r\n--===368381694963480==--\r\n.\r\n'

reply: '250 2.0.0 Ok: queued as 4DDD1F24001\r\n'
reply: retcode (250); Msg: 2.0.0 Ok: queued as 4DDD1F24001
data: (250, '2.0.0 Ok: queued as 4DDD1F24001')
send: 'quit\r\n'
reply: '221 2.0.0 Bye\r\n'
reply: retcode (221); Msg: 2.0.0 Bye

So it looks like working.
Actually I'm trying to make apache send an e-mail via postfix. I went 
through installing a complete virtual mail host but maybe I will go 
back to a simpler way.
I got the smtp, pop, imap installed, I don't really need the virtual 
host stuff. I could send email even before. hm. Obscure.


I'm using neko vm as server side programming, trying to make neko make 
apache send an e-mail. I think my next step is to connect apache to 
postfix.
I'm looking into this, if you have any idea where I should look you're 
welcome.


Thanks
Laurent

Mike Kazantsev a écrit :

On Wed, 08 Apr 2009 01:04:53 +0200
laurent laur...@logiquefloue.org wrote:

 

Why don't I have thos lines showing:



Short: because you (client) have to send some of them _to_ server, since
it doesn't know what you need when you just connected.

 

EHLO domain.com



That's what a typical client sends in response to server smtp
announcement.

 

250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME



And that's what server responds to it, further announcing it's
capabilities, so client may choose how to relay the message thru it.


Try this simple python script to check smtp capability of your server:
http://fraggod.net/svc/dumpz/d7936/

Just save it into some file like smtp_test.py, replace domain with
address of your server and use python smtp_test.py to launch it.
It should show you whole protocol exchange between client and server,
along with ocurred errors, if any.


For me (working case), it's output looks like this (domain.com here is
my mail domain, for example case):

send: 'ehlo [127.0.0.1]\r\n'
reply: '250-domain.com\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-SIZE 1024\r\n'
reply: '250-VRFY\r\n'
reply: '250-ETRN\r\n'
reply: '250-STARTTLS\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250 DSN\r\n'
reply: retcode (250); Msg: domain.com
PIPELINING
SIZE 1024
VRFY
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:mail_t...@domain.com size=390\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send: 'rcpt TO:postmas...@domain.com\r\n'
reply: '250 2.1.5 Ok\r\n'
reply: retcode (250); Msg: 2.1.5 Ok
send: 'data\r\n'
reply: '354 End data with CRLF.CRLF\r\n'
reply: retcode (354); Msg: End data with CRLF.CRLF
data: (354, 'End data with CRLF.CRLF')
send: 'Content-Type: multipart/mixed; 
boundary0122837587==\r\nMIME-Version: 1.0\r\nFrom: 
mail_t...@domain.com\r\nto: postmas...@domain.com\r\ndate: Wed, 08 
Apr 2009 07:22:07 +0600\r\nSubject: Mail testing 
message\r\n\r\n--===0122837587==\r\nContent-Type: 
text/plain; charset=us-ascii\r\nMIME-Version: 
1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nTest message body 
;)\r\n--===0122837587==--\r\n.\r\n'

reply: '250 2.0.0 Ok: queued as 555F1101FDC\r\n'
reply: retcode (250); Msg: 2.0.0 Ok: queued as 555F1101FDC
data: (250, '2.0.0 Ok: queued as 555F1101FDC')
send: 'quit\r\n'
reply: '221 2.0.0 Bye\r\n'
reply: retcode (221); Msg: 2.0.0 Bye


  










Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread laurent

Hey,

I did the change you proposed, check the logs. added this to smtpd.conf:
pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: host.domai.com
sql_user: user
sql_passwd: pass
sql_database: mail
sql_select: select passwd from users where user='%u'

and now my logs goes wrong here:
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: sql auxprop plugin using 
mysql engine
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: auxpropfunc error invalid 
parameter supplied
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: _sasl_plugin_load failed 
on sasl_auxprop_plug_init for plugin: ldapdb


checked google, but no idea now.
thx
Laurent



Xav' a écrit :

laurent a écrit :

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you 
won't be able to log on to any of the services because 
authentication hasn't been configured yet, but it is wise to check 
if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap 
protocol
and see if the server answer to the connection and with openssl 
s_client

for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* or 
/var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry 
telnet and check (or post) the logs again.



:s
 

Thanks
Laurent













Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread laurent

maybe I should disable ldapd as I'm using mysql ...hm ?

L

laurent a écrit :

Hey,

I did the change you proposed, check the logs. added this to smtpd.conf:
pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: host.domai.com
sql_user: user
sql_passwd: pass
sql_database: mail
sql_select: select passwd from users where user='%u'

and now my logs goes wrong here:
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: sql auxprop plugin 
using mysql engine
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: auxpropfunc error 
invalid parameter supplied
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: _sasl_plugin_load 
failed on sasl_auxprop_plug_init for plugin: ldapdb


checked google, but no idea now.
thx
Laurent



Xav' a écrit :

laurent a écrit :

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you 
won't be able to log on to any of the services because 
authentication hasn't been configured yet, but it is wise to check 
if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is 
done later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap 
protocol
and see if the server answer to the connection and with openssl 
s_client

for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* 
or /var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry 
telnet and check (or post) the logs again.



:s
 

Thanks
Laurent


















Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread laurent
ok forget what I said before i fixed the log problems that I saw in 
/var/log/messages


now I got just this, one line of postfix verbose, when I connect with 
telnet:

telnet host.domain.com 25
Trying xxx.xxx.xxx.xxx...
Connected to host.domain.com.
Escape character is '^]'.
220 host.domain.com ESMTP Postfix

Just one line, is it ok ?

Laurent


laurent a écrit :

maybe I should disable ldapd as I'm using mysql ...hm ?

L

laurent a écrit :

Hey,

I did the change you proposed, check the logs. added this to smtpd.conf:
pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: host.domai.com
sql_user: user
sql_passwd: pass
sql_database: mail
sql_select: select passwd from users where user='%u'

and now my logs goes wrong here:
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: sql auxprop plugin 
using mysql engine
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: auxpropfunc error 
invalid parameter supplied
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: _sasl_plugin_load 
failed on sasl_auxprop_plug_init for plugin: ldapdb


checked google, but no idea now.
thx
Laurent



Xav' a écrit :

laurent a écrit :

Xav' a écrit :
On Tue, 31 Mar 2009 18:15:33 +0200, laurent 
laur...@logiquefloue.org

wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all 
connections you've started work for receiving and sending mail. 
Of course, you won't be able to log on to any of the services 
because authentication hasn't been configured yet, but it is wise 
to check if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is 
done later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap 
protocol
and see if the server answer to the connection and with openssl 
s_client

for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* 
or /var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry 
telnet and check (or post) the logs again.



:s
 

Thanks
Laurent























Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread laurent


the /? command is not recognized, the quit command works


laurent a écrit :

maybe I should disable ldapd as I'm using mysql ...hm ?

L

laurent a écrit :

Hey,

I did the change you proposed, check the logs. added this to smtpd.conf:
pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: host.domai.com
sql_user: user
sql_passwd: pass
sql_database: mail
sql_select: select passwd from users where user='%u'

and now my logs goes wrong here:
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: sql auxprop plugin 
using mysql engine
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: auxpropfunc error 
invalid parameter supplied
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: _sasl_plugin_load 
failed on sasl_auxprop_plug_init for plugin: ldapdb


checked google, but no idea now.
thx
Laurent



Xav' a écrit :

laurent a écrit :

Xav' a écrit :
On Tue, 31 Mar 2009 18:15:33 +0200, laurent 
laur...@logiquefloue.org

wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all 
connections you've started work for receiving and sending mail. 
Of course, you won't be able to log on to any of the services 
because authentication hasn't been configured yet, but it is wise 
to check if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is 
done later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap 
protocol
and see if the server answer to the connection and with openssl 
s_client

for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* 
or /var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry 
telnet and check (or post) the logs again.



:s
 

Thanks
Laurent























Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread laurent

Why don't I have thos lines showing:

EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME

?




laurent a écrit :


the /? command is not recognized, the quit command works


laurent a écrit :

maybe I should disable ldapd as I'm using mysql ...hm ?

L

laurent a écrit :

Hey,

I did the change you proposed, check the logs. added this to 
smtpd.conf:

pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: host.domai.com
sql_user: user
sql_passwd: pass
sql_database: mail
sql_select: select passwd from users where user='%u'

and now my logs goes wrong here:
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: sql auxprop plugin 
using mysql engine
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: auxpropfunc error 
invalid parameter supplied
Apr  7 18:48:54 ks359684 postfix/smtpd[17003]: _sasl_plugin_load 
failed on sasl_auxprop_plug_init for plugin: ldapdb


checked google, but no idea now.
thx
Laurent



Xav' a écrit :

laurent a écrit :

Xav' a écrit :
On Tue, 31 Mar 2009 18:15:33 +0200, laurent 
laur...@logiquefloue.org

wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all 
connections you've started work for receiving and sending mail. 
Of course, you won't be able to log on to any of the services 
because authentication hasn't been configured yet, but it is 
wise to check if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is 
done later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap 
protocol
and see if the server answer to the connection and with openssl 
s_client

for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* 
or /var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry 
telnet and check (or post) the logs again.



:s
 

Thanks
Laurent




























Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread Mike Kazantsev
On Tue, 07 Apr 2009 23:42:21 +0200
laurent laur...@logiquefloue.org wrote:

 now I got just this, one line of postfix verbose, when I connect with 
 telnet:
 telnet host.domain.com 25
 Trying xxx.xxx.xxx.xxx...
 Connected to host.domain.com.
 Escape character is '^]'.
 220 host.domain.com ESMTP Postfix
 
 Just one line, is it ok ?

Looks like a valid response to me.

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-04-07 Thread Mike Kazantsev
On Wed, 08 Apr 2009 01:04:53 +0200
laurent laur...@logiquefloue.org wrote:

 Why don't I have thos lines showing:

Short: because you (client) have to send some of them _to_ server, since
it doesn't know what you need when you just connected.

 EHLO domain.com

That's what a typical client sends in response to server smtp
announcement.

 250-mail.domain.com
 250-PIPELINING
 250-SIZE 1024
 250-VRFY
 250-ETRN
 250-STARTTLS
 250-AUTH LOGIN PLAIN
 250-AUTH=LOGIN PLAIN
 250-XVERP
 250 8BITMIME

And that's what server responds to it, further announcing it's
capabilities, so client may choose how to relay the message thru it.


Try this simple python script to check smtp capability of your server:
http://fraggod.net/svc/dumpz/d7936/

Just save it into some file like smtp_test.py, replace domain with
address of your server and use python smtp_test.py to launch it.
It should show you whole protocol exchange between client and server,
along with ocurred errors, if any.


For me (working case), it's output looks like this (domain.com here is
my mail domain, for example case):

send: 'ehlo [127.0.0.1]\r\n'
reply: '250-domain.com\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-SIZE 1024\r\n'
reply: '250-VRFY\r\n'
reply: '250-ETRN\r\n'
reply: '250-STARTTLS\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250 DSN\r\n'
reply: retcode (250); Msg: domain.com
PIPELINING
SIZE 1024
VRFY
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:mail_t...@domain.com size=390\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send: 'rcpt TO:postmas...@domain.com\r\n'
reply: '250 2.1.5 Ok\r\n'
reply: retcode (250); Msg: 2.1.5 Ok
send: 'data\r\n'
reply: '354 End data with CRLF.CRLF\r\n'
reply: retcode (354); Msg: End data with CRLF.CRLF
data: (354, 'End data with CRLF.CRLF')
send: 'Content-Type: multipart/mixed; 
boundary0122837587==\r\nMIME-Version: 1.0\r\nFrom: 
mail_t...@domain.com\r\nto: postmas...@domain.com\r\ndate: Wed, 08 Apr 2009 
07:22:07 +0600\r\nSubject: Mail testing 
message\r\n\r\n--===0122837587==\r\nContent-Type: text/plain; 
charset=us-ascii\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 
7bit\r\n\r\nTest message body ;)\r\n--===0122837587==--\r\n.\r\n'
reply: '250 2.0.0 Ok: queued as 555F1101FDC\r\n'
reply: retcode (250); Msg: 2.0.0 Ok: queued as 555F1101FDC
data: (250, '2.0.0 Ok: queued as 555F1101FDC')
send: 'quit\r\n'
reply: '221 2.0.0 Bye\r\n'
reply: retcode (221); Msg: 2.0.0 Bye


-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


[gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you won't 
be able to log on to any of the services because authentication hasn't 
been configured yet, but it is wise to check if the connections 
themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?

Thanks
Laurent



Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread Xav'
On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 Hi,
 
 I'm following this how to:
 http://www.gentoo.org/doc/en/virt-mail-howto.xml
 
 after configuring courier-imap they say:
 Start up your favorite mail client and verify that all connections 
 you've started work for receiving and sending mail. Of course, you won't 
 be able to log on to any of the services because authentication hasn't 
 been configured yet, but it is wise to check if the connections 
 themselves work or not.
 
 I'm using mutt, saying there's no mailbox. Creating mailbox is done 
 later in the how to.
 What do they mean, how can I test if smtpd and pop3d work fine ?

They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier

 Thanks
 Laurent



Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
  

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you won't 
be able to log on to any of the services because authentication hasn't 
been configured yet, but it is wise to check if the connections 
themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier

  

Thanks
Laurent





  


ks359684 ~ # telnet host.domain.com 25
Trying xxx.xxx.xxx.xxx...
Connected to host.domain.com.
Escape character is '^]'.
Connection closed by foreign host.

Does it means it's fine ?? :)

L




Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

laurent a écrit :

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you 
won't be able to log on to any of the services because 
authentication hasn't been configured yet, but it is wise to check 
if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier

 

Thanks
Laurent





  


ks359684 ~ # telnet host.domain.com 25
Trying xxx.xxx.xxx.xxx...
Connected to host.domain.com.
Escape character is '^]'.
Connection closed by foreign host.

Does it means it's fine ?? :)

L




ok it's seems to be ok, pop3 connect and keep it. The ssl have no auth yet.
Thank you
Laurent





Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
  

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you won't 
be able to log on to any of the services because authentication hasn't 
been configured yet, but it is wise to check if the connections 
themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

:s
  

Thanks
Laurent





Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread Xav'

laurent a écrit :

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you 
won't be able to log on to any of the services because authentication 
hasn't been configured yet, but it is wise to check if the 
connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* or 
/var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry telnet 
and check (or post) the logs again.



:s
 

Thanks
Laurent