Mailx

How to send mail from unix machine
this is my syntax
mailx -s "test" [email protected]
after typing the above command, Just it is blinking on the next screen whehter I have to press any key to send
any help would be highly appreciated

Girish Sharma wrote:
http://www.google.co.in/search?hl=en&q=mailx+in+linux&meta=&aq=f&oq=
Google will definatly give you answer.
Regards
Girish SharmaI totally agree here !!
Try also to understand the UNIX basics.
And maybe post these questions on LINUX forums ?
Success!!

Similar Messages

  • Zip file of 8 Mb size is not been recived when using mailx  in solaris 10

    Hi,
    I'm trying to send a zip file of 8 Mb using below cmd
    uuencode .zip .zip|mailx -s " zip " [email protected]
    But i dont recieve the file. but I get mails from that system(just to make sure that mailing works from that system).
    What could be the reason? Is there any other way to send mail with attached of 8mb .zip file?
    Please suggest
    Chaitanya

    >
    This forum is for Sun Messaging Server software only. If you are running Sun Messaging Server on the system in question what is the exact version (./imsimta version). If not I suggest you direct your question to the appropriate forum:
    http://forums.sun.com/forum.jspa?forumID=844
    I'm trying to send a zip file of 8 Mb using below cmd
    uuencode .zip .zip|mailx -s " zip " [email protected]
    But i dont recieve the file. but I get mails from that system(just to make sure that mailing works from that system).
    What could be the reason? Is there any other way to send mail with attached of 8mb .zip file?A uuencoded attachment is ~30% larger then the original file so if your MTA is rejecting emails > 10MB this would explain the behaviour you are seeing. Can you send a smaller attachment?
    Regards,
    Shane.

  • Mailx occasionally crashes with this output

    could not initiate SSL/TLS connection: error:00000000:lib(0):func(0):reason(0)
    *** Error in `mailx': double free or corruption (fasttop): 0x0000000000d593b0 ***
    ======= Backtrace: =========
    /usr/lib/libc.so.6(+0x71bad)[0x7fbe3b164bad]
    /usr/lib/libc.so.6(+0x770fe)[0x7fbe3b16a0fe]
    /usr/lib/libc.so.6(+0x778db)[0x7fbe3b16a8db]
    /usr/lib/libcrypto.so.1.0.0(CRYPTO_free+0x1d)[0x7fbe3b97f30d]
    mailx[0x43e8c0]
    mailx[0x44d1cd]
    mailx[0x4492fc]
    mailx[0x44997c]
    mailx[0x44c049]
    mailx[0x44c154]
    mailx[0x406fbc]
    /usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7fbe3b113790]
    mailx[0x407299]
    ======= Memory map: ========
    00400000-00473000 r-xp 00000000 08:02 2509800 /usr/bin/mail
    00672000-00673000 r--p 00072000 08:02 2509800 /usr/bin/mail
    00673000-00674000 rw-p 00073000 08:02 2509800 /usr/bin/mail
    00674000-00684000 rw-p 00000000 00:00 0
    00d10000-00d52000 rw-p 00000000 00:00 0 [heap]
    00d52000-00d76000 rw-p 00000000 00:00 0 [heap]
    7fbe38e3a000-7fbe38e50000 r-xp 00000000 08:02 2493899 /usr/lib/libgcc_s.so.1
    7fbe38e50000-7fbe3904f000 ---p 00016000 08:02 2493899 /usr/lib/libgcc_s.so.1
    7fbe3904f000-7fbe39050000 rw-p 00015000 08:02 2493899 /usr/lib/libgcc_s.so.1
    7fbe39050000-7fbe39054000 r-xp 00000000 08:02 2500861 /usr/lib/libattr.so.1.1.0
    7fbe39054000-7fbe39253000 ---p 00004000 08:02 2500861 /usr/lib/libattr.so.1.1.0
    7fbe39253000-7fbe39254000 r--p 00003000 08:02 2500861 /usr/lib/libattr.so.1.1.0
    7fbe39254000-7fbe39255000 rw-p 00004000 08:02 2500861 /usr/lib/libattr.so.1.1.0
    7fbe39255000-7fbe3925c000 r-xp 00000000 08:02 2493561 /usr/lib/librt-2.21.so
    7fbe3925c000-7fbe3945b000 ---p 00007000 08:02 2493561 /usr/lib/librt-2.21.so
    7fbe3945b000-7fbe3945c000 r--p 00006000 08:02 2493561 /usr/lib/librt-2.21.so
    7fbe3945c000-7fbe3945d000 rw-p 00007000 08:02 2493561 /usr/lib/librt-2.21.so
    7fbe3945d000-7fbe39560000 r-xp 00000000 08:02 2493588 /usr/lib/libm-2.21.so
    7fbe39560000-7fbe3975f000 ---p 00103000 08:02 2493588 /usr/lib/libm-2.21.so
    7fbe3975f000-7fbe39760000 r--p 00102000 08:02 2493588 /usr/lib/libm-2.21.so
    7fbe39760000-7fbe39761000 rw-p 00103000 08:02 2493588 /usr/lib/libm-2.21.so
    7fbe39761000-7fbe39765000 r-xp 00000000 08:02 2500990 /usr/lib/libcap.so.2.24
    7fbe39765000-7fbe39964000 ---p 00004000 08:02 2500990 /usr/lib/libcap.so.2.24
    7fbe39964000-7fbe39965000 rw-p 00003000 08:02 2500990 /usr/lib/libcap.so.2.24
    7fbe39965000-7fbe3996a000 r-xp 00000000 08:02 2493571 /usr/lib/libnss_dns-2.21.so
    7fbe3996a000-7fbe39b69000 ---p 00005000 08:02 2493571 /usr/lib/libnss_dns-2.21.so
    7fbe39b69000-7fbe39b6a000 r--p 00004000 08:02 2493571 /usr/lib/libnss_dns-2.21.so
    7fbe39b6a000-7fbe39b6b000 rw-p 00005000 08:02 2493571 /usr/lib/libnss_dns-2.21.so
    7fbe39b6b000-7fbe39b76000 r-xp 00000000 08:02 2493529 /usr/lib/libnss_files-2.21.so
    7fbe39b76000-7fbe39d76000 ---p 0000b000 08:02 2493529 /usr/lib/libnss_files-2.21.so
    7fbe39d76000-7fbe39d77000 r--p 0000b000 08:02 2493529 /usr/lib/libnss_files-2.21.so
    7fbe39d77000-7fbe39d78000 rw-p 0000c000 08:02 2493529 /usr/lib/libnss_files-2.21.so
    7fbe39d78000-7fbe39d90000 r-xp 00000000 08:02 2493560 /usr/lib/libpthread-2.21.so
    7fbe39d90000-7fbe39f8f000 ---p 00018000 08:02 2493560 /usr/lib/libpthread-2.21.so
    7fbe39f8f000-7fbe39f90000 r--p 00017000 08:02 2493560 /usr/lib/libpthread-2.21.so
    7fbe39f90000-7fbe39f91000 rw-p 00018000 08:02 2493560 /usr/lib/libpthread-2.21.so
    7fbe39f91000-7fbe39f95000 rw-p 00000000 00:00 0
    7fbe39f95000-7fbe39fa9000 r-xp 00000000 08:02 2493525 /usr/lib/libresolv-2.21.so
    7fbe39fa9000-7fbe3a1a8000 ---p 00014000 08:02 2493525 /usr/lib/libresolv-2.21.so
    7fbe3a1a8000-7fbe3a1a9000 r--p 00013000 08:02 2493525 /usr/lib/libresolv-2.21.so
    7fbe3a1a9000-7fbe3a1aa000 rw-p 00014000 08:02 2493525 /usr/lib/libresolv-2.21.so
    7fbe3a1aa000-7fbe3a1ac000 rw-p 00000000 00:00 0
    7fbe3a1ac000-7fbe3a1af000 r-xp 00000000 08:02 2500510 /usr/lib/libkeyutils.so.1.5
    7fbe3a1af000-7fbe3a3ae000 ---p 00003000 08:02 2500510 /usr/lib/libkeyutils.so.1.5
    7fbe3a3ae000-7fbe3a3af000 r--p 00002000 08:02 2500510 /usr/lib/libkeyutils.so.1.5
    7fbe3a3af000-7fbe3a3b0000 rw-p 00003000 08:02 2500510 /usr/lib/libkeyutils.so.1.5
    7fbe3a3b0000-7fbe3a3bc000 r-xp 00000000 08:02 2500602 /usr/lib/libkrb5support.so.0.1
    7fbe3a3bc000-7fbe3a5bb000 ---p 0000c000 08:02 2500602 /usr/lib/libkrb5support.so.0.1
    7fbe3a5bb000-7fbe3a5bc000 r--p 0000b000 08:02 2500602 /usr/lib/libkrb5support.so.0.1
    7fbe3a5bc000-7fbe3a5bd000 rw-p 0000c000 08:02 2500602 /usr/lib/libkrb5support.so.0.1
    7fbe3a5bd000-7fbe3a5c0000 r-xp 00000000 08:02 2496826 /usr/lib/libcom_err.so.2.1
    7fbe3a5c0000-7fbe3a7bf000 ---p 00003000 08:02 2496826 /usr/lib/libcom_err.so.2.1
    7fbe3a7bf000-7fbe3a7c0000 r--p 00002000 08:02 2496826 /usr/lib/libcom_err.so.2.1
    7fbe3a7c0000-7fbe3a7c1000 rw-p 00003000 08:02 2496826 /usr/lib/libcom_err.so.2.1
    7fbe3a7c1000-7fbe3a7f0000 r-xp 00000000 08:02 2500600 /usr/lib/libk5crypto.so.3.1
    7fbe3a7f0000-7fbe3a9ef000 ---p 0002f000 08:02 2500600 /usr/lib/libk5crypto.so.3.1
    7fbe3a9ef000-7fbe3a9f2000 r--p 0002e000 08:02 2500600 /usr/lib/libk5crypto.so.3.1
    7fbe3a9f2000-7fbe3a9f3000 rw-p 00031000 08:02 2500600 /usr/lib/libk5crypto.so.3.1
    7fbe3a9f3000-7fbe3a9f4000 rw-p 00000000 00:00 0
    7fbe3a9f4000-7fbe3aac9000 r-xp 00000000 08:02 2500578 /usr/lib/libkrb5.so.3.3
    7fbe3aac9000-7fbe3acc8000 ---p 000d5000 08:02 2500578 /usr/lib/libkrb5.so.3.3
    7fbe3acc8000-7fbe3acd6000 r--p 000d4000 08:02 2500578 /usr/lib/libkrb5.so.3.3
    7fbe3acd6000-7fbe3acd9000 rw-p 000e2000 08:02 2500578 /usr/lib/libkrb5.so.3.3
    7fbe3acd9000-7fbe3acee000 r-xp 00000000 08:02 2496635 /usr/lib/libz.so.1.2.8
    7fbe3acee000-7fbe3aeed000 ---p 00015000 08:02 2496635 /usr/lib/libz.so.1.2.8
    7fbe3aeed000-7fbe3aeee000 r--p 00014000 08:02 2496635 /usr/lib/libz.so.1.2.8
    7fbe3aeee000-7fbe3aeef000 rw-p 00015000 08:02 2496635 /usr/lib/libz.so.1.2.8
    7fbe3aeef000-7fbe3aef2000 r-xp 00000000 08:02 2493570 /usr/lib/libdl-2.21.so
    7fbe3aef2000-7fbe3b0f1000 ---p 00003000 08:02 2493570 /usr/lib/libdl-2.21.so
    7fbe3b0f1000-7fbe3b0f2000 r--p 00002000 08:02 2493570 /usr/lib/libdl-2.21.so
    7fbe3b0f2000-7fbe3b0f3000 rw-p 00003000 08:02 2493570 /usr/lib/libdl-2.21.so
    7fbe3b0f3000-7fbe3b28c000 r-xp 00000000 08:02 2493540 /usr/lib/libc-2.21.so
    7fbe3b28c000-7fbe3b48b000 ---p 00199000 08:02 2493540 /usr/lib/libc-2.21.so
    7fbe3b48b000-7fbe3b48f000 r--p 00198000 08:02 2493540 /usr/lib/libc-2.21.so
    7fbe3b48f000-7fbe3b491000 rw-p 0019c000 08:02 2493540 /usr/lib/libc-2.21.so
    7fbe3b491000-7fbe3b495000 rw-p 00000000 00:00 0
    7fbe3b495000-7fbe3b4c7000 r-xp 00000000 08:02 2502025 /usr/lib/libidn.so.11.6.13
    7fbe3b4c7000-7fbe3b6c7000 ---p 00032000 08:02 2502025 /usr/lib/libidn.so.11.6.13
    7fbe3b6c7000-7fbe3b6c8000 r--p 00032000 08:02 2502025 /usr/lib/libidn.so.11.6.13
    7fbe3b6c8000-7fbe3b6c9000 rw-p 00033000 08:02 2502025 /usr/lib/libidn.so.11.6.13
    7fbe3b6c9000-7fbe3b713000 r-xp 00000000 08:02 2500597 /usr/lib/libgssapi_krb5.so.2.2
    7fbe3b713000-7fbe3b912000 ---p 0004a000 08:02 2500597 /usr/lib/libgssapi_krb5.so.2.2
    7fbe3b912000-7fbe3b914000 r--p 00049000 08:02 2500597 /usr/lib/libgssapi_krb5.so.2.2
    7fbe3b914000-7fbe3b916000 rw-p 0004b000 08:02 2500597 /usr/lib/libgssapi_krb5.so.2.2
    7fbe3b916000-7fbe3bb63000 r-xp 00000000 08:02 2496639 /usr/lib/libcrypto.so.1.0.0
    7fbe3bb63000-7fbe3bd62000 ---p 0024d000 08:02 2496639 /usr/lib/libcrypto.so.1.0.0
    7fbe3bd62000-7fbe3bd7e000 r--p 0024c000 08:02 2496639 /usr/lib/libcrypto.so.1.0.0
    7fbe3bd7e000-7fbe3bd8a000 rw-p 00268000 08:02 2496639 /usr/lib/libcrypto.so.1.0.0
    7fbe3bd8a000-7fbe3bd8d000 rw-p 00000000 00:00 0
    7fbe3bd8d000-7fbe3bdfc000 r-xp 00000000 08:02 2498706 /usr/lib/libssl.so.1.0.0
    7fbe3bdfc000-7fbe3bffc000 ---p 0006f000 08:02 2498706 /usr/lib/libssl.so.1.0.0
    7fbe3bffc000-7fbe3c001000 r--p 0006f000 08:02 2498706 /usr/lib/libssl.so.1.0.0
    7fbe3c001000-7fbe3c008000 rw-p 00074000 08:02 2498706 /usr/lib/libssl.so.1.0.0
    7fbe3c008000-7fbe3c02a000 r-xp 00000000 08:02 2493584 /usr/lib/ld-2.21.so
    7fbe3c072000-7fbe3c07f000 r-xp 00000000 08:02 2502870 /usr/lib/libnss_myhostname.so.2
    7fbe3c07f000-7fbe3c080000 ---p 0000d000 08:02 2502870 /usr/lib/libnss_myhostname.so.2
    7fbe3c080000-7fbe3c082000 r--p 0000d000 08:02 2502870 /usr/lib/libnss_myhostname.so.2
    7fbe3c082000-7fbe3c083000 rw-p 0000f000 08:02 2502870 /usr/lib/libnss_myhostname.so.2
    7fbe3c08d000-7fbe3c216000 r--p 00000000 08:02 2511774 /usr/lib/locale/locale-archive
    7fbe3c216000-7fbe3c21f000 rw-p 00000000 00:00 0
    7fbe3c226000-7fbe3c227000 rw-p 00000000 00:00 0
    7fbe3c228000-7fbe3c229000 rw-p 00000000 00:00 0
    7fbe3c229000-7fbe3c22a000 r--p 00021000 08:02 2493584 /usr/lib/ld-2.21.so
    7fbe3c22a000-7fbe3c22b000 rw-p 00022000 08:02 2493584 /usr/lib/ld-2.21.so
    7fbe3c22b000-7fbe3c22c000 rw-p 00000000 00:00 0
    7ffe5472f000-7ffe54750000 rw-p 00000000 00:00 0 [stack]
    7ffe54763000-7ffe54765000 r--p 00000000 00:00 0 [vvar]
    7ffe54765000-7ffe54767000 r-xp 00000000 00:00 0 [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
    On my Arch file server, I have a bash script that downloads podcasts & then e-mails me when complete. I use mailx to send a message to my postfix-based Arch mail server, hosted offsite. The connection does use TLS 1.2, as part of the output references. This setup has worked for several years, but recently I sporadically get this crash. Any ideas what it might be?

    Hello,
    i am the maintainer of S-nail / mail(x).
    Have you updated to v14.8.2?
    There was a bug lingering in the codebase since 2001, and a recent change (in v14.8.1) caused that codepath to actually execute even for short-time use cases like sending mail from the command line etc.
    Would you be so kind and confirm that your use case works again?
    Thank you!!

  • How to send a file as an attachment using mailx

    Hi
    Can any one tel me how to send a file as an attachment using mailx command in shell script.
    Thanks,
    Suman.

    Wrong forum where to ask such questions.
    Check this one link:
    http://www.unix.com/shell-programming-scripting/18370-sending-email-text-attachment-using-mailx.html?t=18370#post70254

  • SMTP-auth via mailx results in service unavailable

    Why do my attempts to use mailx with Gandi SMTP fail with 'Service unavailable'?
    I have the following ~/.mailrc file which is recognised by mailx:
    set smtp=smtps://mail.gandi.net:465
    set smtp-auth=login
    set smtp-auth-user=harry@XXXXXXX
    set smtp-auth-password=XXXXXXX
    set from=harry@XXXXXXX
    set ssl-verify=ignore
    set nss-config-dir=/Users/neville/Thunderbird
    The result is below.
    From MAILER-DAEMON  Thu Dec 20 15:41:47 2012
    Return-Path: <>
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by G4-N-2.local (Postfix)
              id D4E2DA382D6; Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    Date: Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    From: [email protected] (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: [email protected]
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
              boundary="78E73A382D4.1356018107/G4-N-2.local"
    Message-Id: <[email protected]>
    This is a MIME-encapsulated message.
    --78E73A382D4.1356018107/G4-N-2.local
    Content-Description: Notification
    Content-Type: text/plain; charset=us-ascii
    This is the mail system at host G4-N-2.local.
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
                       The mail system
    <neville@XXXXXXX>: host spool.mail.gandi.net[217.70.184.6] said: 554 5.7.1
        Service unavailable; Client host [XXXXXXX] blocked using
        pbl.spamhaus.org; http://www.spamhaus.org/query/bl?ip=XXXXXXX (in
        reply to RCPT TO command)
    --78E73A382D4.1356018107/G4-N-2.local
    Content-Description: Delivery report
    Content-Type: message/delivery-status
    Reporting-MTA: dns; G4-N-2.local
    X-Postfix-Queue-ID: 78E73A382D4
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    Final-Recipient: rfc822; neville@XXXXXXX
    Action: failed
    Status: 5.7.1
    Remote-MTA: dns; spool.mail.gandi.net
    Diagnostic-Code: smtp; 554 5.7.1 Service unavailable; Client host
        [XXXXXXX] blocked using pbl.spamhaus.org;
        http://www.spamhaus.org/query/bl?ip=XXXXXXX
    --78E73A382D4.1356018107/G4-N-2.local
    Content-Description: Undelivered Message
    Content-Type: message/rfc822
    Received: by G4-N-2.local (Postfix, from userid 501)
              id 78E73A382D4; Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    To: neville@XXXXXXX
    Subject: test
    Message-Id: <[email protected]>
    Date: Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    From: [email protected] (Neville Hillyer)
    test email
    --78E73A382D4.1356018107/G4-N-2.local--

    http://www.spamhaus.org says:
    Mail servers only run spam filters such as Spamhaus PBL on port 25, so if you find you are being blocked by the PBL when you try to send mail to your mail server that means you are not communicating with the mail server on the 'authenticated' port 587 but you're still on port 25. This means your 'SMTP Authentication' is not working correctly.
    http://wiki.gandi.net/en/mail/standard-settings#smtp-account says:
    SMTP Account
    Name server : mail.gandi.net
    Port : 25, 465 (with SSL) or 587 (try one or the other)
    TLS or SSL: yes
    SMTP Authentication : yes, using the same settings as for the POP / IMAP account
    I was trying to use the same settings I have used for several years with Thunderbird and Apple Mail, ie SSL on port 465.
    Is there something wrong with my settings which could be preventing mailx from using port 465?
    A few debug tips would be appreciated.
    Your link causes me to ask:  Does the mailx on Leopard support SMTP directly?

  • Mailx command unable to send mail to internal email server

    Hi,
    I am trying to send mail from my shell program registered as concurrent request in R12 its working fine for external server like (gmail,yahoo,hotmail etc) but when Im trying to send mail to internal mail within organization it fails. It does'nt error out though. Our dba has been working on the same but no luck. Any inputs will be of great help.
    echo "Mail"|mailx -s "Test Mail from DEV" "[email protected]" ( fails within internal domain)
    echo "Mail"|mailx -s "Test Mail from DEV" "[email protected]" ( successfully sends mail within external domain)
    I tried disabling the dns resolution for public sites in the configuration file (/etc/resolve.conf) but no luck. Thanks in advance.
    Thanks,
    Ahmed

    Thanks Koushik for your prompt reply. You mean the configuration file /etc/resolve.conf right? Here you go. If I comment all the below lines the mail does not work even for external sites as well.
    -----------------------------------------------------------------------resolve.conf-------------------------------------------------------------------------------------------------
    search companymaildomain.com
    nameserver aa.aa.aaa.a
    nameserver bbb.bb.bb.b
    Here first line has the company domain
    second and third line is the ip address of primary and secondary dns server
    Thanks,
    Ahmed

  • Mailx problem

    Hi.
    Maybe stupid but I can't send mail with mailx 8.1.1-2
    [root@host] pacman -Ql mailx
    mailx /etc/
    mailx /etc/mail.rc
    mailx /usr/
    mailx /usr/bin/
    mailx /usr/bin/mail
    mailx /usr/man/
    mailx /usr/man/man1/
    mailx /usr/man/man1/mail.1.gz
    mailx /usr/share/
    mailx /usr/share/misc/
    mailx /usr/share/misc/mail.help
    mailx /usr/share/misc/mail.tildehelp
    package is required when using cron, problem is that is seems not to be working without sendmail, should not be relying on it if not available I think.
    Output when trying to send mail
    mail -s test root@localhost
    testing
    EOT
    /usr/sbin/sendmail: No such file or directory:
    mail and mailx command seems to be different and did look at src dir when building the package and binary file is "mail" and not "mailx" which is missing on my system
    What is wrong here?
    /xor
    Arch Linux 0.7 (Wombat)
    Linux xor 2.6.7 #1 Sun Aug 8 20:39:05 CEST 2004 i686 unknown unknown GNU/Linux

    pacman -Qo /usr/sbin/sendmail
    /usr/sbin/sendmail is owned by postfix 2.1.4-1
    fire up that pacman with -S postfix

  • Using Mailx to read emails - Simplify the view

    Hi,
    I've just started using the mailx program, from heirloom-mailx in the core repo, to send and read my emails. This is great, no more extra cruft that I have to wait load and I can pipe any results of commands straight to my inbox. My queery is regarding the format of messages. Is there anyway I can not display the headers of emails when I read them?
    I dont mean the "headers" that are displayed when the program is run to show the new messages, I mean the info when you open a message, like "From", "Delivered-To", "Return-Path" etc. Some of these are useful, but some are so long that my message starts right down the bottom of the screen. The best solution would be to customise this to display only "From", "To" "Date" and then the message, but as I've just seen all that on the original screen, I could manage without.
    Thanks for your help.
    J.
    Tl;Dr
    I just want to read emails, can I display just some of the email header, or none, and then the message in the mailx program?

    Doesn't SAS have a direct connection library that does not use ODBC? maybe their pass-though access:
    http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001405615.htm

  • Mailx is not working on redhat 5

    Hi All,
    I am working with Redhat 5 servers.my mailx is not working in the server.Please help me to solve this issue.
    I have schedule some scripts in crontab for monitoring .

    Kindly confirm this is an Oracle forum and not an Unix or a Linux forum.
    Please repost your off-topic question somewhere else.
    Thank you!
    Sybrand Bakker
    Senior Oracle DBA

  • [SOLVED] mailx error and inconsistency

    I'm finalizing a set of utilities that is supposed to send me a text message, via mailx.  However, when I set the recipient's email (my email-to-text address: [email protected]) and send the message, I never recieve the email.  In addition, I even tried sending texts in a similar manner to, for instance, friends with other phones ([email protected]), but to no avail. 
    I find this strange because my friend can send me one from his school's server, via mailx ([email protected]).  I also find this strange because I can successfully send messages to my personal email account.
    I'm sure that I'm missing something, but I have no idea what.
    [edited: the flow of the original post was pretty incoherent]
    Last edited by apolyonn (2014-03-25 17:16:27)

    roentgen wrote:Looks like a copy paste error to me.
    Thanks for clarifying XD I fixed those two lines.  The error still persisted, but I found this article, which offered a solution: progress!  However, I was still getting an error:
    Mar 25 12:55:08 Linuxhost postfix/pickup[13649]: 0567C181954: uid=1000 from=<username>
    Mar 25 12:55:08 Linuxhost postfix/cleanup[13655]: 0567C181954: message-id=<20140325165508.0567C181954@Linuxhost>
    Mar 25 12:55:08 Linuxhost postfix/qmgr[13648]: 0567C181954: from=<username@Linuxhost>, size=411, nrcpt=1 (queue active)
    Mar 25 12:55:08 Linuxhost postfix/smtp[13657]: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
    Mar 25 12:55:08 Linuxhost postfix/smtp[13657]: connect to smtp.googlemail.com[2607:f8b0:400d:c00::10]:587: Network is unreachable
    Mar 25 12:55:08 Linuxhost postfix/smtp[13657]: 0567C181954: to=<[email protected]>, relay=smtp.googlemail.com[173.194.76.16]:587, delay=0.82, delays=0.11/0.19/0.48/0.05, dsn=5.5.1, status=bounced (host smtp.googlemail.com[173.194.76.16] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 h90sm27856514qgf.3 - gsmtp (in reply to MAIL FROM command))
    Mar 25 12:55:08 Linuxhost postfix/cleanup[13655]: E41EF181ADB: message-id=<20140325165508.E41EF181ADB@Linuxhost>
    Mar 25 12:55:08 Linuxhost postfix/bounce[13659]: 0567C181954: sender non-delivery notification: E41EF181ADB
    Mar 25 12:55:08 Linuxhost postfix/qmgr[13648]: E41EF181ADB: from=<>, size=2383, nrcpt=1 (queue active)
    Mar 25 12:55:08 Linuxhost postfix/qmgr[13648]: 0567C181954: removed
    Mar 25 12:55:09 Linuxhost postfix/local[13660]: E41EF181ADB: to=<username@Linuxhost>, relay=local, delay=0.11, delays=0.05/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
    Mar 25 12:55:09 Linuxhost postfix/qmgr[13648]: E41EF181ADB: removed
    Mar 25 12:56:23 Linuxhost postfix/smtp[13493]: 2476E18162A: to=<[email protected]>, relay=smtp.googlemail.com[173.194.68.16]:465, delay=300, delays=0.1/0.02/300/0, dsn=4.4.2, status=deferred (conversation with smtp.googlemail.com[173.194.68.16] timed out while receiving the initial server greeting)
    Did a little more digging, starting with this, from the above log:
    warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
    Ran across this forum discussion about postfix.  Then I remembered that I changed the both main.cf and sasl_password from smtp.gmail.com to smtp.googlemail.com, which mirrors my Thunderbird credentials.  But, I never issued the postmap command to update the db file.  So, I simply ran:
    sudo postmap /etc/postfix/sasl_passwd
    sudo postfix reload
    and now it's working great.
    NOTABLE HIGHLIGHT FROM MY ENDEAVOUR:
    Use smtp.googlemail.com if smtp.gmail.com doesn't work
    Final main.cf:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    # Debian specific: Specifying a file name will cause the first
    # line of that file to be used as the name. The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    smtpd_banner = $myhostname ESMTP $mail_name (Arch)
    biff = no
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    readme_directory = no
    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    myhostname = Sera
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    mydestination = $myhostname localhost.$mydomain localhost
    # Sera, localhost.localdomain, localhost
    relayhost = [smtp.googlemail.com]:587
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    default_transport = smtp
    relay_transport = smtp
    inet_protocols = all
    # use sasl when authenticating to foreign smtp servers
    smtp_sasl_auth_enable = yes
    # path to password map file
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    # List of CAs to trust when verifying server certificatee
    smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
    # eliminates default security options which are incompatible wtih gmail
    smtp_sasl_security_options =
    smtp_tls_security_level = may
    smtp_sasl_security_options = noanonymous
    Thanks a bunch for your help!
    Solved.
    Last edited by apolyonn (2014-03-25 17:17:03)

  • Mailx not working in zones

    mailx working fine with global zone but not working with anyone of the non-global zone on that machine. I tried restarting smtp, copied /etc/mail/ dir form global zone to not-global zone but nothing worked out. Please help me out.
    # mailx [email protected]
    Subject: test
    test body
    EOT
    /home/tsaini/Mailboxes/Out-Box: No such file or directory

    Thanks Michael for your response. I fixed the issue. i did the following things.
    1> Edit /etc/nsswitch.conf
    # consult /etc "files" only if nis is down.
    hosts: files dns nis
    2> touch /etc/resolv.conf and put all the nameservers ( it was not copied by default when zone was created)
    3>touch /etc/defaultrouter ( it was not copied by default when zone was created)
    bash-3.00# /etc/init.d/sendmail stop
    bash-3.00# /etc/init.d/sendmail start

  • Mailx content-type header

    I can't seem to find any information on setting additional headers (specifically Content-Type) when sending a message via mailx
    I can send text/plain messages, but I need to send text/html content.
    cat test.html | mailx -s "Testing" [email protected]
    I've tried including headers at the top of my file, but mailx just ignores them.
    cat test.html | mailx -t
    To:[email protected]
    Subject: Testing
    Content-Type: text/html; charset=ISO-8859-1
    <html></html>
    Any advise or links to how this can be achieved would be great.  Thanks

    I found this question on stackexchange and decided mailx does not meet my needs very well, so I installed msmtp.  It's very easy to setup and use.  I added the necessary headers to the top of my file, then executed:
    cat test.html | mstp [email protected]

  • Mailx unable to send mails to outside world?

    hi
    on a solaris sparc 9 environment mailx command is unable to send mails to the outside world. What could be the reason & needs to be checked?
    thanks

    sounds basic, but what's your entry of malhost in /etc/hosts pointing to? If it's not there, add the entry with the IP address of your SMTP host.
    when sending test mail from mailx, have another window open thats tail-ing the contents of /var/log/syslog - that usually contains good info about sendmail.
    another thing worth checking is the rules on your SMTP gateway. If this is a new host, it may need adding to the list of authorised relay list. Also check to see if the SMTP host is alowed to relay mail outside of its own domain too.

  • Mailx Not sending Mails

    Hi,
    I have checked the following.
    1. check service are up or not
    ps -elf|grep mail - It is UP.
    2. edit /etc/mail/sendmail.cf
    # "Smart" relay host (may be null)
    DSmyservername
    3. added below to /etc/mail/ trusted-users
    root
    daemon
    uucp
    Please check the output. It is showing message is send, but I am not receiving any mail.
    mailx -v -s "Test Mail" [email protected] </dev/null
    Null message body; hope that's ok
    [email protected].. Connecting to [127.0.0.1] via relay...
    220 sflxdb07.donerus.com ESMTP Sendmail 8.13.1/8.13.1; Tue, 9 Mar 2010 06:24:12-0500
    EHLO sflxdb07.donerus.com250-sflxdb07.donerus.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ETRN
    250-DELIVERBY
    250 HELP
    MAIL From:<[email protected]> SIZE=43
    250 2.1.0 <[email protected]>... Sender ok
    RCPT To:<[email protected]>
    DATA250 2.1.5 <[email protected]>... Recipient ok
    354 Enter mail, end with "." on a line by itself
    .250 2.0.0 o29BOCrg007596 Message accepted for delivery
    [email protected].. Sent (o29BOCrg007596 Message accepted for delivery)
    Closing connection to [127.0.0.1]
    QUIT221 2.0.0 sflxdb07.donerus.com closing connection
    Thanks,
    Kavitha

    Hi,
    After doing the changes, restarted sendmail and observed the maillog, it is showing the following error:
    Mar 9 08:20:39 sflxdb07 sendmail[26555]: alias database /etc/aliases rebuilt by root
    Mar 9 08:20:39 sflxdb07 sendmail[26555]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/Sendmail.conf) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libntlm.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libdigestmd5.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/liblogin.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libgssapiv2.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libsql.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libsasldb.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libplain.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libanonymous.so.2) failed: Group writable directory
    Mar 9 08:20:39 sflxdb07 sendmail[26559]: error: safesasl(/usr/lib/sasl2/libcrammd5.so.2) failed: Group writable directory
    And also please check
    1.my resolv.conf
    options attempts:5
    options timeout:15
    search sflxdb07.donerus.com (Placed my server name)
    nameserver 209.220.229.99
    nameserver 209.220.229.100
    2.sendmail.cf changes
    # "Smart" relay host (may be null)
    DSsflxdb07.donerus.com
    Thanks,
    Kavitha

  • Mailx giving problem

    Hi,
    When I am try to send mail with the following command:
    mailx -s " test mail " [email protected]
    I am getting the error as:
    1) It hangs
    2) Sometime it gives error like :
    collect: Cannot write ./dfl6JEDUDA020585 (bfcommit, uid=501, gid=51): Permission denied
    queueup: cannot create queue file ./qfl6JEDUDA020585, euid=501, fd=-1, fp=0x0: Permission denied
    ps -ef | grep mail gives following statements:
    root 2931 1 0 Jun28 ? 00:00:03 sendmail: accepting connections
    smmsp 2939 1 0 Jun28 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
    oracle 4419 4268 0 10:35 pts/0 00:00:00 grep mail
    Please advice how to proceed.

    http://www.google.com/search?sourceid=navclient&aq=t&ie=UTF-8&rls=GGLG,GGLG:2005-29,GGLG:en&q=%22queueup%3a+cannot+create+queue+file+%22+permission+denied

Maybe you are looking for

  • Itunes wont open.. "send error report to microsoft"

    Whenever i try to open my Itunes, a message asking me to send an error report to Microsoft appears. I have tried uninstalling and reinstalling both itunes and quicktime many different times and nothing is working. I have tried recreating the preferen

  • No Video when using the "Send To Soundtrack Pro Audio File" Command

    Hello FCP Users, After reading and rereading the FCP and STP manuals and scouring the boards; I still can not figure out how to view my video clip while I'm editing/sweetening audio in STP. I have even used the DVD tutorial in an attempt to figure it

  • Application that receives algorithms as input

    I'm developing a trading platform for a cryptocurrency. I'm building several algorithms, based on personal experience, college eduction or reading in books and on the Internet. I can test these algorithms on real money, with a real account. But there

  • Error in MSS hr process and forms services

    Hi , when i execute the services releated to hcm prcessand forms (asr) im getting the below.Does any one find the solution or this please revert me back Error when processing your request What has happened? The URL http://hr.d.evo.vodafone.com:/sap/b

  • Stream live video in internet explorer.

    hallo To stream the live video from webcam in internet explorer in system ( as server) and then sending that output to the (PPC) Pocket PC ( as client ) . in the PPC also video should stream in internet explorer. plz suggest me some valuable procedur