From ef094400a3f7c8e9d4ca20a7205ec17a11e5c8a0 Mon Sep 17 00:00:00 2001 From: fauno Date: Wed, 3 Sep 2014 15:25:12 -0300 Subject: [PATCH] enviar hacia internet tambien --- contrib/postfix/README.md | 13 +- contrib/postfix/main.cf | 2 + contrib/postfix/transport | 299 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 311 insertions(+), 3 deletions(-) create mode 100644 contrib/postfix/transport diff --git a/contrib/postfix/README.md b/contrib/postfix/README.md index 722aa85..d9e0b44 100644 --- a/contrib/postfix/README.md +++ b/contrib/postfix/README.md @@ -1,7 +1,7 @@ # Correo entre nodos de LibreVPN -Copiá el archivo main.cf en este directorio a `/etc/postfix` o adaptalo -a tu configuración actual. +Copiá los archivos main.cf y transport en este directorio a +`/etc/postfix` o adaptalos a tu configuración actual. Lo importante es cambiar el valor de `myhostname` por el nombre de tu nodo.local, lo que va a ser el @nodo.local de tu cuenta normal. @@ -12,10 +12,14 @@ Por ejemplo para fauno en naven.local, la dirección de correo va a ser Los correos recibidos se guardan en `~/Maildir` para cambiar esto, adapta la variable `home_mailbox`. +Además, para que postfix reconozca el archivo transport, hay que +ejecutar `postmap /etc/postfix/transport` cada vez que se lo modifica. + # Email between LibreVPN nodes -Copy `main.cf` inside `/etc/postfix` or adapt it to your actual config. +Copy `main.cf` and `transport` inside `/etc/postfix` or adapt them to +your actual config. You need to change the `myhostname` variable to the name of your node.local, which is going to be your @node.local address. @@ -26,6 +30,9 @@ address. Email will be saved on `~/Maildir`. To change this, adapt the `home_mailbox` var. +Remember to run `postmap /etc/postfix/transport` for postfix to +recognize this file. + # Test diff --git a/contrib/postfix/main.cf b/contrib/postfix/main.cf index 6634fe1..f3dfe74 100644 --- a/contrib/postfix/main.cf +++ b/contrib/postfix/main.cf @@ -663,3 +663,5 @@ readme_directory = /usr/share/doc/postfix smtp_host_lookup = native ignore_mx_lookup_error = yes smtp_dns_support_level = enabled + +transport_maps = hash:/etc/postfix/transport diff --git a/contrib/postfix/transport b/contrib/postfix/transport new file mode 100644 index 0000000..57b3388 --- /dev/null +++ b/contrib/postfix/transport @@ -0,0 +1,299 @@ +# TRANSPORT(5) TRANSPORT(5) +# +# NAME +# transport - Postfix transport table format +# +# SYNOPSIS +# postmap /etc/postfix/transport +# +# postmap -q "string" /etc/postfix/transport +# +# postmap -q - /etc/postfix/transport