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