From: davidst on
I set up sendmail on a Debian system a few months back and tested it
using my ordinary user account and everything worked just fine.
However, now I've started migrating accounts and files, I've gotten
some other users to log on to the server (a new Debian lenny server)
and if I try to send a test email to any other user it doesn't go into
the /var/spool/mail for them. I migrated the users by editing the
passwd, group and shadow files directly (using vipw).

The users can log in, but perhaps for some reason sendmail cannot
recognize them as valid users. Do I have to do something special to
make sendmail recognize the migrated users?

The only other thing I can think of is some strange permissions
problem, but I doubt that. I can't see any significant differences in
my account and everyone else's that would cause this. My user account
was the first created with the system so has a user id number and
group id number of 1000:1000 (for davidst:davidst) and is in the
groups dialout, cdrom, floppy, audio, video and plugdev.

Any ideas?
From: davidst on
I didn't think it would interfere (and I'm not sure it is), but I
should mention I just installed nmh, xemacs and exmh (and associated
packages) for a user called cbanks. Note that when I try to send mail
to this user I get different errors than when I send to others.

Nov 12 15:24:19 myserver sm-mta[7109]: nACJvtfY004222: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=01:26:24, xdelay=00:00:00, mailer=prog, pri=601566, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL
Nov 12 15:24:19 myserver sm-mta[7109]: nACK6DLU005797: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=01:18:06, xdelay=00:00:00, mailer=prog, pri=631586, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL
Nov 12 15:24:20 myserver sm-mta[7109]: nACJcpNC008476: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=01:45:29, xdelay=00:00:00, mailer=prog, pri=750748, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL
Nov 12 15:24:20 myserver sm-mta[7109]: nACJWIEG008419: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=01:52:02, xdelay=00:00:00, mailer=prog, pri=750784, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL
Nov 12 15:24:20 myserver sm-mta[7109]: nACJj5Ye008529: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=01:39:15, xdelay=00:00:00, mailer=prog, pri=751650, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL
Nov 12 15:24:20 myserver sm-mta[7107]: nACLOKpV007107:
from=<davidst(a)oldserver.lsu.edu>, size=1345, class=0, nrcpts=1,
msgid=<00cb01ca63de$6fb5dec0$37e02782(a)lsu.edu>, proto=ESMTP,
daemon=MTA, relay=gate012.ocs.lsu.edu [130.39.184.214]
Nov 12 15:24:20 myserver sm-mta[7109]: nACJU9GG008360: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=01:54:11, xdelay=00:00:00, mailer=prog, pri=841212, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL
Nov 12 15:24:20 myserver sm-mta[7118]: nACLOKpV007107: to="| /home/
cbanks/bin/slocal", ctladdr=<cbanks(a)myserver.lsu.edu> (254/70),
delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=31549, dsn=4.0.0,
stat=Deferred: prog mailer (/bin/sh) exited with EX_TEMPFAIL



This is the successful mail to a new user added via useradd called
ztest:

Nov 12 15:00:58 myserver sm-mta[6056]: nACL0vBE006054:
to=<ztest(a)myserver.lsu.edu>, delay=00:00:01, xdelay=00:00:01,
mailer=local, pri=61559, dsn=2.0.0, stat=Sent



And here an unsuccessful email to existing user called zshen1 who has
not logged on to the new server yet and who doesn't use mh:

Nov 12 14:00:41 myserver sm-mta[4755]: nACK0dwq004752:
to=zshen1(a)lsu.edu, delay=00:00:02, xdelay=00:00:02, mailer=esmtp,
pri=32739, relay=mx1.lsu.edu.gslb.pphosted.com. [67.231.144.37],
dsn=2.0.0, stat=Sent (nACK34Du005686 Message accepted for delivery)

Nov 12 14:01:44 myserver sendmail[4780]: nACK1ijp004780:
Authentication-Warning: myserver.lsu.edu: zshen1 owned process doing -
bs

Nov 12 14:01:44 myserver sendmail[4780]: nACK1ijp004780: from=<>,
size=360, class=0, nrcpts=1, msgid=<alpine.DEB.
1.10.0911121401440.4777(a)myserver.lsu.edu>, proto=ESMTP,
relay=zshen1(a)localhost
From: davidst on
Oh, and I guess the main difference between the new users and the
migrated users is that the migrated users probably have a bunch of
configuration files in their home directories from the old server that
might be screwing with the mail system.

I'm going to try and temporarily move a home directory and see if the
mail goes through.
From: davidst on
Ok, that's verified. Moving a user's home directory allows the mail
to go through. So there is something in each users home directory
that I will have to change or delete to let the mail through. I just
need to figure out what.
From: davidst on
On Nov 12, 3:43 pm, davidst <davidst...(a)gmail.com> wrote:
> Ok, that's verified.  Moving a user's home directory allows the mail
> to go through.  So there is something in each users home directory
> that I will have to change or delete to let the mail through.  I just
> need to figure out what.

.... and it's called the ".forward" file *facepalm*

Ok, the user cbanks is still having a problem, but that's no doubt the
use of 'nmh' interfering with sendmail. How can nmh interfere with a
single user? Probably through a configuration file again much
like .forward.