rewriteDomain=yourdomain.com hostname=yourdomain.com -- Jeremy McSpadden def...@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. > > >