Up until now, I've never had any problems with qmail.  Recently I
upgraded one of my servers to SunOS 5.7 from SunOS 5.5.1.  After
upgrading, I restored my /var/qmail directory so the configuration
remained identical.  However, I'm now getting sporadic bounces when
mail is sent to certain users.  After much experimentation, I've found
that a message to a user will bounce if that user's home directory
isn't mounted.  We use Solaris automount to map user home directories
to /home/$USER as we always have.  If the user's home directory is
mounted, qmail will deliver the message fine, otherwise it will bounce
as if the user doesn't exist.  This never happened under SunOS 5.5.1
so I'm stumped.  I tried re-compiling and re-installing qmail-1.03,
but still have the same problem.

I'll illustrate all this with the example below:

First, I display the mounted filesystems, and as you can see, my home
directory is currently the only one which is mounted to /home/ since
I'm the only active user on the system.

Next, a test mail message sent to a user (melissa) who doesn't have a
mounted home directory bounces with a
"Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/" error.

Then, when I generate some activity in ~melissa, the automounter
automatically mounts /opt/home/melissa to /home/melissa.

Now, a test message is delivered to melissa fine.  Does anyone have
any ideas whats going on here?  This is obviously a serious problem
since now only active users can receive mail.


% df -k

Filesystem            kbytes    used   avail capacity  Mounted on
/proc                      0       0       0     0%    /proc
/dev/dsk/c0t0d0s0      47771   17825   25169    42%    /
/dev/dsk/c0t0d0s3     573469  401881  114242    78%    /usr
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t0d0s4      99719   13049   76699    15%    /var
/dev/dsk/c0t1d0s5    4122456 3708551  372681    91%    /opt
swap                  209060     296  208764     1%    /tmp
/opt/home/jason      4122456 3708551  372681    91%    /home/jason

% echo | mailx melissa

(from /var/log/syslog)
Jan 13 20:40:20 ashanti qmail: 916285220.211813 new msg 12077
Jan 13 20:40:20 ashanti qmail: 916285220.218114 info msg 12077: bytes 239 from 
<[EMAIL PROTECTED]> qp 13990 uid 100
Jan 13 20:40:20 ashanti qmail: 916285220.369440 starting delivery 2: msg 12077 to 
local [EMAIL PROTECTED]
Jan 13 20:40:20 ashanti qmail: 916285220.375240 status: local 1/10 remote 0/20
Jan 13 20:40:20 ashanti qmail: 916285220.595556 delivery 2: failure: 
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
Jan 13 20:40:20 ashanti qmail: 916285220.691293 status: local 0/10 remote 0/20
Jan 13 20:40:20 ashanti qmail: 916285220.913377 bounce msg 12077 qp 13993
Jan 13 20:40:20 ashanti qmail: 916285220.941029 end msg 12077
Jan 13 20:40:21 ashanti qmail: 916285221.045153 new msg 12078
Jan 13 20:40:21 ashanti qmail: 916285221.050957 info msg 12078: bytes 790 from <> qp 
13993 uid 65541
Jan 13 20:40:21 ashanti qmail: 916285221.189316 starting delivery 3: msg 12078 to 
local [EMAIL PROTECTED]
Jan 13 20:40:21 ashanti qmail: 916285221.194969 status: local 1/10 remote 0/20
Jan 13 20:40:21 ashanti qmail: 916285221.803234 delivery 3: success: did_0+0+1/
Jan 13 20:40:21 ashanti qmail: 916285221.848646 status: local 0/10 remote 0/20
Jan 13 20:40:21 ashanti qmail: 916285221.854051 end msg 12078

% cd ~melissa

% df -k

Filesystem            kbytes    used   avail capacity  Mounted on
/proc                      0       0       0     0%    /proc
/dev/dsk/c0t0d0s0      47771   17825   25169    42%    /
/dev/dsk/c0t0d0s3     573469  401881  114242    78%    /usr
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t0d0s4      99719   13049   76699    15%    /var
/dev/dsk/c0t1d0s5    4122456 3708552  372680    91%    /opt
swap                  208916     300  208616     1%    /tmp
/opt/home/jason      4122456 3708552  372680    91%    /home/jason
/opt/home/melissa    4122456 3708552  372680    91%    /home/melissa

% echo | mailx melissa

(from /var/log/syslog)
Jan 13 20:42:42 ashanti qmail: 916285362.131804 new msg 12077
Jan 13 20:42:42 ashanti qmail: 916285362.152632 info msg 12077: bytes 239 from 
<[EMAIL PROTECTED]> qp 14006 uid 100
Jan 13 20:42:42 ashanti qmail: 916285362.291941 starting delivery 4: msg 12077 to 
local [EMAIL PROTECTED]
Jan 13 20:42:42 ashanti qmail: 916285362.297536 status: local 1/10 remote 0/20
Jan 13 20:42:42 ashanti qmail: 916285362.622974 delivery 4: success: did_1+0+0/
Jan 13 20:42:42 ashanti qmail: 916285362.668396 status: local 0/10 remote 0/20
Jan 13 20:42:42 ashanti qmail: 916285362.676786 end msg 12077

--
[EMAIL PROTECTED]

Reply via email to