From 84cadf3fb44614631533c98c2b76cc8a84da632c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega=20Froysa?= Date: Thu, 17 Nov 2022 18:53:50 +0100 Subject: [PATCH] Add postfix guide. --- 2/SRI/notes/postfix.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 2/SRI/notes/postfix.txt diff --git a/2/SRI/notes/postfix.txt b/2/SRI/notes/postfix.txt new file mode 100644 index 0000000..0d14143 --- /dev/null +++ b/2/SRI/notes/postfix.txt @@ -0,0 +1,12 @@ +apt install postfix +postconf -e 'home_mailbox=Maildir/' +postconf -e 'virtual_alias_maps=hash:/etc/postfix/virtual' + +# In /etc/postfix/virtual +usuario@domin.io usuario-real + +postmap /etc/postfix/virtual +systemctl restart postfix +echo 'export MAIL=~/Maildir' | tee -a /etc/bash.bashrc | tee -a /etc/profile.d/mail.sh +source /etc/profile.d/mail.sh +cat | s-nail -s 'Test' -Snorecord usuario@domin.io