Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX 5.2 sendmail inoperative

Status
Not open for further replies.

jaytco

Vendor
Dec 13, 2001
88
US
I am receiving the following error when sendmail is used. When I unset the TZ variable, the second error goes away. I get this same error no matter how I call sendmail. I have copied known good sendmail.cf files with the same error.
Is this a sendmail compile issue?

Code:
# echo "bob" | sendmail -v test@test.com
setuserenv: putenv(AGENT=sendmail) failed: A file or directory in the path name does not exist.
setuserenv: putenv(TZ=MST7MDT) failed: A system call received a parameter that is not valid.

# lssrc -s sendmail
Subsystem         Group            PID          Status
 sendmail         mail                          inoperative
 
try this command : startsrc -s sendmail -a "-bd -q30m"
just copy to your terminal and enter.

hope it helpful!
 
The command appears to work, but checking the pid it does not. Also tried to send an email and failed with the same error. FYI I do not need to receive email on this server, only send.

Code:
[root]@LabSAFE1[/]#  startsrc -s sendmail -a "-bd -q30m"
0513-059 The sendmail Subsystem has been started. Subsystem PID is 8880.
[root]@LabSAFE1[/]#  echo $?
0
[root]@LabSAFE1[/]#  ps -ef | grep 8880
    root 11160 13078   1 08:47:53  pts/0  0:00 grep 8880
[root]@LabSAFE1[/]#  setuserenv: putenv(AGENT=sendmail) failed: A file or directory in the path name does not exist.
setuserenv: putenv(TZ=MST7MDT) failed: A system call received a parameter that is not valid.
 
If you are only sending email from a server you don't need to run sendmail as a daemon listening for incoming connections.
 
Correct. It looks like the mail, mailx still use sendmail as the MTA. Whenever any of the above commands are used I get the error. Hmmmm.
Code:
#  mail bob
Subject: helo
lo
Cc:
setuserenv: putenv(AGENT=sendmail) failed: A file or directory in the path name does not exist.
# setuserenv: putenv(TZ=MST7MDT) failed: A system call received a parameter that is not valid.

#
 
After a little more research it looks like it is only the root user that can not send email to include daemons running as root (ie syslogd). I can send email to root and have it forwarded to another user and that works fine. Only appears when iniated by root. Any ideas??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top