Solved

Sendmail -f

Posted on 1997-09-07
2
373 Views
Last Modified: 2010-04-22
I need to alter the "From" address from an email script (formmail.pl) so that it is my personal email
address and not my web hosting address. ( The email
goes to a fax server that verifies the "From" address first.
I call sendmail using "Open MAIL | mailprog -t -fmy@email.com" Is this the correct syntax ? And ifso how
would I verify that I'm a "trusted" user in the config file?

Thanks,
Ronald Hritz
0
Comment
Question by:rhritz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2006945
If sendmail doesn't trust you for not being 'root', 'daemon', 'network', or 'my@email.com',
could you set a
Reply-To:
header in your MAIL to do what you want?
 

0
 
LVL 3

Accepted Solution

by:
EricKaplan earned 20 total points
ID: 2006946
Make the call yourself.

write a small C program that looks like this:

1) create a socker to your SMTP server (port "smtp")
2) do the talk routine:
  a) send the string "HELO " + your hostname + newline
  b) send the string "MAIL FROM:<" + your email + ">" + newline
  c) send the string "RCPT TO:<" + target email + ">" + newline
  d) send the string "DATA" + newline
  e) send the content of the letter
  f) send the string "." + newline
3) thats all ;-)

Cheers,

-Eric.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question