- enable mail.debug in /etc/syslog.conf (look at the back of the file, it should be commented how to enable this and which log file you can use, make sure the log file is created)
- restart syslog daemon (refresh -s syslogd)
- restart sendmail daemon (startsrc -s sendmail)
- look at the log file as specified for mail.debug above.
Also I think you need to add some flags/parameters to the startsrc -s sendmail command.
Remember to turn off the mail.debug syslogd parameters and restart syslogd when you have found out and repaired the problem.
syslogd output the following info:
Jul 31 23:01:31 QC_P550_719 mail:crit sendmail[2122140]: My unqualified host name (QC_P550_719) unknown; sleeping for retry
Jul 31 23:02:00 QC_P550_719 mail:alert sendmail[2453880]: unable to qualify my own domain name (QC_P550_719) -- using short name
Jul 31 23:02:00 QC_P550_719 mail:info sendmail[2453880]: n6VF20EY2453880: from=daemon, size=1834, class=0, nrcpts=1, msgid=<200907311502.n6VF20EY2453880@QC_P550_719>, relay=daemon@localhost
Jul 31 23:02:00 QC_P550_719 mail:info sendmail[897238]: n6VF20EY2453880: to=wangguan, ctladdr=daemon (1/1), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=121834, dsn=2.0.0, stat=Sent
Jul 31 23:02:31 QC_P550_719 mail:alert sendmail[2122140]: unable to qualify my own domain name (QC_P550_719) -- using short name
By the way what flags should i added when using startsrc to start the sendmail daemon?
thx
just a reminder - you only need to be running sendmail if you are receiving mail to that server. For security purposes, if you are just sending mail, the sendmail process does not need to be running.
You don't mention if this ever worked, or you are trying to start sendmail for the first time? If it ever worked, what changed? If first time, and this is a new system, do you have dns working, resolv.conf, a default gateway or relay host, hostname in hosts file defined, and more.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.