Solved

Sendmail -f

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

630 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