[ILUG] That sendmail queuing thing again (Config files posted)

From: Conor Daly (conor.daly at domain met.ie)
Date: Mon 17 Jul 2000 - 19:20:56 IST


After much discussion and experimentation, I thought I had mutt sorted out.
I'm using a dial-on-demand internet connection and used Donncha's magic
sendmail configuration tool and all worked fine (until I tried mutt that
is!). There follows the sendmail.mc generated by Donncha's script after me
answering questions like "Do you want to queue your email" with "Oh yes
please!!"

Mail gets properly queued by most programs but when sending with mutt,
sendmail seems to do a DNS lookup on the target host even though the mail is
queued for later sending. I read the mail-queuing HOWTO and everything
mentioned there is in the sendmail.mc but it still seems to happen at times.
Could it be something like sendmail doing a lookup on "smtp.oceanfree.net"
once its TTL has expired in my DNS cache?

The only sendmail references in my mutt configuration are listed below. The
"sendmail_wait=-1" is supposed to return control to mutt without waiting for
sendmail to finish processing and no other sendmail stuff exists in
/etc/Muttrc or in ~/.muttrc

I've done the "m4 sendmail.mc > /etc/sendmail.cf" to build the config and
done "/etc/rc.d/init.d/sendmail restart" to reconfigure so I'm not
forgetting stuff like that or anything.

Any further ideas?

Thanks

Conor Daly

###### sendmail.mc ########

divert(-1)
include(`/usr/lib/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
VERSIONID(`Hobbiton.cod.ie nodns')
CwHobbiton.cod.ie localhost
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
FEATURE(always_add_domain)
FEATURE(use_cw_file)
###### First important bit #########

# This tells sendmail not to look up hostnames

FEATURE(nocanonify)

########
define(`confAUTO_REBUILD')
define(`confTO_QUEUEWARN', `')

FEATURE(relay_hosts_only)

define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')
FEATURE(`genericstable', `hash -o /etc/mail/genericstable.db')
###### Second important bit #########

# This tells sendmail not to try to connect to "expensive" mailers unless
processing the queue

define(`confCON_EXPENSIVE', `True')

# This tells sendmail to flag all SMTP mailers as "expensive"
define(SMTP_MAILER_FLAGS, e)
########

FEATURE(access_db, `hash -o /etc/mail/access.db')
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')
FEATURE(redirect)
MASQUERADE_AS(`oceanfree.net')
MASQUERADE_DOMAIN(`Hobbiton.cod.ie')
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
FEATURE(`local_procmail',`/usr/bin/procmail')
MAILER(local)
MAILER(smtp)
MAILER(procmail)
define(RELAY_HOST, smtp:smtp.oceanfree.net)
define(SMART_HOST, smtp:smtp.oceanfree.net)
define(RELAY_MAILER, TCP)
###### Third important bit #########

# This tells sendmail to accept domains without trying to resolve them

# This is needed for the queuing bit

FEATURE(`accept_unresolvable_domains')
#### end sendmail.mc ######

###### /etc/Muttrc ##########

# set sendmail="/usr/sbin/sendmail"

# set sendmail="/usr/sbin/sendmail -oem -oi"

set sendmail_wait=-1

#### end /etc/Muttrc #########

---
Conor Daly
-------------------------------------
General Forecast Division
Met Eireann
Glasnevin Hill
Dublin 9.
ph +353 1 8064255
fax +353 1 8064275
conor.daly at domain met.ie
-------------------------------------


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:53 GMT