Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:email:smtp.client [2024/12/14 23:09] – [Description] stokitodocs:guide-user:services:email:smtp.client [2024/12/14 23:18] – bb sendmail usage stokito
Line 141: Line 141:
  
 ===== Using BusyBox sendmail ===== ===== Using BusyBox sendmail =====
- 
-  - [[https://busybox.net/downloads/BusyBox.html#sendmail|Documentation]] 
-  - [[https://git.busybox.net/busybox/tree/mailutils/sendmail.c|Sources]] 
  
 ==== Description ==== ==== Description ====
  
-The BusyBox sendmail is a smallest possible implementation but it must be compiled. It works only in smarthost mode.+The BusyBox sendmail is a smallest possible implementation but it must be compiled. 
 +It works only in smarthost mode. TLS is not supported but can be used with ''openssl s_client''
 + 
 +  * [[https://busybox.net/downloads/BusyBox.html#sendmail|Documentation]] 
 +  * [[https://git.busybox.net/busybox/tree/mailutils/sendmail.c|Sources]]
  
 ==== Installation ==== ==== Installation ====
Line 158: Line 159:
 Instead of the variable you may use an option ''-S server[:port]'' to specify the SMTP server. Instead of the variable you may use an option ''-S server[:port]'' to specify the SMTP server.
  
-You may also need ''SMTP_ANTISPAM_DELAY'' env to bypass the Greylisting antispam if it enabled for submission.+You may also need ''SMTP_ANTISPAM_DELAY'' env to bypass the [[wp>Greylisting_(email)|Greylisting antispam]] if it enabled for submission. 
 + 
 +Usage: 
 +<code> 
 +sendmail [-tv] [-f SENDER] [-amLOGIN 4<user_pass.txt | -auUSER -apPASS] 
 + [-w SECS] [-H 'PROG ARGS' | -S HOST] [RECIPIENT_EMAIL]... 
 + 
 +Read email from stdin and send it 
 +Standard options: 
 + -t Read additional recipients from message body 
 + -f SENDER For use in MAIL FROM:<sender>. Can be empty string 
 + Default: -auUSER, or username of current UID 
 + -o OPTIONS Various options. -oi implied, others are ignored 
 + -i -oi synonym, implied and ignored 
 + 
 +Busybox specific options: 
 + -v Verbose 
 + -w SECS Network timeout 
 + -H 'PROG ARGS' Run connection helper. Examples: 
 + openssl s_client -quiet -tls1 -starttls smtp -connect smtp.gmail.com:25 
 + openssl s_client -quiet -tls1 -connect smtp.gmail.com:465 
 + $SMTP_ANTISPAM_DELAY: seconds to wait after helper connect 
 + -S HOST[:PORT] Server (default $SMTPHOST or 127.0.0.1) 
 + -amLOGIN Log in using AUTH LOGIN 
 + -amPLAIN or AUTH PLAIN 
 + (-amCRAM-MD5 not supported) 
 + -auUSER Username for AUTH 
 + -apPASS Password for AUTH 
 + 
 +If no -a options are given, authentication is not done. 
 +If -amLOGIN is given but no -au/-ap, user/password is read from fd #4. 
 +Other options are silently ignored; -oi is implied. 
 +Use makemime to create emails with attachments. 
 +</code> 
  
  
  • Last modified: 2024/12/14 23:20
  • by stokito