Solved

Sendmail -f

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 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…

773 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