Few days back any mail related command ( mailx, mail ,mpack ) stopped working from one sudo id .
in the logs i get error as dsn=5.6.0, stat=Data format error
but this happens with only one sudo ID-sudo1@my_hostname
another id -sudo2 works fine with any of the mail command
sudo su sudo1
mailx -s "Test mail" someone@example < /tmp/test.file
/home/sudo1/dead.letter... Saved message in /home/sudo1/dead.letter
where from=sudo1@my_hostname
message fails to sent
sudo su sudo2
mailx -s "Test mail" someone@example < /tmp/test.file
where from=sudo2@my_hostname
message successfully sent and received.
Not getting why with one prefix it is sent and other fails ... ?
System ProgrammingEmail ServersUnix OS
Last Comment
lisha
8/22/2022 - Mon
Panagiotis Toumpaniaris
The mail server is on the same machine? Can you see in the logs (/var/log/mail*) if there are entries concerning this failure?
lisha
ASKER
yes they are on same machine ...
and i only found syslog ..in /var/log
cd /var/log
ls -l mail*
mail*: No such file or directory
Try running that command with "truss" instead of "strace"
lisha
ASKER
ran the command with both sudo1 and sudo2 id for mpack
truss mpack ...
but no diff in any thing between the both id...
russ -c mpack
An input file must be specified
mpack version 1.5
usage: mpack [-s subj] [-d file] [-m maxsize] [-c content-type] file address...
mpack [-s subj] [-d file] [-m maxsize] [-c content-type] -o file file
mpack [-s subj] [-d file] [-m maxsize] [-c content-type] -n groups file
hey .. i tried using truss to check with mpack ...
the only diff that came is ..
/home/suod1 => truss mpack -s "`date '+%m%d%y'` TEST MAIL" -d /tmp/test_mail_msg1.txt -m 6000000 /tmp/test_mail_attach1.csv "someone@example.com"
Manu(8:40:14 AM):execve("/usr/bin/mpack", 0xFFBFE794, 0xFFBFE7BC) argc = 9
/home/suod2 => truss mpack -s "`date '+%m%d%y'` TEST MAIL" -d /tmp/test_mail_msg1.txt -m 6000000 /tmp/test_mail_attach1.csv "someone@example.com"
execve("/usr/bin/mpack", 0xFFBFE794, 0xFFBFE7BC) argc = 9
Manu is one of the users present in the server .. but does not have the sudo access ...
Jan Bacher
This is not copy/paste?
lisha
ASKER
yeah ... was a copy paste error ... now i see the first diff comes here..
stat64("/usr/bin/mpack", 0xFFBFE258) = 0
stat64("/usr/SUNWspro/lib//libsocket.so.1", 0xFFBFD9B8) Err#2 ENOENT