YunoHost / packages_old

[not used anymore] YunoHost Debian package sources
http://yunohost.org
8 stars 7 forks source link

Postfix - Remove IP of sender #5

Open Kloadut opened 10 years ago

Kloadut commented 10 years ago

Remove sender IP of the mail header (one line to be added to master.cf).

opi commented 9 years ago

Still relevant ?

Kloadut commented 9 years ago

I guess so, this was reported by Benjamin. Needs investigations :)

julienmalik commented 9 years ago

We do have https://github.com/YunoHost/packages/blob/test/yunohost-config-postfix/config/postfix/main.cf#L126

and :

$ cat /etc/postfix/header_checks
/^X-Originating-IP:/ IGNORE
/^Received:/ IGNORE
/^User-Agent:/ IGNORE
/^X-Mailer:/ IGNORE

But reading http://www.cyberciti.biz/faq/postfix-remove-hide-hostnames-ip-addresses it feels like all Received and X-Originating-IP headers are stripped, unconditionnally, even for emails receives from other SMTP servers, while we could only strip the originating IP of Yunohost users and leave other emails untouched ?

julienmalik commented 9 years ago

and for completeness, I confirm the settings work as expected : I cannot see my originating IP in mails I send via the Yunohost SMTP. Tested via my phone & k9mail.