FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


middleware:postfix:index.html



Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
middleware:postfix:index.html [2018/02/18 23:18]
kurihara
middleware:postfix:index.html [2019/02/11 00:46] (current)
kurihara
Line 7: Line 7:
 \\ \\
  
-===== Postfix Operation =====+===== Postfix Operation with Fabric =====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ fab -l |grep postfix $ fab -l |grep postfix
Line 16: Line 16:
 </sxh> </sxh>
  
- +\\ 
-==== Ref. Remote Shell Commands ====+==== Fabric Temporary Run Call Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=test-server-1,test-server-2 $ H=test-server-1,test-server-2
  
-$ fab  -H $H auth.pro  -- "ps aux |grep postfix"+$ fab  -H $H   -- "ps aux |grep postfix" 
 + 
 +$ fab  -H $H   -- sudo systemctl status postfix 
 +$ fab  -H $H   -- sudo systemctl restart postfix 
 + 
 +$ fab  -H $H   -- postconf    # list all configuration 
 +$ fab  -H $H   -- postconf -n    # Display only parameters different from default 
 +$ fab  -H $H   -- postconf -d    # list default configuraiton 
  
-$ fab  -H $H auth.pro  -- sudo systemctl status postfix +$ fab  -H $H   -- "ls /var/spool/mqueue |wc -l"    # List Queue 
-$ fab  -H $H auth.pro  -- sudo systemctl restart postfix+$ fab  -H $H   -- "mailq  |wc -l"   # List Queue 
 +$ fab  -H $H   -- "postqueue -p |wc -l" 
 +$ fab  -H $H   -- postcat -q QUEUE_ID    # show Postfix queue file contents
 </sxh> </sxh>
 +
  
  
Line 62: Line 73:
  
 \\ \\
-===== Postfix Configuration =====+===== Postfix Configuration Examples=====
   *[[middleware:postfix:conf001.html]]   *[[middleware:postfix:conf001.html]]
-  *[[middleware:postfix:main.cf.html]] 
  
 +  *[[middleware:postfix:main.cf.html]]
 +  *[[middleware:postfix:transport.html]]
  
  


middleware/postfix/index.html.1518963517.txt.gz · Last modified: 2018/02/18 23:18 by kurihara