[linux-l] Postfix - mysql - IP-Adressen

Peter Ross Peter.Ross at alumni.tu-berlin.de
Mo Jan 21 04:12:03 CET 2008


Hi Steffen,

On Sun, 20 Jan 2008, Steffen Dettmer wrote:

> Ja, denke ich auch, er braucht dann vermutlich zwei Mailserver.
> Vielleicht laufen die auf der selben Hardware, vielleicht in VMs,
> vielleicht aber auch nebeneinander. Kann man vermutlich bei einem
> heutigem Desktop-Linux nicht mehr so einfach machen. 

Warum so pessimistisch? :

postfix(1):

       -c config_dir

Read the main.cf and master.cf configuration files in the named directory 
instead of the default configuration directory.  Use this to distinguish 
between multiple Postfix instances on the same host.

$ fgrep etc /etc/postfix/main.cf
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
#mynetworks = hash:/etc/postfix/network_table
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
# If you change the alias database, run "postalias /etc/aliases" (or
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
#header_checks = regexp:/etc/postfix/header_checks

Anyway, das löst aber enttäuschenderweise nicht Dein Problem, weil die 
Adresse beim _Versenden_ vom Routing und nicht vom Postfix abhängt.

Da hilft nur VMs. Leichtgewichtig mit vserver zu erledigen..

Oder schnell mit jail unter FreeBSD;-)
  make distribution DESTDIR=/myjail
  Starten des jails [mit IP-Adresse]
  Konfiguriere postfix in /myjail/etc/postfix
  NAT jail-IP->external IP
  done

Gruß
Peter


Mehr Informationen über die Mailingliste linux-l