Sendmail, virtual domains, and queueing

From: system PRIVILEGED account <root_at_quill1.webquill.com>
Date: Mon, 28 Jul 1997 16:39:45 -0400 (EDT)

I'm trying to set up mail spooling for a virtual domain that we host.
The user wants to be able to dial and retrieve the email for his domain
via smtp. I figured the following trick would work...

1. Set up dns records like this (his domain name is jagpartners.com) -
        jagpartners.com MX 10 jag.webquill.com ; << his dialin IP
        jagpartners.com MX 20 quill2.webquill.com ; << a mail exchanger
for queueing

2. add a new mailer to sendmail that has the expensive flag set, ie..

        Moffline, ..., F=...e, ...

3. add an entry to (and enable) the mailer table

        cat "jagpartners.com offline:jagpartners.com" >> /etc/mailertable
        /usr/sbin/makemap btree /etc/mailertable < /etc/mailertable

4. fix up some other stuff in sendmail.cf

        Kmailertable btree /etc/mailertable # not dbm
        O HoldExpensive=True # not False

5. If the user wants the queue dumped, he can use the etrn command, and
hopefully it sendmail will reprocess the queue for jagpartners.com and
send to the primary mail exchanger, which was his dialup host.


Ok. So I get all that squared away, and then I run sendmail in address
test mode on quill2 (/usr/sbin/sendmail -bt).
If I do /parse someaddress_at_jagpartners.com, I get the following...

---
# /usr/sbin/sendmail -bt^M
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> /parse someaddress_at_jagpartners.com
Cracked address = $g
Parsing envelope recipient address
rewrite: ruleset   3   input: someaddress _at_ jagpartners . com
rewrite: ruleset  96   input: someaddress < _at_ jagpartners . com >
rewrite: ruleset  96 returns: someaddress < _at_ jagpartners . com . >
rewrite: ruleset   3 returns: someaddress < _at_ jagpartners . com . >
rewrite: ruleset   0   input: someaddress < _at_ jagpartners . com . >
rewrite: ruleset 199   input: someaddress < _at_ jagpartners . com . >
rewrite: ruleset 199 returns: someaddress < _at_ jagpartners . com . >
rewrite: ruleset  98   input: someaddress < _at_ jagpartners . com . >
rewrite: ruleset  98 returns: someaddress < _at_ jagpartners . com . >
rewrite: ruleset 198   input: someaddress < _at_ jagpartners . com . >
rewrite: ruleset 198 returns: $# local $: someaddress
rewrite: ruleset   0 returns: $# local $: someaddress
rewrite: ruleset   2   input: someaddress
rewrite: ruleset   2 returns: someaddress
rewrite: ruleset  20   input: someaddress
rewrite: ruleset  20 returns: someaddress
rewrite: ruleset   4   input: someaddress
rewrite: ruleset   4 returns: someaddress
mailer local, user someaddress
> ^D
---
which shows that the mailer chosen for that address is local, and not 
offline.  Do you have any ideas?
_guy
Received on Mon Jul 28 1997 - 22:46:19 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT