sendmail: queue some, send some.... how?

sendmail: queue some, send some.... how?

Post by Julio C. Gutierre » Thu, 02 Mar 2000 04:00:00



Hi,

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.

--
Julio C. Gutierrez -- Please remove both X to send email
Penguins live only in cool environments... ;)

 
 
 

sendmail: queue some, send some.... how?

Post by Andrzej Fili » Fri, 03 Mar 2000 04:00:00



> 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

 
 
 

1. sendmail won't send mail in it's queue

I have 2 mail messages stuck in the sendmail queue since 2 days ago.
I'm running sendmail-8.9.3-20 under RedHat 6.2.
I tried sendmail -q with no effect whatsoever.
No messages are generated in /var/log/maillog after sendmail -q.
I even restarted sendmail, with no effect, except
restart messages in maillog.
I'm not even sure why the mail got put there in the first place,
but I suspect it's related to size (only 0.25Gb and 1.5Gb).
I have not set any upper limit on message size.  Is there a default?
They are incoming messages waiting to be sent/forwarded to local users.

Any ideas how to deal with these 2 messages and prevent
such occurrences in future?

Many thanks,
TJ

  tjo.vcf
< 1K Download

2. Newbie question

3. sendmail queue delays (Sun sendmail, Solaris2.3, SS10)

4. Upgrading UW 2.1.2 to 2.1.3

5. recieve/send queue

6. vi editor FAQ (Frequently Asked Question List), Part 1/2

7. My forum sends email but it is all in the queue on the server?

8. Problems with Debian recognizing my ATI XPERT 128 video card

9. Sending printer commands through remote queues

10. Hardware Send and Recieve Queue sizes

11. Sending Queued mail with Qmail via an ISP

12. What Causes TCP Send Queue to Grow ("netstat" -an output)?

13. message queue (ipc) send error