Any file name that contains spaces or special characters must be quoted. The header will be appended to the message headers created from "to", "from", "subject", etc. The headers must of the format "header: value" as specified in RFC For example, to send HTML mail:.
The values are:. In all other cases, SSL negotiation will be implicit. Contents Contents Index Search. Scroll Prev Top Next More. Purpose :. Format :. The attachment files. The destination email address. The subject line. The message to send. The file containing the message body.
SSL negotiation type. The process always sleeps at least 5 seconds if the queue was empty in the previous queue run. Limit processed jobs to those containing substr as a substring of the queue id or not when! Limit processed jobs to quarantined jobs containing substr as a substring of the quarantine reason or not when! Limit processed jobs to those containing substr as a substring of one of the recipients or not when!
Limit processed jobs to those containing substr as a substring of the sender or not when! Quarantine a normal queue items with the given reason or unquarantine quarantined queue items if no reason is given. This should only be used with some sort of item matching using as described above.
Set the amount of the message to be returned if the message bounces. The return parameter can be " full " to return the entire message or " hdrs " to return only the headers.
In the latter case, local bounces return only the headers. Read message for recipients. To: , Cc: , and Bcc: lines will be scanned for recipient addresses.
The Bcc: line are deleted before transmission. Set the original envelope id. Go into verbose mode. Alias expansions will be announced, etc. Log all traffic in and out of mailers in the indicated log file. This should only be used as a last resort for debugging mailer bugs. It will log a lot of data very quickly.
On mailers that are considered "expensive" to connect to, don't initiate immediate connection. This requires queueing. Checkpoint the queue file after every N successful deliveries default This avoids excessive duplicate deliveries when sending to long mailing lists interrupted by system crashes.
Set the delivery mode to x. Delivery modes are " i " for interactive synchronous delivery, " b " for background asynchronous delivery, " q " for queue only; i. Set error processing to mode x. Valid modes are " m " to mail back the error message, " w " to "write" back the error message or mail it back if the sender is not logged in , " p " to print the errors on the terminal default , " q " to throw away error messages only exit status is returned , and " e " to do special processing for BerkNet.
If the text of the message is not mailed back by modes " m " or " w " and if the sender is local to this machine, a copy of the message is appended to the file dead. Send error messages in MIME format.
If set, this message may have old style headers. If not set, this message is guaranteed to have new style headers i. If set, an adaptive algorithm is used that will correctly determine the header format in most cases.
Set the timeout on undelivered messages in the queue to the specified time. After delivery has failed e. The default is five days. Note: If you have set up a mail sending server or Mail Transfer Agents like Postfix or sendmail and trying to send test mail using Gmail SMTP and getting some authentication error then no need to worry because there are few additional security-related configurations which you need to be done on Gmail.
For more help, refer to this link. The most common reason for emails landing in spam is the domain or IP blacklist. Use tools to check the blacklist status and ways to improve your email delivery. Become an author. Introduction Linux by default comes with a mail command which can be used to sendmail from command line.
Optional Step: In case you don't have sendmail or postfix installed You can follow the below links to install and configure a Mail Transfer Agent: How to install Postfix How to install Sendmail Postfix is definitely the most powerful open source to send mail, but if you just want to send a simple test mail, then try ssmtp or msmtp.
0コメント