Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sendmail: rewrite: map junk not found



I am not too sure what you are trying to do here, but in a typical
installation you just add the list of domains for which you are the most
preferred MX (that is, for which you do delivery) into the "w" class and
the domains for which you are a less-than-most preferred MX into the
"R" class.  Traditionally, the "w" class is loaded from "sendmail.cw" and
the "R" class is loaded from "sendmail.cR" although these are, like
everything else in Sendmail, totally configurable.  Debian does this:

$ grep '^F' /etc/mail/sendmail.cf
Fw /etc/mail/sendmail.cw
FR /etc/mail/sendmail.cR

Doing it with the "w" class means that mailbox names and aliases are all
mapped into the same flat space.  That is, "david" would mean the same
mailbox for any domain listed in the "w" class, which may or may not be
suitable in a particular situation.  If you want to deliver mail sent to
"david" in one domain to a different mailbox than mail to "david" in a
different domain, then you want to use the "virtusertable" map facility,
and the technique is to translate them into distinct local users.

More to the point, however, you should not really be messing around inside
"sendmail.cf" unless you are a wizard or a psycho.  Officially, you are
supposed to configure Sendmail using the "sendmail.mc" file, which is a
set of instructions that are to be run through the m4 compiler in order to
generate the "sendmail.cf" file automatically.

As for "map xxxx not found," if you configure "sendmail.cf" to look for a
map file, then you probably need to generate that map file by using the
"makemap" tool which comes with Sendmail.  The basic syntax (with the
directories appropriate for a Debian system, not a Red Hat system) is:

/usr/sbin/makemap hash /etc/mail/sendmail.Kxxxx < /etc/mail/sendmail.Kxxxx

This example would produce file "/etc/mail/sendmail.Kxxxx.db" which would
be loaded from lines beginning with "K" in "sendmail.cf" like this:

$ grep '^K' /etc/mail/sendmail.cf
Kvirtuser hash /etc/mail/sendmail.Kvirtusertable
Krewritesender hash -o /etc/mail/sendmail.Krewritesender
Krewriterecipient hash -o /etc/mail/sendmail.Krewriterecipient

Note that the "-o" switch can be used in "sendmail.cf" to tell Sendmail
not to fail out with an error if the map is not found on disk, but rather
to continue on with the database in question regarded as empty.

-- Mike


On 2000-12-03 at 18:27 -0500, David Kramer wrote:

> I am getting the following errors in /var/log/maillog:
> Dec  3 14:21:23 kramer sendmail[31849]: NOQUEUE: SYSERR(root): rewrite:
> map junk not found
> 
> Dec  3 14:21:23 kramer sendmail[31849]: NOQUEUE: Null connection from
> host232.netwhistle.com [63.86.65.232] (may be forged)
> 
> I recently bought a domain name, and was trying to get sendmail to accept
> both @kramer.ne.mediaone.net (the address given to me by Mediaone AKA
> AT&T) and thekramers.net (the domain I just bought from register.com).
> Since my grasp of sendmail.cf is not as strong as it could be, I stupidly
> tried using linuxconf to set it up (this is a RedHat 6.1 system).
> Disaster ensued, and my sendmail.cf was almost completely different.
> Luckily, I had a backup, but now I'm not so sure all is well.
> 
>   Thanks.
> 
> PS- JABR or Jerry- can you set up the discuss list so I can also post from
> david at thekramers.net?  Thanks.






-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org