Postfix + masquerading

Pagina: 1
Acties:

  • shadax
  • Registratie: Mei 2000
  • Niet online
Ik wil mijn postfix mailserver zo instellen dat niemand ziet dat ik vanaf het interne netwerk mail, mijn config is nu:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
local_destination_concurrency_limit = 2
mail_owner = postfix
masquerade_domains = mijndomein.com, lokaledomein.dom
mydomain = mijndomein.com
myhostname = smtp.mijndomein.com
mynetworks = 192.168.0.0/22, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name

maar als ik een mailtje stuur, dan kan ik in de mailsource nog gewoon zien dat dat mailtje van 192.168.1.10 komt.

  • shadax
  • Registratie: Mei 2000
  • Niet online
:)

  • jant
  • Registratie: Juli 2000
  • Niet online
Op vrijdag 08 juni 2001 01:11 schreef shadax het volgende:
maar als ik een mailtje stuur, dan kan ik in de mailsource nog gewoon zien dat dat mailtje van 192.168.1.10 komt.
Dat noemen ze headers, je kunt er wel iets aan doen, maar of dat allemaal overeenkomt met de smtp RFC's weet ik niet. Je moet dan je tcpstack rebuilden of zoiets.

Een album per dag; een selectie: https://open.spotify.com/playlist/6s3nNLl8pJpCwLR3LPligA?si=dddc51153b2a49e8


  • shadax
  • Registratie: Mei 2000
  • Niet online
Address masquerading is a method to hide all hosts below a domain behind their mail gateway, and to make it appear as if the mail comes from the gateway itself, instead of from individual machines.
Address masquerading is disabled by default. To enable, edit the masquerade_domains parameter in the main.cf file and specify one or more domain names separated by whitespace or commas. For example:

masquerade_domains = $mydomain

In this example, addresses of the form user@host.$mydomain would be rewritten to user@$mydomain.
Het moet dus wel mogelijk zijn om te zorgen dat het lijkt over de mail van de mailserver zelf komt.