Add postfix guide.
This commit is contained in:
		
							
								
								
									
										12
									
								
								2/SRI/notes/postfix.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								2/SRI/notes/postfix.txt
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user