qmail-1.0.1
linux-2.0.36
libc-5.4.33
gcc-2.7.2.1
binutils-2.8.1.0.18

I have .qmail-aliasname alias files in ~/alias. user alias has an
account, a home dir with the alias files in it, etc.

.qmail-postmaster, for example, has

&real_user@local_domain

.qmail-news, for another example, is exactly the same (same user, same
domain, same permissions, same separator character). Likewise for
.qmail-webmaster, .qmail-operator, blah, blah.

Dir permissions for ~alias are 0700, .qmail-aliasname files are 0644.

The odd thing is that mail to postmaster@local_domain is redirected
to the real_user mentioned in ~alias/.qmail-postmaster, but mail
to news@local_domain, operator@local_domain, webmaster@local_domain,
and apparently all of the rest of them bounce, despite having the
same redirect in those other .qmail-aliasname files.

My only guess is that it isn't looking there first for the redirect,
it's looking in /etc/aliases.cdb. The qmail-start line that starts
the daemon is

/path/to/qmail/bin/qmail-start '|fastforward -d /etc/aliases.cdb' \
   /path/to/cyclog /var/log/mail &

(that's exactly how it reads, in /etc/rc.inet2).

/etc/aliases has lines like

mailer-daemon: real_user
MAILER-DAEMON: real_user
Mailer-Daemon: real_user
postmaster: real_user
operator: real_user
webmaster: real_user

and so on.

So if it can find postmaster's redirect, whether it's using
~/alias/.qmail-postmaster or fastforward and /etc/aliases.cdb,
why can't it find webmaster's redirect (or news or operator or
any of the other half-dozen that I just tried). These aren't
real accounts, ie there is no user account on the machine called webmaster
for example, although that doesn't seem to make a difference.

(I noticed the problem when I started getting bounce messages
from root cron jobs, meaning it was failing to redirect root@local_domain
from cron to real_user@local_domain. This used to work. I put up
with no root mail for awhile, using qmsmac, then made a
~alias/.qmail-root file with &real_user@local_domain, messed around
with the directory permissions a little, and voila', mail to root got
redirected, and my mailbox stopped filling up with bounce messages from
cron. For a reason that is not apparent, it has reverted to previous
behavior.)

If none of the aliases got redirected, that would be reasonable, there
is something objectionable about the directory or file permissions
probably. But to have one alias get through and none of the others that
only differ in username without differing in how mail to that username
is handled in the config files is bizarre. postmaster is not the first
alias in aliases.cdb, it's like 3rd or 4th or something (ie fastforward is
not reading the first entry and failing to find any others).

Regards,

Clayton Weaver
<mailto:[EMAIL PROTECTED]>
(Seattle)

"Everybody's ignorant, just in different subjects."  Will Rogers


Reply via email to