1 PHP 5.4.4 (cli) (built: Nov 21 2016 03:25:49)
Copyright © 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2012 Zend Technologies
Build from the VERSION.ZOS file
Tool: php
Version: 5.4.4
Build Number: 0006
-
find / -name ‘sendmail’
/usr/lpp/tcpip/bin/sendmail
/usr/lpp/tcpip/samples/sendmail
/usr/lpp/tcpip/sbin/sendmail
/usr/sbin/sendmail symbolic link to /usr/lpp/tcpip/sbin/sendmail
/bin/sendmail symbolic link to /usr/lpp/tcpip/bin/sendmail
- I received the email. (Interesting about the configuration file)
echo “Subject: sendmail test” | sendmail -v your@mail.com
Msmtp: Warning: first argument in [IPC] mailer must be TCP or FILE
Mesmtp: Warning: first argument in [IPC] mailer must be TCP or FILE
Msmtp8: Warning: first argument in [IPC] mailer must be TCP or FILE
Mrelay: Warning: first argument in [IPC] mailer must be TCP or FILE
Warning: .cf file is out of date: sendmail 8.12.1p4 supports version 10, .cf file is version 7
your@mail.com… Connecting to smtp.server via esmtp…
220 mail2.server ESMTP Smtpd; Tue, 15 May 2018 07:37:02 -0700
EHLO test.mainframe
250-mail2.server Hello test.mainframe [xxx.xxx.xxx.xxx], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 71828480
250-DSN
250-AUTH LOGIN PLAIN
250-STARTTLS
250-DELIVERBY
250 HELP
MAIL From:me@test.mainframe
250 2.1.0 me@test.mainframe… Sender ok
RCPT To:your@mail.com
DATA
250 2.1.5 your@mail.com… Recipient ok
354 Enter mail, end with “.” on a line by itself
.
250 2.0.0 w4FEb29Q022974-w4FEb29R022974 Message accepted for delivery
your@mail.com… Sent (w4FEb29Q022974-w4FEb29R022974 Message accepted for delivery)
Closing connection to smtp.server.
QUIT
221 2.0.0 mail2.server closing connection
-
php -i | grep sendmail
sendmail_from => no value => no value
sendmail_path => /bin/sendmail -t -i => /bin/sendmail -t -i
Path to sendmail => /bin/sendmail -t -i
-
ls -la /bin/sendmail
lrwxrwxrwx 1 Root OMVSGRP 29 Mar 23 2016 /bin/sendmail -> …/usr/lpp/tcpip/bin/sendmail
ls -la /usr/lpp/tcpip/bin/sendmail
-rwsr-sr-x 2 Root OMVSGRP 2252800 Jan 10 2017 /usr/lpp/tcpip/bin/sendmail