Solved

Sendmail -f

Posted on 1997-09-07
2
351 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now