What does your code look like? What application is sending the registration 
emails?

--
Jeremy McSpadden
def...@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 <apa...@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 <apa...@mydomain.com>
> 
> But it should come from:
>       Info <i...@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
>> def...@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.
> 
> 
> 




Reply via email to