tim@uunet.uu.net (Timothy J. Stone) (02/14/90)
I have an alias in my /etc/aliases which looks like mailprint:"|/usr/local/bin/printmail" and the prog is mode a+x. If I mail to mailprint locally all works fine but if someone outside mails in to ...mymachine!mailprint the sender receives in return ----- Transcript of session follows ----- getwd: can't stat . 554 "| /usr/local/bin/printmail"... unknown mailer error 1 I'd be very grateful if anyone could shed some light on this. I'm using the sendmail config file almost as shipped with SunOs 4.0.3 only modified to set relay mail etc. - no rules changed at all. Many thanks in advance. +---------------------------+ At work: | Tim Stone | UUCP: tim@warburg.COM | S.G. Warburg & Co., Inc. | Tel : (212) 459-7065 | 787 Seventh Avenue, | Fax : (212) 459-7231 | New York, NY 10019, U.S.A.| +---------------------------+
cs519905@caesar.cs.umn.edu (Aaron Y. T. Cheung) (02/19/90)
| .... If I mail to mailprint locally all works fine | but if someone outside mails in to ...mymachine!mailprint the sender | receives in return | | ----- Transcript of session follows ----- | getwd: can't stat . | 554 "| /usr/local/bin/printmail"... unknown mailer error 1 | | I'd be very grateful if anyone could shed some light on this. I'm using | the sendmail config file almost as shipped with SunOs 4.0.3 only modified | to set relay mail etc. - no rules changed at all. Many thanks in advance. Looks like it's related to the current working directory problem, that user daemon cannot search the working directory (probably that directory doesn't have search/read permission for others), or there's no working directory set. I'd suggest either try making the working directory world-searchable or, if there had not been a working directory set, try putting a cd command or a chdir() function to use the, say, /tmp dir. Hope it helps. Regards, /aaron.
ml@relay.eu.net (Marinko Laban) (02/20/90)
In article <5094@brazos.Rice.edu> you write: >X-Sun-Spots-Digest: Volume 9, Issue 47, message 6 > > ----- Transcript of session follows ----- > getwd: can't stat . > 554 "| /usr/local/bin/printmail"... unknown mailer error 1 It might be one of the following ... 1. Did you run newaliases when you added the line to aliases ? 2. If the location (/usr/local/bin) is a mounted file system/directory, then check the access rights of the directory on which it is mounted (777 should do the job) 3. If printmail is a shell-script, give read access to it for anybody. If all this doesn;t work, I don;t know anything else... Good Luck, greetings | Greetings, Marinko Laban | | E-mail to: hp4nl.nluug.nl!hp4nl!ktibv!ml |