* [gentoo-user] Postfix, courier-imap: checks if working
@ 2009-03-31 16:15 laurent
2009-03-31 16:31 ` Xav'
2009-04-02 15:15 ` [gentoo-user] " James
0 siblings, 2 replies; 16+ messages in thread
From: laurent @ 2009-03-31 16:15 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-03-31 16:15 [gentoo-user] Postfix, courier-imap: checks if working laurent
@ 2009-03-31 16:31 ` Xav'
2009-03-31 16:53 ` laurent
2009-03-31 19:58 ` laurent
2009-04-02 15:15 ` [gentoo-user] " James
1 sibling, 2 replies; 16+ messages in thread
From: Xav' @ 2009-03-31 16:31 UTC (permalink / raw
To: gentoo-user
On Tue, 31 Mar 2009 18:15:33 +0200, laurent <laurent@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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-03-31 16:31 ` Xav'
@ 2009-03-31 16:53 ` laurent
2009-03-31 17:19 ` laurent
2009-03-31 19:58 ` laurent
1 sibling, 1 reply; 16+ messages in thread
From: laurent @ 2009-03-31 16:53 UTC (permalink / raw
To: gentoo-user
Xav' a écrit :
> On Tue, 31 Mar 2009 18:15:33 +0200, laurent <laurent@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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-03-31 16:53 ` laurent
@ 2009-03-31 17:19 ` laurent
0 siblings, 0 replies; 16+ messages in thread
From: laurent @ 2009-03-31 17:19 UTC (permalink / raw
To: gentoo-user
laurent a écrit :
> Xav' a écrit :
>> On Tue, 31 Mar 2009 18:15:33 +0200, laurent <laurent@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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-03-31 16:31 ` Xav'
2009-03-31 16:53 ` laurent
@ 2009-03-31 19:58 ` laurent
2009-03-31 20:08 ` Xav'
1 sibling, 1 reply; 16+ messages in thread
From: laurent @ 2009-03-31 19:58 UTC (permalink / raw
To: gentoo-user
Xav' a écrit :
> On Tue, 31 Mar 2009 18:15:33 +0200, laurent <laurent@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 10240000
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
>>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-03-31 19:58 ` laurent
@ 2009-03-31 20:08 ` Xav'
2009-04-07 18:13 ` laurent
0 siblings, 1 reply; 16+ messages in thread
From: Xav' @ 2009-03-31 20:08 UTC (permalink / raw
To: gentoo-user
laurent a écrit :
> Xav' a écrit :
>> On Tue, 31 Mar 2009 18:15:33 +0200, laurent <laurent@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 10240000
> 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
>>>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: Postfix, courier-imap: checks if working
2009-03-31 16:15 [gentoo-user] Postfix, courier-imap: checks if working laurent
2009-03-31 16:31 ` Xav'
@ 2009-04-02 15:15 ` James
1 sibling, 0 replies; 16+ messages in thread
From: James @ 2009-04-02 15:15 UTC (permalink / raw
To: gentoo-user
laurent <laurent <at> logiquefloue.org> writes:
> I'm following this how to:
> http://www.gentoo.org/doc/en/virt-mail-howto.xml
Well I took a quick glance at this document.
It does not discuss or show how to use DNS or more specifically
MX records. As such setting up email, specific
to a Domain Name(s), seems to be missing a fundamental
discussion, methinks.
Getting service or bandwidth suppliers to cooperate with
your DNS needs is problematic, at best, in my experience.
ymmv,
James
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-03-31 20:08 ` Xav'
@ 2009-04-07 18:13 ` laurent
2009-04-07 21:20 ` laurent
0 siblings, 1 reply; 16+ messages in thread
From: laurent @ 2009-04-07 18:13 UTC (permalink / raw
To: gentoo-user
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 <laurent@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 10240000
>> 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
>>>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-07 18:13 ` laurent
@ 2009-04-07 21:20 ` laurent
2009-04-07 21:42 ` laurent
2009-04-07 21:47 ` laurent
0 siblings, 2 replies; 16+ messages in thread
From: laurent @ 2009-04-07 21:20 UTC (permalink / raw
To: gentoo-user
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 <laurent@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 10240000
>>> 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
>>>>>
>>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-07 21:20 ` laurent
@ 2009-04-07 21:42 ` laurent
2009-04-08 1:12 ` Mike Kazantsev
2009-04-07 21:47 ` laurent
1 sibling, 1 reply; 16+ messages in thread
From: laurent @ 2009-04-07 21:42 UTC (permalink / raw
To: gentoo-user
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
>>>>> <laurent@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 10240000
>>>> 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
>>>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-07 21:20 ` laurent
2009-04-07 21:42 ` laurent
@ 2009-04-07 21:47 ` laurent
2009-04-07 23:04 ` laurent
1 sibling, 1 reply; 16+ messages in thread
From: laurent @ 2009-04-07 21:47 UTC (permalink / raw
To: gentoo-user
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
>>>>> <laurent@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 10240000
>>>> 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
>>>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-07 21:47 ` laurent
@ 2009-04-07 23:04 ` laurent
2009-04-08 1:33 ` Mike Kazantsev
0 siblings, 1 reply; 16+ messages in thread
From: laurent @ 2009-04-07 23:04 UTC (permalink / raw
To: gentoo-user
Why don't I have thos lines showing:
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 10240000
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
>>>>>> <laurent@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 10240000
>>>>> 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
>>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-07 21:42 ` laurent
@ 2009-04-08 1:12 ` Mike Kazantsev
0 siblings, 0 replies; 16+ messages in thread
From: Mike Kazantsev @ 2009-04-08 1:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
On Tue, 07 Apr 2009 23:42:21 +0200
laurent <laurent@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-07 23:04 ` laurent
@ 2009-04-08 1:33 ` Mike Kazantsev
2009-04-08 15:14 ` laurent
0 siblings, 1 reply; 16+ messages in thread
From: Mike Kazantsev @ 2009-04-08 1:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2685 bytes --]
On Wed, 08 Apr 2009 01:04:53 +0200
laurent <laurent@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 10240000
> 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 10240000\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 10240000
VRFY
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:<mail_test@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:<postmaster@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 <CR><LF>.<CR><LF>\r\n'
reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>
data: (354, 'End data with <CR><LF>.<CR><LF>')
send: 'Content-Type: multipart/mixed; boundary="===============0122837587=="\r\nMIME-Version: 1.0\r\nFrom: mail_test@domain.com\r\nTo: postmaster@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-08 1:33 ` Mike Kazantsev
@ 2009-04-08 15:14 ` laurent
2009-04-08 15:40 ` laurent
0 siblings, 1 reply; 16+ messages in thread
From: laurent @ 2009-04-08 15:14 UTC (permalink / raw
To: gentoo-user
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 10240000\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 10240000
VRFY
ETRN
STARTTLS
AUTH LOGIN PLAIN
AUTH=LOGIN PLAIN
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:<root@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:<laurent@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 <CR><LF>.<CR><LF>\r\n'
reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>
data: (354, 'End data with <CR><LF>.<CR><LF>')
send: 'Content-Type: multipart/mixed;
boundary="===============1111368381694963480=="\r\nMIME-Version:
1.0\r\nFrom: root@host.domain.com\r\nTo:
laurent@host.domain.com\r\nDate: Wed, 08 Apr 2009 17:04:45
+0200\r\nSubject: Mail testing
message\r\n\r\n--===============1111368381694963480==\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--===============1111368381694963480==--\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 <laurent@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 10240000
>> 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 10240000\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 10240000
> VRFY
> ETRN
> STARTTLS
> ENHANCEDSTATUSCODES
> 8BITMIME
> DSN
> send: 'mail FROM:<mail_test@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:<postmaster@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 <CR><LF>.<CR><LF>\r\n'
> reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>
> data: (354, 'End data with <CR><LF>.<CR><LF>')
> send: 'Content-Type: multipart/mixed; boundary="===============0122837587=="\r\nMIME-Version: 1.0\r\nFrom: mail_test@domain.com\r\nTo: postmaster@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
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Postfix, courier-imap: checks if working
2009-04-08 15:14 ` laurent
@ 2009-04-08 15:40 ` laurent
0 siblings, 0 replies; 16+ messages in thread
From: laurent @ 2009-04-08 15:40 UTC (permalink / raw
To: gentoo-user
IT'S WORKING! ahahahaHAHAHAHAHAHAHAHHA
I did nothing for that....HahAHAHAHAHAHAHAH
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 10240000\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 10240000
> VRFY
> ETRN
> STARTTLS
> AUTH LOGIN PLAIN
> AUTH=LOGIN PLAIN
> ENHANCEDSTATUSCODES
> 8BITMIME
> DSN
> send: 'mail FROM:<root@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:<laurent@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 <CR><LF>.<CR><LF>\r\n'
> reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>
> data: (354, 'End data with <CR><LF>.<CR><LF>')
> send: 'Content-Type: multipart/mixed;
> boundary="===============1111368381694963480=="\r\nMIME-Version:
> 1.0\r\nFrom: root@host.domain.com\r\nTo:
> laurent@host.domain.com\r\nDate: Wed, 08 Apr 2009 17:04:45
> +0200\r\nSubject: Mail testing
> message\r\n\r\n--===============1111368381694963480==\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--===============1111368381694963480==--\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 <laurent@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 10240000
>>> 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 10240000\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 10240000
>> VRFY
>> ETRN
>> STARTTLS
>> ENHANCEDSTATUSCODES
>> 8BITMIME
>> DSN
>> send: 'mail FROM:<mail_test@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:<postmaster@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 <CR><LF>.<CR><LF>\r\n'
>> reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>
>> data: (354, 'End data with <CR><LF>.<CR><LF>')
>> send: 'Content-Type: multipart/mixed;
>> boundary="===============0122837587=="\r\nMIME-Version: 1.0\r\nFrom:
>> mail_test@domain.com\r\nTo: postmaster@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
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2009-04-08 15:40 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 16:15 [gentoo-user] Postfix, courier-imap: checks if working laurent
2009-03-31 16:31 ` Xav'
2009-03-31 16:53 ` laurent
2009-03-31 17:19 ` laurent
2009-03-31 19:58 ` laurent
2009-03-31 20:08 ` Xav'
2009-04-07 18:13 ` laurent
2009-04-07 21:20 ` laurent
2009-04-07 21:42 ` laurent
2009-04-08 1:12 ` Mike Kazantsev
2009-04-07 21:47 ` laurent
2009-04-07 23:04 ` laurent
2009-04-08 1:33 ` Mike Kazantsev
2009-04-08 15:14 ` laurent
2009-04-08 15:40 ` laurent
2009-04-02 15:15 ` [gentoo-user] " James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox