1 |
While before "From" field in messages sent my web-server was: |
2 |
added by portage for apache <apache@×××××××××××××××××.com> |
3 |
(where "myserver.mydomain.com" is FQDN of my web-server) |
4 |
|
5 |
After this modification I get mails from: |
6 |
added by portage for apache <apache@××××××××.com> |
7 |
|
8 |
But it should come from: |
9 |
Info <info@×××××××××××.com> |
10 |
|
11 |
So it is still not what I expect. I simply want ssmtp not to touch |
12 |
or change "from" field, and let it to be as it is defined by MUA |
13 |
(in this case it is php(mail) function of my web-server)... |
14 |
|
15 |
Jarry |
16 |
|
17 |
|
18 |
On 22. 4. 2011 19:44, Jeremy McSpadden wrote: |
19 |
> rewriteDomain=yourdomain.com |
20 |
> hostname=yourdomain.com |
21 |
> |
22 |
> -- |
23 |
> Jeremy McSpadden |
24 |
> deface@×××××××××××.net |
25 |
> |
26 |
> |
27 |
>> |
28 |
>> I have a strange problem: whenever my web-server sends registration |
29 |
>> emails, the sender field gets overwritten. |
30 |
>> |
31 |
>> "From:" should be: |
32 |
>> |
33 |
>> My Web Site<info@mywebsite> |
34 |
>> |
35 |
>> But email is delivered to the addressee from: |
36 |
>> |
37 |
>> added by portage for apache<apache@mywebsite> |
38 |
>> |
39 |
>> Logs on my web-server indicate the mail was handed over to |
40 |
>> the local MTA with the correct "From:" field. Logs on my |
41 |
>> mail-server (which is a different machine) show it has |
42 |
>> already received this mail for delivery with changed "From" |
43 |
>> field. |
44 |
>> |
45 |
>> In between is ssmtp, running on the same machine as web. |
46 |
>> I'm not quite sure, because I did not find any ssmtp-logs, |
47 |
>> but I suppose ssmtp is changing "From", simply to the user |
48 |
>> under which the process is running is substituted into |
49 |
>> "From" field. |
50 |
>> |
51 |
>> My /etc/ssmtp/ssmtp.conf (without comments) is quite simple: |
52 |
>> root=postmaster |
53 |
>> mailhub=mymailserver |
54 |
>> |
55 |
>> How can I instruct ssmtp not to change "From:" fields |
56 |
>> in emails? |
57 |
|
58 |
-- |
59 |
_______________________________________________________________ |
60 |
This mailbox accepts e-mails only from selected mailing-lists! |
61 |
Everything else is considered to be spam and therefore deleted. |