Sendmail gethostbyname problem

Recently I stumpled upon an nifty problem with sendmail on an Debian Etch system. Everytime sendmailconfig runs I got this error:

WARNING: local host name (;; connection timed out; no servers could be reached) is not qualified; see cf/README: WHO AM I?

Furthermore the smtp banner looked quite damaged:

220 ;; ESMTP connection timed out; no servers could be reached Sendmail 8.13.8/8.13.8/Debian-3; Sat, 16 Jun 2007 16:38:30 +0200; (No UCE/UBE) logging access from: horatio.aumund.org(OK)-horatio.aumund.org [85.214.67.194]
quit
221 2.0.0 ;; connection timed out; no servers could be reached closing connection

After some research this Ubuntu bug shows up leading to the solution. Simply edit /etc/mail/m4/dialup.m4:

# Make sure we accept mail as this ip (for bounces, etc)
Cw85.214.67.194
#
# Define our true hostname (from our ISP) - becomes $j
define(`confDOMAIN_NAME', `$w.aumund.org')dnl
#
# Make sure we accept mail as this name (for bounces, etc)
Cwaumund.org
#
# Add our hostname to class G for genericstable support
CGhoratio.aumund.org

Do I have to mention that you have to put your own data (e.g. ip, host- and domainname) in the example above?

Verwandte Artikel

  • No Related Post
Leave a comment

3 Comments.

  1. Wer noch immer das boese Monster sendmail nutzt, ist ansich auch selbst schuld ;-)

  2. Was ist an Sendmail monströs?

  3. Magnar Hirschberger

    /etc/mail/dialup.m4 wird nicht benötigt. Schwamm drüber oder einfach ein dnl davor. Nichts geht über eine eigene sendmail.mc … Das Upgrade sollte eine eigene Konfig achten und nicht drüber bügeln.