🇩🇪 Deutsch 🇬🇧 English

29 Mar 2010

Debugging sendmail

Debug your Sendmail-Configuration with one single command


  • command
# (echo subject:test; echo) | sendmail -Am -v -d60.5 -- test@example.com
  • one expected example output
 map_lookup(dequote, root, %0=root) => NOT FOUND (0) map_lookup(host,
 example.com, %0=example.com) => example.com. (0) test@example.com...
   Connecting to mail.domain.invalid via esmtp... 220 mail.domain.invalid
 ESMTP Postfix (Debian/GNU) >>> EHLO balearen.x-tra-designs.org
 250-mail.domain.invalid 250-PIPELINING 250-SIZE 10240000 250-ETRN
 250-STARTTLS 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN
 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN >>> STARTTLS 220 2.0.0
   Ready to start TLS >>> EHLO balearen.x-tra-designs.org
 250-mail.domain.invalid 250-PIPELINING 250-SIZE 10240000 250-ETRN
 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES
 250-8BITMIME 250 DSN >>> MAIL From: SIZE=14 250 2.1.0 Ok >>> RCPT To:
 >>> DATA 250 2.1.5 Ok 354 End data with . >>> . 250 2.0.0 Ok: queued
 as 80F0C50C249 test@example.com... Sent (Ok: queued as 80F0C50C249)
 Closing connection to mail.domain.invalid. >>> QUIT