mpaperno / spampd

SpamPD - Spam Proxy Daemon. A spam-filtering SMTP/LMTP proxy server using SpamAssassin in Perl. Since 2002.
GNU General Public License v3.0
34 stars 10 forks source link

about ehlo command #16

Closed fy138 closed 6 years ago

fy138 commented 7 years ago

my postfix server support TLS , when we send ehlo it will get 250-STARTTLS and spampd same a smtp-proxy , then postfix client connect to spampd use TLS but it not work , and massage still in queue waiting connect timeout

fy138 commented 7 years ago

i modify the code ,but not better ` # pass on whatever the relayhost said in response

$client->hear can handle multiline responses so no need to loop

   my $destresp = $client->hear;

if ($what =~ /^ehlo/i){ $smtp_server->ok("250-mail.xxxxx.com\r\n250-PIPELINING\r\n250-SIZE 26214400\r\n250-ETRN\r\n250-AUTH PLAIN LOGIN\r\n250-XFORWARD NAME ADDR PROTO HELO SOURCE PORT IDENT\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250 DSN") or die "Error in server->ok(client->hear): $!"; }else{ $smtp_server->ok($destresp) or die "Error in server->ok(client->hear): $!"; } `