Original Question:
| I'm just configuring sendmail 8.6.12 but I have problems
| with procmail users. The error is:
|
| /home/nas/.forward: line 1: forwarding to "|IFS=' '; exec
/usr/local/bin/procmail #nas"
| /home/nas/.forward: line 1: "|IFS=' '; exec /usr/local/bin/procmail #nas"...
User nas(_at_)usb(_dot_)ve doesn't have a valid shell for mailing to programs
-------------------------------------------------------------------------------
Answer:
That "usually" means that the shell specified for the user in /etc/passwd is
not named in /etc/shells.
But there is a subtle point. If you are using NIS and you use a line
as:
+:*:0:0:::/bin/false
to prevent the users get access to the server via telnet, rsh, etc.
and /bin/false is not in /etc/shells the problem above metioned arise.
One posible solution is add a line in /etc/passwd for the user that
have procmail as a filter as:
+nas:*:0:0::: or +nas:*:0:0:::<valid shell>
But if you have more users is better create a netgroup "procuser"
and add the following line to /etc/passwd:
+(_at_)procuser:*:0:0:::
Another solution and you don't have to modify /etc/passwd is add
/bin/false to /etc/shells. (But is secure?)
If somebody find a better solution ... I'll apreciate it.
-------------------------------------------------------------------------------
Thanx for the fast response to:
dattier(_at_)wwa(_dot_)com (David W. Tamkin)
csdayton(_at_)woodlawn(_dot_)uchicago(_dot_)edu (Soren Dayton)
howardm(_at_)lsil(_dot_)com (Howard Moftich)
rick(_at_)helix(_dot_)nih(_dot_)gov (Rick Troxel)
alansz(_at_)mellers1(_dot_)psych(_dot_)berkeley(_dot_)edu (Alan Schwartz)
-------------------------------------------------------------------------------
timoto(_at_)usb(_dot_)ve
Alexander A. Rami'rez M.
Laboratorio de Computacio'n
Univesidad Simon Bolivar (USB)
Edo.Miranda/Venezuela