* [gentoo-user] ssmtp rewriting "From:" in emails...
@ 2011-04-22 17:07 Jarry
2011-04-22 17:44 ` Jeremy McSpadden
0 siblings, 1 reply; 8+ messages in thread
From: Jarry @ 2011-04-22 17:07 UTC (permalink / raw
To: gentoo-user
Hi,
I have a strange problem: whenever my web-server sends registration
emails, the sender field gets overwritten.
"From:" should be:
My Web Site <info@mywebsite>
But email is delivered to the addressee from:
added by portage for apache <apache@mywebsite>
Logs on my web-server indicate the mail was handed over to
the local MTA with the correct "From:" field. Logs on my
mail-server (which is a different machine) show it has
already received this mail for delivery with changed "From"
field.
In between is ssmtp, running on the same machine as web.
I'm not quite sure, because I did not find any ssmtp-logs,
but I suppose ssmtp is changing "From", simply to the user
under which the process is running is substituted into
"From" field.
My /etc/ssmtp/ssmtp.conf (without comments) is quite simple:
root=postmaster
mailhub=mymailserver
How can I instruct ssmtp not to change "From:" fields
in emails?
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
2011-04-22 17:07 Jarry
@ 2011-04-22 17:44 ` Jeremy McSpadden
2011-04-22 18:10 ` Jarry
0 siblings, 1 reply; 8+ messages in thread
From: Jeremy McSpadden @ 2011-04-22 17:44 UTC (permalink / raw
To: gentoo-user
rewriteDomain=yourdomain.com
hostname=yourdomain.com
--
Jeremy McSpadden
deface@uberpenguin.net
On Apr 22, 2011, at 12:07 PM, Jarry wrote:
> Hi,
>
> I have a strange problem: whenever my web-server sends registration
> emails, the sender field gets overwritten.
>
> "From:" should be:
>
> My Web Site <info@mywebsite>
>
> But email is delivered to the addressee from:
>
> added by portage for apache <apache@mywebsite>
>
> Logs on my web-server indicate the mail was handed over to
> the local MTA with the correct "From:" field. Logs on my
> mail-server (which is a different machine) show it has
> already received this mail for delivery with changed "From"
> field.
>
> In between is ssmtp, running on the same machine as web.
> I'm not quite sure, because I did not find any ssmtp-logs,
> but I suppose ssmtp is changing "From", simply to the user
> under which the process is running is substituted into
> "From" field.
>
> My /etc/ssmtp/ssmtp.conf (without comments) is quite simple:
> root=postmaster
> mailhub=mymailserver
>
> How can I instruct ssmtp not to change "From:" fields
> in emails?
>
> Jarry
>
> --
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
2011-04-22 17:44 ` Jeremy McSpadden
@ 2011-04-22 18:10 ` Jarry
2011-04-22 18:22 ` Jeremy McSpadden
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jarry @ 2011-04-22 18:10 UTC (permalink / raw
To: gentoo-user
While before "From" field in messages sent my web-server was:
added by portage for apache <apache@myserver.mydomain.com>
(where "myserver.mydomain.com" is FQDN of my web-server)
After this modification I get mails from:
added by portage for apache <apache@mydomain.com>
But it should come from:
Info <info@mywebdomain.com>
So it is still not what I expect. I simply want ssmtp not to touch
or change "from" field, and let it to be as it is defined by MUA
(in this case it is php(mail) function of my web-server)...
Jarry
On 22. 4. 2011 19:44, Jeremy McSpadden wrote:
> rewriteDomain=yourdomain.com
> hostname=yourdomain.com
>
> --
> Jeremy McSpadden
> deface@uberpenguin.net
>
>
>>
>> I have a strange problem: whenever my web-server sends registration
>> emails, the sender field gets overwritten.
>>
>> "From:" should be:
>>
>> My Web Site<info@mywebsite>
>>
>> But email is delivered to the addressee from:
>>
>> added by portage for apache<apache@mywebsite>
>>
>> Logs on my web-server indicate the mail was handed over to
>> the local MTA with the correct "From:" field. Logs on my
>> mail-server (which is a different machine) show it has
>> already received this mail for delivery with changed "From"
>> field.
>>
>> In between is ssmtp, running on the same machine as web.
>> I'm not quite sure, because I did not find any ssmtp-logs,
>> but I suppose ssmtp is changing "From", simply to the user
>> under which the process is running is substituted into
>> "From" field.
>>
>> My /etc/ssmtp/ssmtp.conf (without comments) is quite simple:
>> root=postmaster
>> mailhub=mymailserver
>>
>> How can I instruct ssmtp not to change "From:" fields
>> in emails?
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
2011-04-22 18:10 ` Jarry
@ 2011-04-22 18:22 ` Jeremy McSpadden
2011-04-22 18:23 ` Jeremy McSpadden
2011-04-22 18:24 ` Jeremy McSpadden
2 siblings, 0 replies; 8+ messages in thread
From: Jeremy McSpadden @ 2011-04-22 18:22 UTC (permalink / raw
To: gentoo-user
What does your code look like? What application is sending the registration emails?
--
Jeremy McSpadden
deface@uberpenguin.net
On Apr 22, 2011, at 1:10 PM, Jarry wrote:
> While before "From" field in messages sent my web-server was:
> added by portage for apache <apache@myserver.mydomain.com>
> (where "myserver.mydomain.com" is FQDN of my web-server)
>
> After this modification I get mails from:
> added by portage for apache <apache@mydomain.com>
>
> But it should come from:
> Info <info@mywebdomain.com>
>
> So it is still not what I expect. I simply want ssmtp not to touch
> or change "from" field, and let it to be as it is defined by MUA
> (in this case it is php(mail) function of my web-server)...
>
> Jarry
>
>
> On 22. 4. 2011 19:44, Jeremy McSpadden wrote:
>> rewriteDomain=yourdomain.com
>> hostname=yourdomain.com
>>
>> --
>> Jeremy McSpadden
>> deface@uberpenguin.net
>>
>>
>>>
>>> I have a strange problem: whenever my web-server sends registration
>>> emails, the sender field gets overwritten.
>>>
>>> "From:" should be:
>>>
>>> My Web Site<info@mywebsite>
>>>
>>> But email is delivered to the addressee from:
>>>
>>> added by portage for apache<apache@mywebsite>
>>>
>>> Logs on my web-server indicate the mail was handed over to
>>> the local MTA with the correct "From:" field. Logs on my
>>> mail-server (which is a different machine) show it has
>>> already received this mail for delivery with changed "From"
>>> field.
>>>
>>> In between is ssmtp, running on the same machine as web.
>>> I'm not quite sure, because I did not find any ssmtp-logs,
>>> but I suppose ssmtp is changing "From", simply to the user
>>> under which the process is running is substituted into
>>> "From" field.
>>>
>>> My /etc/ssmtp/ssmtp.conf (without comments) is quite simple:
>>> root=postmaster
>>> mailhub=mymailserver
>>>
>>> How can I instruct ssmtp not to change "From:" fields
>>> in emails?
>
> --
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
2011-04-22 18:10 ` Jarry
2011-04-22 18:22 ` Jeremy McSpadden
@ 2011-04-22 18:23 ` Jeremy McSpadden
2011-04-22 18:44 ` Jarry
2011-04-22 18:24 ` Jeremy McSpadden
2 siblings, 1 reply; 8+ messages in thread
From: Jeremy McSpadden @ 2011-04-22 18:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
FromLineOverride=NO
--
Jeremy McSpadden
deface@uberpenguin.net
On Apr 22, 2011, at 1:10 PM, Jarry wrote:
> I simply want ssmtp not to touch
> or change "from" field, and let it to be as it is defined by MUA
> (in this case it is php(mail) function of my web-server)...
>
> Jarry
[-- Attachment #2: Type: text/html, Size: 2749 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
2011-04-22 18:10 ` Jarry
2011-04-22 18:22 ` Jeremy McSpadden
2011-04-22 18:23 ` Jeremy McSpadden
@ 2011-04-22 18:24 ` Jeremy McSpadden
2 siblings, 0 replies; 8+ messages in thread
From: Jeremy McSpadden @ 2011-04-22 18:24 UTC (permalink / raw
To: gentoo-user
Sorry, that should be YES
--
Jeremy McSpadden
deface@uberpenguin.net
On Apr 22, 2011, at 1:10 PM, Jarry wrote:
> I simply want ssmtp not to touch
> or change "from" field, and let it to be as it is defined by MUA
> (in this case it is php(mail) function of my web-server)...
>
> Jarry
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
2011-04-22 18:23 ` Jeremy McSpadden
@ 2011-04-22 18:44 ` Jarry
0 siblings, 0 replies; 8+ messages in thread
From: Jarry @ 2011-04-22 18:44 UTC (permalink / raw
To: gentoo-user
Thanks for the tip, that was the point! After setting
FromLineOverride=YES
mails from my web-site have correct "from" field.
btw, I find /etc/ssmtp/ssmtp.conf a little confusing:
# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES
I always thought if a value in config file is commented out,
it is a default value. So I never tried to uncomment it...
Jarry
On 22. 4. 2011 20:23, Jeremy McSpadden wrote:
> FromLineOverride=NO
> Sorry, that should be YES
>
>
> On Apr 22, 2011, at 1:10 PM, Jarry wrote:
>
>> I simply want ssmtp not to touch
>> or change "from" field, and let it to be as it is defined by MUA
>> (in this case it is php(mail) function of my web-server)...
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] ssmtp rewriting "From:" in emails...
[not found] ` <gKtKa-OR-5@gated-at.bofh.it>
@ 2011-04-24 13:02 ` Indi
0 siblings, 0 replies; 8+ messages in thread
From: Indi @ 2011-04-24 13:02 UTC (permalink / raw
To: gentoo-user
On Fri, Apr 22, 2011 at 09:00:02PM +0200, Jarry wrote:
>
> btw, I find /etc/ssmtp/ssmtp.conf a little confusing:
>
> # Set this to never rewrite the "From:" line (unless not given) and to
> # use that address in the "from line" of the envelope.
> #FromLineOverride=YES
>
> I always thought if a value in config file is commented out,
> it is a default value. So I never tried to uncomment it...
>
I always thought that too, until just the other day when it
happened that simply uncommenting a line in privoxy's config
fixed a problem for me. I always thought the commented out
lines were set to default values before that. Pretty sure
*most* are, but apparently not all. Who knew?
--
/\ /\
<\ />
^ caveat utilitor
'v-v'
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-04-24 13:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <gKsbo-6KA-9@gated-at.bofh.it>
[not found] ` <gKsEq-7oO-11@gated-at.bofh.it>
[not found] ` <gKt7r-8jH-9@gated-at.bofh.it>
[not found] ` <gKth8-5s-5@gated-at.bofh.it>
[not found] ` <gKtKa-OR-5@gated-at.bofh.it>
2011-04-24 13:02 ` [gentoo-user] ssmtp rewriting "From:" in emails Indi
2011-04-22 17:07 Jarry
2011-04-22 17:44 ` Jeremy McSpadden
2011-04-22 18:10 ` Jarry
2011-04-22 18:22 ` Jeremy McSpadden
2011-04-22 18:23 ` Jeremy McSpadden
2011-04-22 18:44 ` Jarry
2011-04-22 18:24 ` Jeremy McSpadden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox