Professional Web Applications Themes

sendmail subject problem but with a twist - Linux / Unix Administration

I have to use sendmail to send a file via command line. I use sendmail because the user account that sends it must be a registered user on the company's email system. My test box has different usernames (ptv1100 is the username on the test box and I must enter using that ID) and company policy is that I use [email]joethiscompany.com[/email] to send mail (ie spoof an address). Anything else is rejected by the mail server. Adding joe to the test server is not an option either. I can send the file in question by doing the following: /usr/sbin/sendmail [email]-fjoethiscompany.com[/email] ...

  1. #1

    Default sendmail subject problem but with a twist

    I have to use sendmail to send a file via command line. I use sendmail
    because the user account that sends it must be a registered user on
    the company's email system. My test box has different usernames
    (ptv1100 is the username on the test box and I must enter using that
    ID) and company policy is that I use [email]joethiscompany.com[/email] to send
    mail (ie spoof an address). Anything else is rejected by the mail
    server. Adding joe to the test server is not an option either. I
    can send the file in question by doing the following:
    /usr/sbin/sendmail [email]-fjoethiscompany.com[/email]
    [email]anotherpersonthiscompany.com[/email] < filename.xml

    but I can't get a subject entered on the line. Anybody else solve
    this?
    Chris
    Chris Moore Guest

  2. #2

    Default Re: sendmail subject problem but with a twist

    In article <9e60fb9e.0406161449.4f1e316dposting.google.com >,
    [email]cmoorelinuxmail.org[/email] (Chris Moore) wrote:
    > I have to use sendmail to send a file via command line. I use sendmail
    > because the user account that sends it must be a registered user on
    > the company's email system. My test box has different usernames
    > (ptv1100 is the username on the test box and I must enter using that
    > ID) and company policy is that I use [email]joethiscompany.com[/email] to send
    > mail (ie spoof an address). Anything else is rejected by the mail
    > server. Adding joe to the test server is not an option either. I
    > can send the file in question by doing the following:
    > /usr/sbin/sendmail [email]-fjoethiscompany.com[/email]
    > [email]anotherpersonthiscompany.com[/email] < filename.xml
    >
    > but I can't get a subject entered on the line. Anybody else solve
    > this?
    > Chris
    Sendmail expects the message header to be included in the standard
    input. if you want a subject line, you have to feed it:

    cat - filename.xml <<EOS | sendmail -t
    From: [email]joethiscompany.com[/email]
    To: [email]anotherpersonthiscompany.com[/email]
    Subject: This is the subject

    EOS

    --
    Barry Margolin, [email]barmaralum.mit.edu[/email]
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    Barry Margolin Guest

Similar Threads

  1. Subject: Problem Extending ObjectDataSource and ObjectDataSourceVi
    By eacsub in forum ASP.NET Building Controls
    Replies: 3
    Last Post: March 7th, 02:45 PM
  2. Subject: Smart Navigation problem with mulitline TextBox
    By Kottan1970 in forum ASP Components
    Replies: 0
    Last Post: August 9th, 07:57 AM
  3. Problem with Email address Hyper subject-
    By PhilipNY in forum Web Design
    Replies: 1
    Last Post: April 11th, 02:30 AM
  4. Sendmail problem in AIX 4.3.3
    By subhasbothra in forum AIX
    Replies: 1
    Last Post: July 19th, 08:09 AM
  5. sendmail problem
    By zico in forum Linux / Unix Administration
    Replies: 0
    Last Post: July 18th, 10:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139