E-mail delivery agent using linux's sendmail command
Editor to share with you the use of linux sendmail command email delivery agent, I hope you will learn a lot after reading this article, let's discuss it together!
The sendmail command is a well-known e-mail delivery agent, commonly known as an e-mail server, based on the standard simple Mail transfer Protocol (SMTP).
Sendmail is only responsible for mail delivery, not responsible for mail writing and display and other functions.
Syntax format: sendmail [parameters]
Common parameters:
-bd runs commands in daemon mode-bD runs commands in foreground mode-bi initializes alias database-bm sends email routinely-bp displays mail sending queue-C specifies configuration file-D saves debug output to the specified log file Does not appear on the standard output device-F specifies the right sender's full name-f specifies the sender's name-n disables the use of mail aliases-Q sets the interval between processing messages in the mail queue
Reference example
Run sendmail as a daemon:
[root@linuxcool ~] # sendmail-bd
The use of mail aliases is prohibited:
[root@linuxcool ~] # sendmail-n
Send an email to user1:
[root@linuxcool] # sendmail-f user1
Output the debug information to test:
[root@linuxcool] # sendmail-D test
Run the command in the foreground:
[root@linuxcool] # sendmail-bD has finished reading this article. I believe you have some understanding of the sendmail command email transfer agent using linux. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!