ceu-notes/2/SRI/notes/postfix.txt

13 lines
395 B
Plaintext
Raw Normal View History

2022-11-17 17:53:50 +00:00
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
2022-11-28 15:21:58 +00:00
echo 'export MAIL=~/Maildir' >> /etc/bash.bashrc >> /etc/profile.d/mail.sh
2022-11-17 17:53:50 +00:00
source /etc/profile.d/mail.sh
cat | s-nail -s 'Test' -Snorecord usuario@domin.io