Date: Wed, 22 Feb 2006 18:41:34 -0600 From: Derek Ragona <derek@computinginnovations.com> To: Rob <rob@roblytle.org>, freebsd-questions@freebsd.org Subject: Re: sendmail hangs with errors after setting hostname Message-ID: <6.0.0.22.2.20060222183825.0262d630@mail.computinginnovations.com> In-Reply-To: <20060222141030.3f90e2e9.rob@roblytle.org> References: <20060222141030.3f90e2e9.rob@roblytle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I would suggest setting the hostname as a different address from localhost. There are multiple instances of sendmail that run, as your rc.conf file has them enabled. You can use a private non-routable IP for the hostname. Hope this helps. -Derek At 04:10 PM 2/22/2006, Rob wrote: >Hi, > >OK, I think that I now have my hostname set properly in rc.conf and /etc/hosts > >In rc.conf is the line hostname="xenon" > >In /etc/hosts there is one line: 127.0.0.1 localhost xenon > >Upon bootup I get the following error: > >"xenon sm-mta [1556]: My unqualified host name (localhost) unknown; >sleeping for retry" > >Then after it sleeps a bit I get more errors. Finally, I just hig ><ctrl-c> to kill it >and the boot process continues. > >I looked in the handbook in the Sendmail section and it referred to a file >in /etc/mail >called "local-host-names" and I put that file in with the line: "xenon" in >there, but with >the same results, so I am really not certain exactly what to do now. > >I put the Sendmail config part of rc.conf below. I just want localhost >based Sendmail. > >Thanks, > >Rob. > > >part of rc.conf: > >############################################################## >### Mail Transfer Agent (MTA) options ###################### >############################################################## > >mta_start_script="/etc/rc.sendmail" > # Script to start your chosen MTA, called by /etc/rc. ># Settings for /etc/rc.sendmail and /etc/rc.d/sendmail: >sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO). >sendmail_pidfile="/var/run/sendmail.pid" # sendmail pid file >sendmail_procname="/usr/sbin/sendmail" # sendmail process name >sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server) >sendmail_submit_enable="YES" # Start a localhost-only MTA for mail >submission >sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost" > # Flags for localhost-only MTA >sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO). >sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound >only) >sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO). >sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m" > # Flags for sendmail_msp_queue daemon. > > >-- > >----------------------- >http://www.roblytle.org >Rob Lytle Home Page >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20060222183825.0262d630>