AW: AW: Still troubles with mail envelope sender

Hi Seph

I don’t understand why you want to use -f at all. If your a trusted
user, the MTA shouldn’t be adding a Sender header, and should just use
the the From header rt sets.

Well, it does sent the From: Header correctly… But what I was talking
about ist the Envelope Sender. The one you set with the -f switch of
sendmail.

Let’s assume my server is called www.foobar.local (which is our company
internal DNS Namespace)
The user RT runs as is www-data
So I get a mail sent with

envelope from:www-data@www.foobar.local

So any server receiving this tells me: www.foobar.local - non existent
domain.

That’s why I would need -f to set the envelope to something like
postmaster@company.com that exists in the Internet Namespace.

Well, I could rename our server to call itself company.com but I don’t know
what else I would break by doing so :wink:

-Benoit-

Well, it does sent the From: Header correctly… But what I was talking
about ist the Envelope Sender. The one you set with the -f switch of
sendmail.

Let’s assume my server is called www.foobar.local (which is our company
internal DNS Namespace)
The user RT runs as is www-data
So I get a mail sent with

envelope from:www-data@www.foobar.local
From: “Queuename” queuename@company.com
To: Requestor

I think I see what you’re problem is. It’s not the sender header, as
sendmail shouldn’t be adding that in your case. It’s the actual smtp
exchange. You’re running into more restrictive spam checks. Primarily
ones that require the MAIL FROM domain to be valid, but you’ll also
encounter ones that require the sending host to identify with a valid
hostname in HELO.

I’d change your server’s configs so it identified as something
externally resolvable. using -f may solve the MAIL FROM error, but it
won’t solve the HELO problem. (though you may not have encountered that
yet)

Well, I could rename our server to call itself company.com but I don’t know
what else I would break by doing so :wink:

don’t rename the machine, just have sendmail use something like that.

seph

Let’s assume my server is called www.foobar.local (which is our company
internal DNS Namespace)
The user RT runs as is www-data
So I get a mail sent with

I’d change your server’s configs so it identified as something
externally resolvable. using -f may solve the MAIL FROM error, but it
won’t solve the HELO problem. (though you may not have encountered that
yet)

You could also make sendmail route all outgoing mail (“smarthost”)
through your company’s mail server, which presumably will accept the
internal domain in the envelope sender. That would probably do the
trick.