Hi all,
this is my configuration:
host_1:
- sendmail
- virtusertable with virtualmail: domain.com
- hostname = host_1.domain.com
host_2:
- sendmail
- hostname = host_2.domain.com
Emails sent from the Internet to host_1 are forwarded to host_2 (my internal mail server).
All works as expected, but I have the following problem:
if "form=<user@domain.com" then:
in host_1 (/var/log/mail) I see (as expected):
"form=<user@domain.com" ... relay=host_2 ...
but in host_2 (/var/log/mail) I see:
"form=<user@host_1.domain.com"
In other words if the domain in the "from address" is "domain.com" then:
"domain.com"
is replaced with
"host_1.domain.com"
How to avoid this ?
Any help is appreciated
Regards
Miche
this is my configuration:
host_1:
- sendmail
- virtusertable with virtualmail: domain.com
- hostname = host_1.domain.com
host_2:
- sendmail
- hostname = host_2.domain.com
Emails sent from the Internet to host_1 are forwarded to host_2 (my internal mail server).
All works as expected, but I have the following problem:
if "form=<user@domain.com" then:
in host_1 (/var/log/mail) I see (as expected):
"form=<user@domain.com" ... relay=host_2 ...
but in host_2 (/var/log/mail) I see:
"form=<user@host_1.domain.com"
In other words if the domain in the "from address" is "domain.com" then:
"domain.com"
is replaced with
"host_1.domain.com"
How to avoid this ?
Any help is appreciated
Regards
Miche