diff options
Diffstat (limited to 'qmail-smtpd.c')
| -rw-r--r-- | qmail-smtpd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qmail-smtpd.c b/qmail-smtpd.c index 4e40adf..8f0842b 100644 --- a/qmail-smtpd.c +++ b/qmail-smtpd.c | |||
| @@ -157,13 +157,13 @@ void err_nogateway() | |||
| 157 | } | 157 | } |
| 158 | #endif | 158 | #endif |
| 159 | void err_badbounce() { out("550 sorry, bounce messages should have a single envelope recipient (#5.7.1)\r\n"); } | 159 | void err_badbounce() { out("550 sorry, bounce messages should have a single envelope recipient (#5.7.1)\r\n"); } |
| 160 | void err_unimpl() { out("502 unimplemented (#5.5.1)\r\n"); } | 160 | void err_unimpl(arg) char *arg; { out("502 unimplemented (#5.5.1)\r\n"); } |
| 161 | void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); } | 161 | void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); } |
| 162 | void err_relay() { out("553 we don't relay (#5.7.1)\r\n"); } | 162 | void err_relay() { out("553 we don't relay (#5.7.1)\r\n"); } |
| 163 | void err_wantmail() { out("503 MAIL first (#5.5.1)\r\n"); } | 163 | void err_wantmail() { out("503 MAIL first (#5.5.1)\r\n"); } |
| 164 | void err_wantrcpt() { out("503 RCPT first (#5.5.1)\r\n"); } | 164 | void err_wantrcpt() { out("503 RCPT first (#5.5.1)\r\n"); } |
| 165 | void err_noop() { out("250 ok\r\n"); } | 165 | void err_noop(arg) char *arg; { out("250 ok\r\n"); } |
| 166 | void err_vrfy() { out("252 send some mail, i'll try my best\r\n"); } | 166 | void err_vrfy(arg) char *arg; { out("252 send some mail, i'll try my best\r\n"); } |
| 167 | void err_qqt() { out("451 qqt failure (#4.3.0)\r\n"); } | 167 | void err_qqt() { out("451 qqt failure (#4.3.0)\r\n"); } |
| 168 | 168 | ||
| 169 | int err_child() { out("454 oops, problem with child and I can't auth (#4.3.0)\r\n"); return -1; } | 169 | int err_child() { out("454 oops, problem with child and I can't auth (#4.3.0)\r\n"); return -1; } |
| @@ -192,11 +192,11 @@ void smtp_greet(code) char *code; | |||
| 192 | substdio_puts(&ssout,code); | 192 | substdio_puts(&ssout,code); |
| 193 | substdio_put(&ssout,greeting.s,greeting.len); | 193 | substdio_put(&ssout,greeting.s,greeting.len); |
| 194 | } | 194 | } |
| 195 | void smtp_help() | 195 | void smtp_help(arg) char *arg; |
| 196 | { | 196 | { |
| 197 | out("214 qmail home page: http://pobox.com/~djb/qmail.html\r\n"); | 197 | out("214 qmail home page: http://pobox.com/~djb/qmail.html\r\n"); |
| 198 | } | 198 | } |
| 199 | void smtp_quit() | 199 | void smtp_quit(arg) char *arg; |
| 200 | { | 200 | { |
| 201 | smtp_greet("221 "); out("\r\n"); flush(); _exit(0); | 201 | smtp_greet("221 "); out("\r\n"); flush(); _exit(0); |
| 202 | } | 202 | } |
| @@ -604,7 +604,7 @@ void smtp_ehlo(arg) char *arg; | |||
| 604 | seenmail = 0; dohelo(arg); | 604 | seenmail = 0; dohelo(arg); |
| 605 | if (bhelook) flagbarfbhelo = bmcheck(BMCHECK_BHELO); | 605 | if (bhelook) flagbarfbhelo = bmcheck(BMCHECK_BHELO); |
| 606 | } | 606 | } |
| 607 | void smtp_rset() | 607 | void smtp_rset(arg) char *arg; |
| 608 | { | 608 | { |
| 609 | spp_rset(); | 609 | spp_rset(); |
| 610 | seenmail = 0; | 610 | seenmail = 0; |
| @@ -809,7 +809,7 @@ void acceptmessage(qp) unsigned long qp; | |||
| 809 | out("\r\n"); | 809 | out("\r\n"); |
| 810 | } | 810 | } |
| 811 | 811 | ||
| 812 | void smtp_data() { | 812 | void smtp_data(arg) char *arg; { |
| 813 | int hops; | 813 | int hops; |
| 814 | unsigned long qp; | 814 | unsigned long qp; |
| 815 | char *qqx; | 815 | char *qqx; |
