1 |
Hi Mike, |
2 |
|
3 |
I receive the mail sent with your script. It verbose this: |
4 |
|
5 |
send: 'ehlo host.domain.com\r\n' |
6 |
reply: '250-host.domain.com\r\n' |
7 |
reply: '250-PIPELINING\r\n' |
8 |
reply: '250-SIZE 10240000\r\n' |
9 |
reply: '250-VRFY\r\n' |
10 |
reply: '250-ETRN\r\n' |
11 |
reply: '250-STARTTLS\r\n' |
12 |
reply: '250-AUTH LOGIN PLAIN\r\n' |
13 |
reply: '250-AUTH=LOGIN PLAIN\r\n' |
14 |
reply: '250-ENHANCEDSTATUSCODES\r\n' |
15 |
reply: '250-8BITMIME\r\n' |
16 |
reply: '250 DSN\r\n' |
17 |
reply: retcode (250); Msg: host.domain.com |
18 |
PIPELINING |
19 |
SIZE 10240000 |
20 |
VRFY |
21 |
ETRN |
22 |
STARTTLS |
23 |
AUTH LOGIN PLAIN |
24 |
AUTH=LOGIN PLAIN |
25 |
ENHANCEDSTATUSCODES |
26 |
8BITMIME |
27 |
DSN |
28 |
send: 'mail FROM:<root@×××××××××××.com> size=427\r\n' |
29 |
reply: '250 2.1.0 Ok\r\n' |
30 |
reply: retcode (250); Msg: 2.1.0 Ok |
31 |
send: 'rcpt TO:<laurent@×××××××××××.com>\r\n' |
32 |
reply: '250 2.1.5 Ok\r\n' |
33 |
reply: retcode (250); Msg: 2.1.5 Ok |
34 |
send: 'data\r\n' |
35 |
reply: '354 End data with <CR><LF>.<CR><LF>\r\n' |
36 |
reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF> |
37 |
data: (354, 'End data with <CR><LF>.<CR><LF>') |
38 |
send: 'Content-Type: multipart/mixed; |
39 |
boundary="===============1111368381694963480=="\r\nMIME-Version: |
40 |
1.0\r\nFrom: root@×××××××××××.com\r\nTo: |
41 |
laurent@×××××××××××.com\r\nDate: Wed, 08 Apr 2009 17:04:45 |
42 |
+0200\r\nSubject: Mail testing |
43 |
message\r\n\r\n--===============1111368381694963480==\r\nContent-Type: |
44 |
text/plain; charset="us-ascii"\r\nMIME-Version: |
45 |
1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\nTest message body |
46 |
;)\r\n--===============1111368381694963480==--\r\n.\r\n' |
47 |
reply: '250 2.0.0 Ok: queued as 4DDD1F24001\r\n' |
48 |
reply: retcode (250); Msg: 2.0.0 Ok: queued as 4DDD1F24001 |
49 |
data: (250, '2.0.0 Ok: queued as 4DDD1F24001') |
50 |
send: 'quit\r\n' |
51 |
reply: '221 2.0.0 Bye\r\n' |
52 |
reply: retcode (221); Msg: 2.0.0 Bye |
53 |
|
54 |
So it looks like working. |
55 |
Actually I'm trying to make apache send an e-mail via postfix. I went |
56 |
through installing a complete virtual mail host but maybe I will go back |
57 |
to a simpler way. |
58 |
I got the smtp, pop, imap installed, I don't really need the virtual |
59 |
host stuff. I could send email even before. hm. Obscure. |
60 |
|
61 |
I'm using neko vm as server side programming, trying to make neko make |
62 |
apache send an e-mail. I think my next step is to connect apache to postfix. |
63 |
I'm looking into this, if you have any idea where I should look you're |
64 |
welcome. |
65 |
|
66 |
Thanks |
67 |
Laurent |
68 |
|
69 |
Mike Kazantsev a écrit : |
70 |
> On Wed, 08 Apr 2009 01:04:53 +0200 |
71 |
> laurent <laurent@××××××××××××.org> wrote: |
72 |
> |
73 |
> |
74 |
>> Why don't I have thos lines showing: |
75 |
>> |
76 |
> |
77 |
> Short: because you (client) have to send some of them _to_ server, since |
78 |
> it doesn't know what you need when you just connected. |
79 |
> |
80 |
> |
81 |
>> EHLO domain.com |
82 |
>> |
83 |
> |
84 |
> That's what a typical client sends in response to server smtp |
85 |
> announcement. |
86 |
> |
87 |
> |
88 |
>> 250-mail.domain.com |
89 |
>> 250-PIPELINING |
90 |
>> 250-SIZE 10240000 |
91 |
>> 250-VRFY |
92 |
>> 250-ETRN |
93 |
>> 250-STARTTLS |
94 |
>> 250-AUTH LOGIN PLAIN |
95 |
>> 250-AUTH=LOGIN PLAIN |
96 |
>> 250-XVERP |
97 |
>> 250 8BITMIME |
98 |
>> |
99 |
> |
100 |
> And that's what server responds to it, further announcing it's |
101 |
> capabilities, so client may choose how to relay the message thru it. |
102 |
> |
103 |
> |
104 |
> Try this simple python script to check smtp capability of your server: |
105 |
> http://fraggod.net/svc/dumpz/d7936/ |
106 |
> |
107 |
> Just save it into some file like "smtp_test.py", replace "domain" with |
108 |
> address of your server and use "python smtp_test.py" to launch it. |
109 |
> It should show you whole protocol exchange between client and server, |
110 |
> along with ocurred errors, if any. |
111 |
> |
112 |
> |
113 |
> For me (working case), it's output looks like this ("domain.com" here is |
114 |
> my mail domain, for example case): |
115 |
> |
116 |
> send: 'ehlo [127.0.0.1]\r\n' |
117 |
> reply: '250-domain.com\r\n' |
118 |
> reply: '250-PIPELINING\r\n' |
119 |
> reply: '250-SIZE 10240000\r\n' |
120 |
> reply: '250-VRFY\r\n' |
121 |
> reply: '250-ETRN\r\n' |
122 |
> reply: '250-STARTTLS\r\n' |
123 |
> reply: '250-ENHANCEDSTATUSCODES\r\n' |
124 |
> reply: '250-8BITMIME\r\n' |
125 |
> reply: '250 DSN\r\n' |
126 |
> reply: retcode (250); Msg: domain.com |
127 |
> PIPELINING |
128 |
> SIZE 10240000 |
129 |
> VRFY |
130 |
> ETRN |
131 |
> STARTTLS |
132 |
> ENHANCEDSTATUSCODES |
133 |
> 8BITMIME |
134 |
> DSN |
135 |
> send: 'mail FROM:<mail_test@××××××.com> size=390\r\n' |
136 |
> reply: '250 2.1.0 Ok\r\n' |
137 |
> reply: retcode (250); Msg: 2.1.0 Ok |
138 |
> send: 'rcpt TO:<postmaster@××××××.com>\r\n' |
139 |
> reply: '250 2.1.5 Ok\r\n' |
140 |
> reply: retcode (250); Msg: 2.1.5 Ok |
141 |
> send: 'data\r\n' |
142 |
> reply: '354 End data with <CR><LF>.<CR><LF>\r\n' |
143 |
> reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF> |
144 |
> data: (354, 'End data with <CR><LF>.<CR><LF>') |
145 |
> send: 'Content-Type: multipart/mixed; boundary="===============0122837587=="\r\nMIME-Version: 1.0\r\nFrom: mail_test@××××××.com\r\nTo: postmaster@××××××.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' |
146 |
> reply: '250 2.0.0 Ok: queued as 555F1101FDC\r\n' |
147 |
> reply: retcode (250); Msg: 2.0.0 Ok: queued as 555F1101FDC |
148 |
> data: (250, '2.0.0 Ok: queued as 555F1101FDC') |
149 |
> send: 'quit\r\n' |
150 |
> reply: '221 2.0.0 Bye\r\n' |
151 |
> reply: retcode (221); Msg: 2.0.0 Bye |
152 |
> |
153 |
> |
154 |
> |