SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


aixmail
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

aixmail [2013/02/03 14:48]
sjoerd created
aixmail [2013/02/03 14:51] (current)
sjoerd
Line 9: Line 9:
 == Manually == Manually
 <​code>​ <​code>​
-/​home/​sjoerd>​mail -s "​testsubject" ​sjoerd_warmetal.nl+/​home/​sjoerd>​mail -s "​testsubject" ​sjoerd_getshifting.com
 Test body Test body
 . .
Line 21: Line 21:
 You can mail logfiles for example by catting them into the mail: You can mail logfiles for example by catting them into the mail:
 <​code>​ <​code>​
-/​home/​sjoerd>​cat smit.log | mail -s "​logfile" ​sjoerd_warmetal.nl+/​home/​sjoerd>​cat smit.log | mail -s "​logfile" ​sjoerd_getshifting.com
 </​code>​ </​code>​
  
Line 27: Line 27:
 Add email addresses to the mail command: Add email addresses to the mail command:
 <​code>​ <​code>​
-/​home/​sjoerd>​cat smit.log | mail -s "​logfile" ​sjoerd_warmetal.nl info_warmetal.nl sjoerd.hooft_warmetal.nl+/​home/​sjoerd>​cat smit.log | mail -s "​logfile" ​sjoerd_getshifting.com info_getshifting.com sjoerd.hooft_getshifting.com
 </​code>​ </​code>​
  
Line 36: Line 36:
 <code bash> <code bash>
 sjoerd@server:/​home/​sjoerd>​cat .forward sjoerd@server:/​home/​sjoerd>​cat .forward
-sjoerd_warmetal_nl+sjoerd_getshifting_com
 </​code>​ </​code>​
 > Note: Fill in an existing email address of course, this is where the mail will be send. > Note: Fill in an existing email address of course, this is where the mail will be send.
Line 46: Line 46:
 # ... define this only if sendmail cannot automatically determine your domain # ... define this only if sendmail cannot automatically determine your domain
 #​Dj$w.Foo.COM #​Dj$w.Foo.COM
-Djcompany.local+Djshift.local
  
 # "​Smart"​ relay host (may be null) # "​Smart"​ relay host (may be null)
Line 117: Line 117:
 = Mail examples = Mail examples
 <code bash> <code bash>
-> mail -s "​test" ​sjoerd_warmetal_nl+> mail -s "​test" ​sjoerd_getshifting_com
 test test
 . .
Line 127: Line 127:
 { {
         (for k in ${1}; do uuencode $k ${k##*/}; done) | \         (for k in ${1}; do uuencode $k ${k##*/}; done) | \
-            mailx -r sjoerd-noreply_warmetal_nl ​-s "​Attachment(s) for me" ​sjoerd_warmetal_nl+            mailx -r sjoerd-noreply_getshifting_com ​-s "​Attachment(s) for me" ​sjoerd_getshifting_com
 } }
 </​code>​ </​code>​
  
 {{tag>​aix email}} {{tag>​aix email}}
aixmail.txt ยท Last modified: 2013/02/03 14:51 by sjoerd