> Although this is a Sendmail question, people on this list have probably 
> configured it
> as I am trying to do.
> 
> I require sendmail to queue external mail (until the queue is run), and to
> deliver local mail immediately.
> 
> I have bought the Bat Book, but I am still having trouble.
> 
> I am aware of the 'Hold Expensive' & 'Deliver in Background' options, 
> but my problem stems
> when trying to queue external mail. I have suitable entries in my hosts 
> file for client machines.
> 

Configuring sendmail is not that difficult..... !?!

I herewith enclose my sendmail.mc (m4 source file) for your perusab.
The basic things you need to do, as you mentioned is to set the expensiv options to 
delay frowarding of messages until the queue is run.
The other thing you need to do is prevent sendmail from doing DNS lookups until 
delivery time. For this you need s /etc/service.switch file.

My sendmail.mc file reads:

-----
divert(-1)
include(`../m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')dnl
OSTYPE(`linux')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(local_procmail)dnl
MAILER(procmail)dnl
HACK(check_mail3,`hash -a@JUNK /etc/mail/deny')dnl
HACK(use_ip,`/etc/mail/ip_allow')dnl
HACK(use_names,`/etc/mail/name_allow')dnl
HACK(use_relayto,`/etc/mail/relay_allow')dnl
HACK(check_rcpt4)dnl
HACK(check_relay3)dnl
define(`SMART_HOST',smtp:pp3.shef.ac.uk)dnl
LOCAL_NET_CONFIG
R$* < @ $* . > $*       $#smtp $@ $2. $: $1 < @ $2. > $3
FEATURE(genericstable,`btree -o genericstable')dnl
FEATURE(virtusertable,`btree -o virtusertable')dnl
define(`confCON_EXPENSIVE',yes)dnl
define(`SMTP_MAILER_FLAGS',`e')dnl
MAILER(smtp)dnl
define(`confSERVICE_SWITCH_FILE',/etc/service.switch)dnl
define(`confUSERDB_SPEC',/etc/userdb.db)
------

My service.switch file reads:

---
passwd files nis
hosts files
---

Any more problems or if you need any more explanation about elements of the .mc file 
above, please give me a shout.

Pieter

-- 
Pieter Meiring
Medical Imaging
[EMAIL PROTECTED]
--



-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to