1827482 Members
2019 Online
109965 Solutions
New Discussion

spoofing sendmail

 
ROSS HANSON
Regular Advisor

spoofing sendmail

I am trying to "spoof" sendmail. Instead of saying that the mail is coming from root@domain.com I am trying to say it is coming from dba@domain.com. No, what we are doing is for work only. We are trying to send this to about 150 recipients. I have been trying to:
sendmail -f dba@domain.com
body
.
but I never receive the email. We are using sendmail 8.13.3
any help would be appreciated
Ross Hanson
13 REPLIES 13
Steven Schweda
Honored Contributor

Re: spoofing sendmail

> [...] I have been trying to:
> sendmail -f dba@domain.com
> body
> .
> but I never receive the email. [...]

Uh, I see whom it's from, but I don't see
whom it's to. (Or are you using some new
intuitive interface to sendmail?)
ROSS HANSON
Regular Advisor

Re: spoofing sendmail

No, no new interface at all. Isn't that the correct way???
Ross Hanson
Steven Schweda
Honored Contributor

Re: spoofing sendmail

> [...] Isn't that the correct way???

To send a message TO WHOM? Who is the
intended recipient? And where did you
specify him/her/it/them?
Jim Walls
Trusted Contributor

Re: spoofing sendmail

Hakki Aydin Ucar
Honored Contributor

Re: spoofing sendmail

Hi,
The syntax is;

echo test |mailx -s "Subject Part" â r â from addressâ recipient1@domain.com.,recipient2@domain.com.
Steven Schweda
Honored Contributor

Re: spoofing sendmail

> The syntax is;
> [...]

It should be possible to specify one or more
recipients using sendmail, too. (mailx has
some handy features, but its intuition is
probably not superior to that of sendmail.)
ROSS HANSON
Regular Advisor

Re: spoofing sendmail

I am trying to do this in sendmail though
Ross Hanson
Patrick Wallek
Honored Contributor

Re: spoofing sendmail

This worked for me:

# /usr/sbin/sendmail -f fido@fido.com me@myaddress.com
test
test
test
.

I received the message and the from said fido@fido.com.
Steven Schweda
Honored Contributor

Re: spoofing sendmail

> I am trying to do this in sendmail though

Have you tried specifying a recipient yet?

I'll stop asking now.
ROSS HANSON
Regular Advisor

Re: spoofing sendmail

Yes, this is in a script. so, the recipients are in a while loop.

What I am currenly doing is sending the email to myself:

sendmail -f dba@domain.com myself@domain.com

the myself@domain.com will be replaced in the while loop with the appropriate names
Ross Hanson
Patrick Wallek
Honored Contributor

Re: spoofing sendmail

If you're not receiving the e-mail, are you seeing anything in /var/adm/syslog/mail.log? What happens if you run the command 'mailq' to look at the mail queue? Does anything show up? If so, what is the reason for the message being queued?
ROSS HANSON
Regular Advisor

Re: spoofing sendmail

running mailq I receive nothing
/var/adm/syslog/mail.log this says that the message has been delivered though not in my email, spam or junk file does it appear
Ross Hanson
Steven Schweda
Honored Contributor

Re: spoofing sendmail

> sendmail -f dba@domain.com myself@domain.com

Does "-f dba@domain.com" cause the problem,
or can you simply not send e-mail from this
system to your desired destination?

> Yes, this is in a script. [...]

My psychic powers are too weak to show me
exactly what your script does. Is your
problem with the script or with the command
itself? Have you tried running a simple
command manually (not in the script)?

> [...] the message has been delivered though
> not in my email, spam or junk file does it
> appear

What, exactly, is the system which is
supposed to be receiving this e-mail? Hint:
Using "domain.com" to hide potentially useful
information may not be the best way to get
useful answers.