Update securemail with full path to sendmail
This commit is contained in:
		
					parent
					
						
							
								e429c7adda
							
						
					
				
			
			
				commit
				
					
						7cb93260bd
					
				
			
		
					 2 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
#!/usr/bin/env python3
 | 
					o#!/usr/bin/env python3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import argparse
 | 
					import argparse
 | 
				
			||||||
import datetime
 | 
					import datetime
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,20 +28,19 @@ HOST="root@mx.ungleich.ch"
 | 
				
			||||||
HOST="oneadmin@kaffee.ungleich.ch"
 | 
					HOST="oneadmin@kaffee.ungleich.ch"
 | 
				
			||||||
HOST="root@mx-hetzner01.ungleich.ch"
 | 
					HOST="root@mx-hetzner01.ungleich.ch"
 | 
				
			||||||
HOST="root@mx.place5.ungleich.ch"
 | 
					HOST="root@mx.place5.ungleich.ch"
 | 
				
			||||||
 | 
					HOST="nico-vm.schottelius.org"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ $# -ge 1 ]; then
 | 
					if [ $# -ge 1 ]; then
 | 
				
			||||||
    HOST=$1; shift
 | 
					    HOST=$1; shift
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#    -R :4242:localhost:22               \
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ssh -T -f -C -N \
 | 
					ssh -T -f -C -N \
 | 
				
			||||||
    -L[::1]:2323:localhost:$IMAPS        \
 | 
					    -L[::1]:2323:localhost:$IMAPS        \
 | 
				
			||||||
    -L[::1]:4241:localhost:$SMTP         \
 | 
					    -L[::1]:4241:localhost:$SMTP         \
 | 
				
			||||||
    -L2324:imap.googlemail.com:$IMAPS   \
 | 
					    -L2324:imap.googlemail.com:$IMAPS   \
 | 
				
			||||||
    -L2325:mail.zhaw.ch:$IMAPS          \
 | 
					    -L2325:mail.zhaw.ch:$IMAPS          \
 | 
				
			||||||
    -L2326:imap.googlemail.com:$POP3S   \
 | 
					    -L2326:imap.googlemail.com:$POP3S   \
 | 
				
			||||||
    "$HOST" && sendmail -q
 | 
					    "$HOST" && /usr/sbin/sendmail -q
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Fernzugriff
 | 
					# Fernzugriff
 | 
				
			||||||
# ssh -T -f -C -N -R4242:localhost:22 "$HOST"
 | 
					# ssh -T -f -C -N -R4242:localhost:22 "$HOST"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue