Cron mail is not delivered, but can from command line

Hello, I have a strange problem with cron and sendmail that I cannot understand.
On my Solaris hosts, running Solaris 9 and 10, I have setup sendmail to masquerade to a Solaris zone acting as a mail relay.
This works fine, I can send mail from the command line using, for example:
# /usr/bin/cat somefile | /usr/bin/mailx -s "test message" usernameAs I said, on all hosts, this works fine.
When I add the above command to a cron job, to email me a log for example, the mail is not deliverable and comes back to me (an alias as root).
Is this a mailx/cron thing or am I missing something??
I have copied the sendmail.cf file from a working machine to one of the ones with a problem and still the same problem exists.
My config file (relay.mc) for sendmail is as follows on each host that attempts to use the relay:
divert(-1)
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#       The Regents of the University of California.  All rights reserved.
# Copyright (c) 1997-2000
#       Sun Microsystems, Inc.  All rights reserved.
# ident "@(#)subsidiary.mc      1.10    00/12/14 SMI"
#  This is a configuration file for SunOS 5.8 (a.k.a. Solaris 8) and later
#  subsidiary machines.  It has support for local and SMTP mail.  The
#  SMART_HOST macro is enabled, which means that messages will be sent to
#  the SMART_HOST, which is set to mailhost.$m ($m is the local domain).
#  A short-cut rule is also defined, which says if the recipient host is
#  in the local domain, send to it directly instead of the smart host.
#  Note: if you do not need a smart host; i.e., you are in an environment
#  where MX records are properly defined, then you should not be using
#  this subsidiary config file; use main instead.
#  If you want to customize this further, copy it to a name appropriate
#  for your environment and do the modifications there.
divert(0)dnl
VERSIONID(`@(#)subsidiary.mc    1.10 (Sun) 12/14/00')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`SMART_HOST', `mailhost$?m.$m$.')
FEATURE(`masquerade_envelope')
MASQUERADE_AS(`domain.com')
MAILER(`local')dnl
MAILER(`smtp')dnl
define(`MAIL_HUB', `mailhost.domain.com')
define(`SMART_HOST', `mailhost.domain.com')
LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*    $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3Any advice would be greatly appreciated
Thank you!

What's the mail error you get? Any meaningful or pertinent output in system/mail logs?

Similar Messages

  • I can not uninstall Office 2013 from command line

    Hi, I have been stuck for a while trying to uninstall Office 2013 via command line. Installation file was downloaded from Volume Licensing Service Center, Uninstall.xml file for silent uninstallation looks like this:
    <Configuration Product=”ProPlus”>
    <Display Level=”basic” CompletionNotice=”yes” SuppressModal=”yes” AcceptEula=”yes” />
    </Configuration>
    From command line the following will not work:
    setup /uninstall ProPlus /config .\ProPlus.ww\Uninstall.xml
    Error: Setup can not find or validate an installation file. Please try reinstalling Office . . .
    setup /uninstall ProPlus gives me GUI to continue process - it seems /config .\ProPlus.ww\Uninstall.xml part does not work as it should be
    This is very important to me since I used above command line in SCCM 2012 R2 to allow user to uninstall Office 2013 by itself via Software Center. When this failed I tried locally but the error was the same. This should have been trivial task - silent uninstallation
    using .xml file. It is not a rocket science. I am very angry because losing time for something like this is unacceptable for system engineers working with SCCM 2012 R2.

    Hi,
    This error might occurs due to lots of reasons. Where is the installation file stored? If it's stored on a network share, please copy it to your local disk, and then manually run the command again. This way, we'll see if the installation file is the
    problem.
    If issue persists in this case, then this generally means that something wrong with the installation file. Please try to redownload it and then try again.
    Please also make sure that you're executing the command with elevated privileges (run as administrator).
    Regards,
    Ethan Hua
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Safari and mail will not load but i am connected to internet and can download form itunes and other sourses is that HD failure?

    Safari and mail will not load but i am connected to internet and can download form itunes and other sourses is that HD failure?  any suggestions ?  verify disk says its OK

    iOS 4: Updating your device to iOS 5 or later - Support - Apple
    iOS: Unable to update or restore - Support - Apple
    iTunes for Windows: iTunes Store connection troubleshooting
    See if any of these three may help.

  • How can I transfer all my downloaded music from my I phone to my computer, even music that is not purchased but is from CDs

    How can I transfer all my downloaded music from my I phone to my computer, even music that is not purchased but is from CDs

    There's some third party applications available for recovering content off an iPod, iPhone or iPad. The following article is pretty old (2008) so it would be best to reality-check the capabilities and availability of the various listed items prior to opting for a particular product:
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/P2

  • HT1296 Can i sync my ip4s on to a new pc and not lose music that was not purchased but imported from cd or will it only sync purchased music?

    can i sync my iphone to a new pc without losing music that was not purchased but imported from cd? or will it only sync purchased music? thanks x

    If you're trying to sync your iphone to a different computer than the one that you used to import your CD's, you can't (anymore).  Now that Apple is selling iTunes Match ($25/yr) you can only access non-iTunes-purchased songs if they are either:
    A) on the exact computer that you used to import them into iTunes
    or
    B) are already synced to your iphone
    Now that iTunes Match exists, if you want to move non-iTunes-purchased music that you imported on one computer...to a different computer, you have to buy iTunes Match.  Awesome, huh?

  • I can't access shared Photo Streams from my Mac but can from iPhone/iPad. I can access my Photo Stream but not the shared ones.

    I can't access shared Photo Streams from my Macbook but can from iPhone/Ipad. I can access my Photo Stream but I can't figure out how to share.

    I can't access shared Photo Streams from my Macbook but can from iPhone/Ipad. I can access my Photo Stream but I can't figure out how to share.

  • I just installed a new Lynksys router and now can not print from iPad but can from iPhone

    i just install a new Lynksys router now i can't print from iPad but can from iPhone.  with iPad can't find printer.  if i reinstall printer on the router it will print 1-3 times then can't find printer but i can print from iPhone

    What model, version Linksys router? Is the firmware up-to-date?
    What iOS levels are you running on iPad, iPhone?
    What make, model printer are you using? Is the firmware up-to-date?

  • IPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.

    iPhone 4s Voice mail notification not working after switching from Verizon to PagePlus.  How can I get the notifications working?

    Contact your carrier - voicemail, and visual voicemail, is a carrier feature.

  • Can't open cr2 files from my 5D but can from my 20D

    i just got a new computer (windows vista) and on my old computer i could open cr2 files from both my 20d and my 5d just fine. but now on my new computer i can't open the cr2 raw files from the 5d but can from the 20d. I have photoshop cs2. I am not planning to upgrated to cs3 anytimes soon, do I just need to install a plug in? Please help.

    Kristen,
    No, no, no. The DNG Converter is a stand-alone executable program. You can even put it on your desktop. You would need it only if your camera model is NOT supported by ACR 3.7, which is the latest version you can use with Photoshop CS2.
    In that case, you would use the DNG Converter to convert your raw images to DNG files first and then opening the DNG files in ACR 3.7.
    Now, the ACR 3.7 plug-in has to be installed in the correrct location, which is where the old ACR plug-in resides. You will be replacing that old, obsolete ACR plug-in (while Photoshop is NOT running).
    [The default Photoshop installation comes with and installs that obsolete ACR plug-in.]
    Read the instructions on the download page very carefully, and refer to the FAQs of this forum on the same page where you added this topic.

  • Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT

    Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT and other MS office apps. Reinslalled Adobe, updated Office, and Adobe no help! Also I can create a pdf from the MS Word and it is using the Adobe 9. So one would think that's good. No it isn't when you need to combine different files to one big PDF document. Any suggetions? Thank you

    Yes, I’m saying that I can in WORD use “Save As ADOBE pdf” but cannot in ADOBE create a pdf file from a WORD (.doc or .docx) document. While I can from other MS Office apps like Excel and PowerPoint.
    I understand I can use “work around” and save doc in WORD as pdf then compile all files needed (xml, ppt, pdf) in the ADOBE v9. to one big pdf document. But that is not the point of this post.  
    Jarda @ PC+NET Solutions
    Mobile 613-532-7023
    Office  613-385-1268
    <http://www.pcplusnet.net/> www.pcplusnet.net

  • I have a iphone 6 wont take all calls says mail box not setup but is set up help please

    i have a i phone 6 wont take all calls says mail box not setup but is set up help please

    Hello ram tough,
    Thanks for the question. After reviewing your post, it sounds like the iPhone is not receiving some calls. Are you having trouble with visual voicemail? I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    If you can't make or receive calls on your iPhone - Apple Support
    Get help with visual voicemail on your iPhone - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Query runs from command line, but not from scheduler

    We use Control-M to schedule shell scripts to be run on a Solaris server. Some of the scripts have to access an Oracle database and in that case our security team will include the DB user and password in the script, then encrypt it and the sys admin team schedules the encrypted shell script with Control-M. That works fine, but we've been trying to have the DB user and password on a separate encrypted file so that we don't have to ask for file encryption every time it's necessary to modify a script (this is a test environment).
    We have the script at ~/system_name/scripts, the query at ~/system_name/sql and the encrypted file and key at ~/system_name/keys. The SQLPlus call in the script is:
    ${ORACLE_HOME}/bin/sqlplus "`decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system`"@instance_name <<EOF
    @${DIR_SQL}/TEST_QUERY.SQL
    quit
    EOF
    The security analyst has tested is successfully from command line, but when we schedule it with Control-M the job abends and we get the following in the sysout:
    + decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system
    decrypt: cannot open ./../keys/key.3des.system
    decrypt: invalid key.
    + /u00/app/oracle/product/11.1.0/db_1/bin/sqlplus @instance_name
    + 0<<
    @/sistemas/hmp/system_name/sql/TEST_QUERY.SQL
    quit
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 3 09:41:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SP2-0310: unable to open file "instance_name.sql"
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0000000080
    Any ideas?

    Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
    It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
    Is the database on the same server as the script?
    If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
    Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
    Edited by: LindaA on 05-May-2010 07:43

  • I upgrade to Lion and now my Mail does not open, who can help me out?!

    I upgrade to Lion and now my Mail does not open, who can help me out?!

    I cannot get to the mail menu bar.  When I try to open mail, I get "you can't use this version of mail with this version of Mac OS X.  But the help suggestions don't work either.  I am trying to download an update combo v1.1 to see if that helps. Thanks

  • My visual voice mail does not work,but I have properly set it up, how do I fix this?

    My visual voice mail does not work,but I have properly set it up, how do I fix this?

    Visual Voicemail is all carrier side, funny enough. Apple can't really do anything to troubleshoot it because it's outside of their realm. Be sure to contact your cellular carrier for further assistance

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

Maybe you are looking for

  • Can anyone tell me my problems here?

    It's another situation of a macbook pro (maybe old?) being crippled after yosemites. It was fine in mavericks and I was happy as a clam. But now the dark days have time and I'm twisting in woe. I can't buy spare parts for a new HD or additional RAM (

  • Net8 protocol error

    I'm currently upgrading from Weblogic 8.1 to Weblogic 9.1 on a Windows environment (Windows XP on my dev box) with an Oracle 8.1.6 database. During the upgrade, we switched from BEA's Oracle OCI driver ( weblogic.jdbc.oci.Driver ) in Weblogic 8.1 to

  • Integrate Oracle Financial (GL) or Oracle Invoice applications using SAP PI

    Hi All, I need to Integrate Oracle Financial applications (Debit GL), Oracle Invoice applications  using SAP PI . Please let me know for the same. Thanks

  • Change datatype

    I changed the data type of column of a table, but the data model of the report keeps the previous data type of the column. How can change it to the new data type ?

  • JDK1.3 on Weblogic 8.1sp4

    Hi I want to use both JRockit & JDK1.3 in my application which is hosted on WLS 8.1sp4.I tried changing startweblogic.cmd file,but the message complains that JVM cannot be created. I just want to confirm if I can use jdk1.3 on wls8.1 I tried by chang