- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 01:09 AM
11-19-2004 01:09 AM
sendmail script
this script used to work but now it get this error.
Though SAM I can send out to my gmail account so the relay is working is this my script.
#!/bin/ksh
# This script takes a list of patch ids and sends an e-mail to sos to
# retrieve the documentation. EXPL does not automate this piece of the
# patch process.
#
# 10/2/02 - Created. jso
#
for PATCH in $(cat /datatel/development/CDEV17.471/INSTALL/SAVEDLISTS/PATCHES000)
do
echo "Sending $PATCH ..."
/usr/sbin/sendmail -v -fgvaldez@alvincollege.edu sos@datatel.com <
EOM
sleep 5
done
exit
Sending C04384-48_ST_17014_U ...
WARNING: Group writable directory /var/spool
sos@datatel.com... Connecting to network3.alvincollege.edu. via relay...
220 network3.alvincollege.edu SMTP service ready
>>> EHLO hp2.alvincollege.edu
500 Syntax error, command unrecognized
>>> HELO hp2.alvincollege.edu
250 Requested mail action okay, completed.
>>> MAIL From:
250 Requested mail action okay, completed.
>>> RCPT To:
250 Requested mail action okay, completed.
>>> DATA
354 Start mail input; end with
>>> .
451 Requested action aborted: local error in processing
sos@datatel.com... Deferred: 451 Requested action aborted: local error in processing
Closing connection to network3.alvincollege.edu.
>>> QUIT
221 network3.alvincollege.edu closing transmission channel
anything would be great
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 01:17 AM
11-19-2004 01:17 AM
Re: sendmail script
it says that /var/spool is world writable; this directory should have the permissions
drwxr-xr-x
but check also the permissions of /etc itself - should be:
dr-xr-xr-x
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 01:27 AM
11-19-2004 01:27 AM
Re: sendmail script
sos@datatel.com... Connecting to network3.alvincollege.edu. via relay...
220 network3.alvincollege.edu SMTP service ready
>>> EHLO hp2.alvincollege.edu
500 Syntax error, command unrecognized
>>> HELO hp2.alvincollege.edu
250 Requested mail action okay, completed.
>>> MAIL From:
250 Requested mail action okay, completed.
>>> RCPT To:
250 Requested mail action okay, completed.
>>> DATA
354 Start mail input; end with
>>> .
451 Requested action aborted: local error in processing
sos@datatel.com... Deferred: 451 Requested action aborted: local error in processing
Closing connection to network3.alvincollege.edu.
>>> QUIT
221 network3.alvincollege.edu closing transmission channel
Ok that takes care of one error what about the 451 aborted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 01:49 AM
11-19-2004 01:49 AM
Re: sendmail script
sendmail -v -d0 -d1 -d0.4 -d1.5 -d2 -d6 -d6.5 -d10 -d11 -d30 -d45 valid_address@valid.domain /tmp/maildebug.log 2>&1
(substitute a real e-mail address and put a test message in /tmp/testmail)
and then look in /tmp/maildebug.log for errors from sendmail.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 01:49 AM
11-19-2004 01:49 AM
Re: sendmail script
If so, the forwarding server must explicitly allow relay from the hp server.
mailq
Outbound mail queing up
sendmail -v -q
try and process the queue verbose to get better diagnostics.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2004 02:23 AM
11-19-2004 02:23 AM
Re: sendmail script
it could still be permission problems in affected directories. Check in /var/spool/mqueue and /etc/mail
regards,
John K.