I'm trying to set up sendmail and have hit a problem. I've currently
got a very simply sendmail.mc (just to get started show at the bottom
of this mail) but don't have DNS access. I'm trying to use a
SMART_HOST for relaying (internal) email from my linux box. I've
placed the SMART_HOST in my /etc/hosts file and mapped it to the
correct IP address. Now this has been working, but all of a sudden it
seemed to stop and when I look at the /var/log/maillog the mails seem
now to be all queued? Can't figure out whats wrong?
Any help would be great!
Many thanks,
Colin Ford.
===== MORE INFORMATION =====
Before a send used to look like (from maillog):
Mar 10 14:19:34 linux_cford sendmail[11068]: h2AEJYI11068:
from=apache, size=638, class=0, nrcpts=1,
msgid=<200303101419...@localhost.localdomain>,
relay=apache@localhost
Mar 10 14:19:42 linux_cford sendmail[11070]: h2AEJYI11068:
to=x...@thiscom.com, ctladdr=apache (48/48),
delay=00:00:08, xdelay=00:00:08, mailer=relay,
pri=30638, relay=the.domain.com. [10.24.0.27], dsn=2.0.0, stat=Sent
(OK)
now it just looks like (from maillog):
Mar 25 09:28:35 linux_cford sendmail[19200]: h2P9SZE19200:
from=apache, size=1108, class=0, nrcpts=0,
msgid=<200303250928...@localhost.gssl_ntdomain>,
relay=apache@localhost
Mar 25 09:28:35 linux_cford sendmail[19200]: h2P9SZE19200:
to=x...@thiscom.com, delay=00:00:00, mailer=relay,
pri=1108, dsn=4.4.3, stat=queued
this sendmail.mc file looks like:
divert(-1)
dnl This is the sendmail macro config file. If you make changes to
this file,
dnl you need the sendmail-cf rpm installed and then have to generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
FEATURE(`masquerade_envelope')dnl
define(`SMART_HOST',`the.domain.com')dnl
MAILER(smtp)dnl
Check the load average on your box (e.g. via 'uptime') - maybe it's
higher than
#O QueueLA=8
(commented-out default setting in sendmail.cf).
--Per Hedeland
p...@hedeland.org