Advertisement
Guest User

Untitled

a guest
Nov 14th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. systemmail@adomain.se
  2.  
  3. smtp.gmail.com smtp --port=587 --auth-login --user=systemmail@adomain.se --pass=thepassword--starttls
  4.  
  5. echo "Test 1" | mailq -s "Test one" john.doe@adomain.se
  6.  
  7. $ sendmail -v john.doe@adomain.se <<EOM
  8. > Subject: Test mail four
  9. > The message body
  10. >
  11. > EOM
  12.  
  13. $ cat /var/log/mail.err
  14. Sep 3 14:42:52 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  15. Sep 3 14:43:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  16. Sep 3 14:44:37 nullmailer[1490]: last message repeated 3 times
  17. Sep 3 14:45:37 nullmailer[1490]: last message repeated 2 times
  18. Sep 3 14:46:37 nullmailer[1490]: last message repeated 2 times
  19. $ cat /var/log/mail.log
  20. Sep 3 14:28:17 cow nullmailer[1490]: Rescanning queue.
  21. Sep 3 14:42:52 cow nullmailer[1490]: Trigger pulled.
  22. Sep 3 14:42:52 cow nullmailer[1490]: Rescanning queue.
  23. Sep 3 14:42:52 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  24. Sep 3 14:42:52 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  25. Sep 3 14:42:52 cow nullmailer[1490]: Delivery complete, 1 message(s) remain.
  26. Sep 3 14:43:29 cow nullmailer[1490]: Trigger pulled.
  27. Sep 3 14:43:29 cow nullmailer[1490]: Rescanning queue.
  28. Sep 3 14:43:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  29. Sep 3 14:43:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  30. Sep 3 14:43:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  31. Sep 3 14:43:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  32. Sep 3 14:43:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  33. Sep 3 14:44:29 cow nullmailer[1490]: Rescanning queue.
  34. Sep 3 14:44:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  35. Sep 3 14:44:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  36. Sep 3 14:44:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  37. Sep 3 14:44:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  38. Sep 3 14:44:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  39. Sep 3 14:45:29 cow nullmailer[1490]: Rescanning queue.
  40. Sep 3 14:45:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  41. Sep 3 14:45:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  42. Sep 3 14:45:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  43. Sep 3 14:45:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  44. Sep 3 14:45:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  45. Sep 3 14:46:29 cow nullmailer[1490]: Rescanning queue.
  46. Sep 3 14:46:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  47. Sep 3 14:46:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  48. Sep 3 14:46:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  49. Sep 3 14:46:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  50. Sep 3 14:46:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  51. $ grep nullmailer /var/log/syslog
  52. Sep 3 14:28:17 cow nullmailer[1490]: Rescanning queue.
  53. Sep 3 14:42:52 cow nullmailer[1490]: Trigger pulled.
  54. Sep 3 14:42:52 cow nullmailer[1490]: Rescanning queue.
  55. Sep 3 14:42:52 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  56. Sep 3 14:42:52 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  57. Sep 3 14:42:52 cow nullmailer[1490]: Delivery complete, 1 message(s) remain.
  58. Sep 3 14:43:29 cow nullmailer[1490]: Trigger pulled.
  59. Sep 3 14:43:29 cow nullmailer[1490]: Rescanning queue.
  60. Sep 3 14:43:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  61. Sep 3 14:43:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  62. Sep 3 14:43:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  63. Sep 3 14:43:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  64. Sep 3 14:43:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  65. Sep 3 14:44:29 cow nullmailer[1490]: Rescanning queue.
  66. Sep 3 14:44:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  67. Sep 3 14:44:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  68. Sep 3 14:44:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  69. Sep 3 14:44:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  70. Sep 3 14:44:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  71. Sep 3 14:45:29 cow nullmailer[1490]: Rescanning queue.
  72. Sep 3 14:45:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  73. Sep 3 14:45:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  74. Sep 3 14:45:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  75. Sep 3 14:45:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  76. Sep 3 14:45:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  77. Sep 3 14:46:29 cow nullmailer[1490]: Rescanning queue.
  78. Sep 3 14:46:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  79. Sep 3 14:46:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  80. Sep 3 14:46:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  81. Sep 3 14:46:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  82. Sep 3 14:46:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  83. Sep 3 14:47:29 cow nullmailer[1490]: Rescanning queue.
  84. Sep 3 14:47:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212209.2284
  85. Sep 3 14:47:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  86. Sep 3 14:47:29 cow nullmailer[1490]: Starting delivery: protocol: smtp host: smtp.gmail.com file: 1378212171.2280
  87. Sep 3 14:47:29 cow nullmailer[1490]: Sending failed: Unspecified temporary error
  88. Sep 3 14:47:29 cow nullmailer[1490]: Delivery complete, 2 message(s) remain.
  89.  
  90. $ ls /var/spool/nullmailer/queue/
  91. 1378212171.2280 1378212209.2284
  92. $ ls /var/spool/nullmailer/tmp/
  93. 31464 31468 31672
  94.  
  95. sudo apt-add-repository ppa:mikko-red-innovation/ppa
  96. sudo apt-get update
  97. sudo apt-get install nullmailer=1:1.11-2~precise1~ppa1
  98.  
  99. root# /usr/lib/nullmailer/smtp -h
  100. usage: smtp [flags] remote-address < mail-file
  101. Send an email message via SMTP
  102. -p, --port=INT Set the port number on the remote host to connect to
  103. --user=VALUE Set the user name for authentication
  104. --pass=VALUE Set the password for authentication
  105. -d, --daemon use syslog exclusively
  106. -s, --syslog use syslog additionally
  107. --auth-login Use AUTH LOGIN instead of AUTH PLAIN in SMTP
  108.  
  109. -h, --help Display this help and exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement