> Is it possible to configure sendmail to send directly to certain (local)
> domains and queue all the rest until forced to send with -q?
> I know that if I remove the "expensive" configuration it will try to send
> all the time and queue those that cannot be sent, but I think I will end
> up having my /var/log/mail filled up with DNS warnings...
> So, is there any other way to do it "better"? Thank you.
You can use mailertable + http://www.sendmail.org/faq/section4.html#4.12
In short:
make only relay mailer expensive, honor expensive flag and
use mailertable to select not expensive mailer for some domains
mailertable:
# default route via "expensive" mailer
. relay:[aaa.bbb.ccc.ddd]
# route for
my.dom1 esmtp:%0
my.dom2 esmtp:%0
URL(s):
http://www.sendmail.org/faq/section4.html#4.12
Subject: Q4.12 -- How can I batch remote mail to be sent using my ISP while
delivering
local mail immediately?
Date: October 14, 1997
Updated: February 9, 1999
http://www.sendmail.org/m4/mailertables.html
Using Mailertables
--
Andrzej (Andrew) A. Filip - Warsaw, Poland | http://bigfoot.com/~anfi
Postings: http://deja.com/profile.xp?author=Andrzej%20Filip