Problems with sendmail From: header

Hello!
Im using rt3 on Debian Sarge with sendmail. I’m having a bit troubles
with sendmail. RT gets incoming emails with fetchmail just fine, but
when it autoreplys to ticket-senders the email seems to be coming from
www-data@localhost.localdomain.
This has something to do with sendmails trusted-users?
I was browsing the list earlier and found out somebody had the similar
kind of problems and it was replied that go check the articles on
www.fsck.com/rtfm, there you’ll find the solution. I could find it
there :slight_smile:
Is someone able to help me or point me to an page with a solution?
Thank you in advance.

Hello!
Im using rt3 on Debian Sarge with sendmail. I’m having a bit troubles
with sendmail. RT gets incoming emails with fetchmail just fine, but
when it autoreplys to ticket-senders the email seems to be coming from
www-data@localhost.localdomain.

This is the default untrusted user Debian uses for Apache and packages that
run under Apache.

This has something to do with sendmails trusted-users?

I think so. However I’m running exim here and can’t help you directly with
sendmail.

Perhaps your sendmail logs or /var/log/deamon.log on Debian will give you a
clue as to what’s happening. I would assume that sendmail is rewriting that
username/hostname of the process sending mail though it. And since RT runs
under the www-data user, that makes some sort of odd sense to my late-night
brain…

From /usr/share/doc/rt3-clients/README.Debian :

If you are using Sendmail you will need to add rt-mailgate into the
/etc/mail/smrsh/ directory. Do something like:

ln -s /usr/bin/rt-mailgate /etc/mail/smrsh/rt-mailgate

The smrsh directory contains all the binaries that Sendmail is
permitted to run via the ‘|program’ syntax in order to improve the
over all security of your system. See smrsh(8) for more details.

Although I assume if you’re opening tickets okay via e-mail this isn’t the
problem.

Nate Duehr, nate@natetech.com

I just did a Google search for “Sendmail trusted user” and found lots of
examples of how to configure a trusted user.

Here’s one from the sendmail.org site:
http://www.sendmail.org/m4/tweaking_config.html#confTRUSTED_USER

Matias K. wrote: