sendmail hangs with errors after setting hostname
Rob
rob at roblytle.org
Wed Feb 22 14:11:15 PST 2006
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
More information about the freebsd-questions
mailing list