Web Hosting Talk







View Full Version : Sendmail: wrong sender


cyansmoker
01-30-2002, 03:12 AM
Hi,
I just found out that one of our servers, where a client runs a mailing-list script (opt-in list), is misconfigured.

Here's the thing:
His Perl scripts rely on sendmail,
They send messages containing a "From" field set to "blah@clientdomain.com"

When the recipients read their messages, they see "From: blah@clientdomain.com"; well that's my understanding.

When an message is bounced (host unknown or mailbox full or ...) the bounce message is addressed to "clientdomain@OURdomain.com".

We rely on suexec, thus the Perl scripts as executed with the client's account, that could be resolved to "clientdomain@OURdomain.com"; I suppose sendmail uses this for the envelope "From" instead of the message "From" field..?

Any idea???

Thanks,
-Chris.

cyansmoker
01-31-2002, 08:30 PM
Hey,
maybe if I pretend I figured it all out, someone will help?

:confused:

priyadi
02-01-2002, 07:53 AM
Use sendmail -f blah@clientdomain.com in the perl script. Bounces then will be sent to that address.

cyansmoker
02-01-2002, 08:14 AM
Originally posted by priyadi
Use sendmail -f blah@clientdomain.com in the perl script. Bounces then will be sent to that address.

Thanks, it was, like, my last chance solution; but then I looked into sendmail.cf and realized than somebody had uncommented the "Return-Path" line :mad:

Thanks anyway,