Français
English
Deutsches
Español
Italiano
Nederlands
Portuguais
Esperanto
Libremail softwares can be used freely
and without anything to pay.
Translation carried out by a software. Please excuse its defects.
|
Reception |
General presentation List tools available to date: Filtering of the mails of the server
Destroy the mails of certain shippers identified by: The generic addresses call upon the following metacharacters: By default, the list of the shippers of mails which one destroys the messages is not preserved. If one wishes to do it, the option -t makes it possible to choose the name of the file which will contain the addresses of shipper (declared) of these malls and the date of their destruction. Destroy the malls of which of subject contains character strings refused. The character strings which one does not want to see appearing in the subjects of the mails are memorized in the file refus_sujet located in the root directory of the mailer (4th line of the configuration file). The syntax of the lines of heading of the mails (of which the one containing the subject) imposes the use encodings for the special characters, like accentuated characters. By default, the subjects of the mails are examinated after conversion of these special characters. The option -O makes it possible to examine the Original character strings before conversion. With the option -o, the original character strings and the converted strings are both tested. By default, the list of the mails which one refuses the subject is not preserved. If one wishes to do it, the option -t makes it possible to choose the name of the file which will contain the subjects of these mails and the date of their destruction. Destroy the mails which one refuses the recipient. This order is interesting for the spams when the same mail is sent to several recipients having addresses alphabetically close. The character strings which one does not want to see appearing as recipient of the mails are memorized in the file refus_dest located in the root directory of the transport (4th line of the configuration file). The syntax of the lines of heading of the mails (of which the one containing the recipient) imposes the use encodings for the special characters, like accentuated characters. By default, the recipients of the mails are examinated after conversion of these special characters. The option -O makes it possible to examine the Original character strings before conversion. With the option -o, the original character strings and the converted strings are both tested. By default, the list of the mails which one refuses the recipient is not preserved. If one wishes to do it, the option -t makes it possible to choose the name of the file which will contain the recipients of these mails and the date of their destruction. Destroy the mails whose field name field contains character strings refused. It acts of an order generic than the 2 preceding ones. The character strings which one does not want to see appearing in the field_name field are memorized by defect in the file refus_field_name located in the root directory of the transport (4th line of the configuration file). It is possible to specify another file using the option -f. By default, this file is recovered in the root directory of the transport, unless an absolute access path is not specified, or relative to this directory. The syntax of the lines of heading of the mails imposes the use of encodings for the special characters, among which accentuated characters. By default, the selected fields are examinated after conversion of these special characters. The option -O makes it possible to examine the Original character strings before conversion. With the option -o, the original character strings and the converted strings are both tested. By default, the list of the mails which one filters starting from a field is not preserved. If one wishes to do it, the option -t makes it possible to choose the name of the file which will contain the field name field of these mails and the date of their destruction. Analyze the header of the mails and memorizes in 2 distinct files: Destroy the mails in pure HTML (often of not requested publicities) and try to inform their shipper (who for publicities give a false address most of the time!). By default, when this field exists, the warning mail is sent to the address appearing in the Return-Path field: (address in return) appearing in the heading of the destroyed mail, rather than to the address of the declared shipper (From field:), who is not always the real shipper. But the use of the address in return can make problem if the mail results from a discussion or diffusion list (mailling list). The option -e makes it possible to send the warning mails to the addresses of shippers (From field:) By default, the warning mail is sent with the true address of the recipient who refused the message. The problem is that some suppliers of spams use the addresses of the messages sent in response to spam even more! The option -p makes it possible to add a prefix with the address which will appear in the heading of the mail. The prefix by defect (option -pd) is suphtm. For example if the address of the shipper is: truc@fournisseur.fr, the shipper appearing in the heading of the mall sent will be: suphtm-truc@fournisseur.fr One can put the prefix of its choice by using syntax: suphtm -p prefix_chosen configuration_file The option -s is a "quiet" option. No mail is sent to inform the shippers of mails in pure HTML that their message was destroyed. Even if this option is not ideal with the honest shippers, it can constitute a last recourse against the morons while avoiding to let them know that the letter-box is consulted. By defect, the list of the shippers of mails in pure HTML which one destroys the messages is not preserved. If one wishes to do it, the option -t makes it possible to choose the name of the file which will contain the addresses of (declared) shipper of these mails and the date of their destruction. Destroys the mails which exceed a size limit and which does not come from a shipper authorized to send them. The addresses of authorized shippers are memorized in the file accept_gros located in the root directory of the mailer (4th line of the configuration file). The shipper of these messages is warned by a mail which is also sent copies some with the recipient of the destroyed message. Destroyed the mails received in hidden copy, and try to inform the shippers of these mails. By default, the mail of warning is sent with the true one addresses of the shipper. The problem is that certain shippers of spams use the addresses of the messages sent in response for spammer even more! The option -p makes it possible to add a prefix with the address which will appear in the heading of the generated mail. The prefix by default (option -pd) is supbcc. For example if the address of the shipper is: truc@fournisseur.fr, the shipper appearing in the heading of the mail sent will be: supbcc-truc@fournisseur.fr A chosen prefix can be put the using syntax: supbcc -p chosen_prefix configuration_file The option -s is a "quiet" option. No mail is sent to inform the shippers of mails in hidden copy that their message was destroyed. Even if this option is not ideal with the honest shippers, it can constitute a last recourse against the morons while avoiding letting them know that the letter-boxes is consulted. By default, the list of the shippers of mails in hidden copy whose messages are destroyed is not preserved. If one wishes to do it, the option -t makes it possible to choose the name of the file which will contain the addresses of (declared) shipper of these mails and the date of their destruction. Destroy from the server of transport the mails whose numbers are passed as a parameter. The mails numbers are those displayed by the command sjmails . With the option -a, all the mails present on the server of transport are destroyed. If not, one can indicate one or more mail numbers to be destroyed. If there are several mails to destroy, their numbers are separated by , (without space between the numbers). One can also define intervals by using the character - : first_number-last_number Visualization of the mails of the server
Display the number of mails present on the transport server. By defect, a sentence indicates the number of mails present. With the option -n posting is limited to a number. Display the characteristics of all the mails present on the server. 3 views are available: The default view is the one of the -s option. In the simplified view (options -s and -e), the displayed lines contain by default 80 characters. The option -w allows to modify the number of characters per lines. By default, the mails are sorted in the order of their arrival on the server of transport. With the option -i they are sorted from the last arrived to the first one. Display the contents of a mail present on the server. If a field of the header (in particular To: and Cc:) occupy several lines, only the first line will be displayed. The downloading of the mail will make it possible to see this field in entirety. If the e-mail includes several sections, this command displays the text of the e-mail and the names of the joined files. If the option -h is used, it is the section text/html (without conversion of the beacons) which is displayed instead of the section text/plain. If the option -H is used, the text/html section is displayed after removing HTML tags and conversion of special characters like &...; If a joined file name has at least 2 extensions, or only one extention other than .exe , and than the contents of the file starts with the signature of achievable MS-DOS/Windows , the indication VIRUS ? will be also displayed. Downloading of mails
Download the mails of the server and memorizes them in files of name r<number>.n (with a sequence number on 7 digits). It is also possible to download a particular mail (identified by its number). In this case, this mail is preserved on the server. The mail numbers are those displayed by the command sjmails . By default, if all the mails are downloaded, it are removed server. If one downloads one of them, it is preserved on the server. The option -k makes it possible to preserve downloaded mail(s) on the server in all the cases. The option -d allows to remove them in all the cases. Alternative of chargemail, more particularly intended for those which use a traditional telephone line. The problem at the time of a downloading of a significant list of mails (with chargemail as with the mailers of the trade) is that in the event of stop of transmission during the downloading, the recovered mails remain on the server and will again be downloaded the following time. To avoid this problem, chargepartaille downloads initially the smallest mails, then by increasing size, and periodically removes server the already downloaded mails, without waiting all of them to be downloaded. Download the mails of the server whose field field_name contains the character strings field_string (operation by default). The option -n permit to download the mails whose field_name field does not contain this character strings. By default, the downloaded mails are removed server. The option -k makes it possible to preserve them on the server. The option -d has no effect (default option) and exists only for the syntax compatibility with the chargemail command. Download the mails of the server coming from a shipper indexed in the file accept_adr located in the root directory of the transport (4th line of the configuration file). By default, the downloaded mails are removed server. The option -k makes it possible to preserve them on the server. The option -d has no effect (default option) and exists only for the syntax compatibility with the chargemail command. Download the mails of the server whose field field_name contains character strings indexed by defect in the fileaccept_field_name located in the root directory of the transport (4th line of the configuration file). It is possible to specify another file with the option -f. By default, this file is recovered in the root directory of the transport, unless an absolute access path is specified, or a relative path to this directory. By default, the downloaded mails are removed server. The option -k makes it possible to preserve them on the server. The option -d has no effect (default option) and exists only for the syntax compatibility with the chargemail command. Tool allowing the sorting of the downloaded mails files
Displays for each mail of a directory the lines of the header starting by a key word, preceded by the name of the file concerned. This tool combined with grep (fgrep, egrep), sed, cut, mv, etc... makes possible to distribute the downloaded mails files in various directories according to their characteristics: A very complete shell file is provided as an example. Visualization of the downloaded mails
Display the characteristics of the files mails present in a particular directory. 2 views are available:
The mails are classified by order ascending of the file names. In this view, the displayed lines contain by default 80 characters. The option -w allows to modify the number of characters per lines. The option -i reverses the display order. The mails are sorted by decreasing numerical order of the file names (or by decreasing ASCII order). Display the contents of a particular mail file. If the e-mail file has several sections, this command displays the text of the e-mail and the names of the joined files. If the option -h is used, it is the section text/html (without conversion of the beacons) which is displayed in the place of the section text/plain. If the option -H is used, the text/html section is displayed after removing HTML tags and conversion of special characters like &...; If a joined file name has at least 2 extensions, or only one extention other than .exe , and than the contents of the file starts with the signature of achievable MS-DOS/Windows, the indication the indication VIRUS ? will be also displayed. Integrated environment for processing the mail files
Display the tree structure of the directories intended for the mail files and allows: However, the analysis which does not carry that on the file names is less fine than that of vmailsj . The option -i is not used directly by vmaildir but passed in parameter at when vmailsj is called to reverse the display order. Too minor defect to justify a correction: The first time that one creates or that a mail is removed, subdirectory (sortie or poubelle) is created. It will not appear immediatly in the list of the displayed directories. It will be necessary to start again vmaildir to see it. Display the principal characteristics of the files mail of a directory (a line by mail). By default, mails are sorted by date and hour crescents (time zone untreated, in accordance with the majority European tendency for the adjustment and the configuration of the machines). The option -i makes it possible to reverse the display order. According to the nature of the mail (entering or outgoing), it is either the shipper, or the recipient which is displayed. One can: The not yet visualized entering mails (.n suffix) are displayed in intensified brightness. After the first examination, these files are displayed in normal brightness or do not appear any more in the list if they were removed. Displays the contents of a mail file (text of the mail and names of the joined files) and allows: Recovery of joined files
Recover the joined files contained in a mail. If the root of the directories of the transport is known (call since vmaildir -> vmailsj -> vmailfic),the joined files are memorized in: The recovered file names will not contain spaces. Creation of mail files
The files mails created have a name of the form e<number> with a sequence number of 7 digits. They are memorized in the directory sortie . The text editor vi is used by defect. If one prefers to use another editor, it will be enough to put its name in the variable of environment $EDITOR. Creation of a mail file. Allows to seize the subject of the mail, the message, then to select the recipients from the address book (file carnet-adr located in the root directory of the mailer - 4th line of the configuration file). One can also manually seize recipients who do not appear in the address book. All the types of recipients (principal, in copy and hidden copy) are accepted. If a file signature was created in the root transport directory, its contents, preceded by a line by indents, is added at the end of the text of the created mails. Response to a received mail file. The subject of the mail of answer is generated automatically. The message is reproduced (principal fields of the header included) with > on each line. The list of possible joined files (but not their contents) is added at the end of the message. The possible signature (see cremail) also appears. One can seize the answer under editor vi or the editor mentioned in the environment variable $EDITOR. The choice of the recipients of the answer is done automatically starting from a menu offering up to 7 possibilities. Redirection of a mail received towards other recipients. The subject of the transferred mail is generated automatically. The transferred mail includes the text of the mail (in text mode) The possible signature of the reexpeditor is not added. One can select the recipients starting from the address book and choose some others which do not appear in it. Tool which makes it possible to add enclosures to a mail to send. The names of the joined files can be passed in parameter or be seized with the keyboard. The possible spaces in the file names are removed automatically. Sending of mail files
Send the mails present in the directory sortie and moves the corresponding files in the directory of the mails envoyes . If the files mail do not comprise mention of shipper, it is added starting from the file of configuration. Notes The automatic sending of mails by the tools of filtering suphtm and supgrosmail (see in chapter 1) does not leave a file in the directory envoyes . The file of configuration The file of configuration often mentioned in this documentation contains 6 lines:
To sum up, the first 3 lines of the configuration file contains
the information necessary to read the messages received.
Instead of specifying the name user and/or the password (in light)
in the file of configuration, one can ask the operator to seize
it. 3. ?pass
It is also possible to specify in the configuration file a crypted
password. To avoid revealing whole or part of the key of encoding
by using it 2 times, the username will remain without encoding. Let see the following chapter for more details on the manner of proceeding.
By default, the various tools Libremail use the port for 25
communicating with the SMTP server. If your Internet service
provider requires using another port for sending mail, you can
specify in the last line of the configuration file after the
SMTP server name.
Sometimes, Internet suppliers impose to use SMTP authentication
to send mails. In this case, a file is needed to describe the
authentication process.
6. >
SMTP_authentication_file_path See Chapter 12 for a description of the contents of the authentication file. Encoding of the password To use passwords encoded in the files of configuration, one will do in the following way:
Notice about the safety of encoding: It acts of a simple and reversible encoding. To guarantee the confidentiality of the crypted passwords, it is recommended not to keep the file clecrypt.h and achievable cryptepass on the machine (and a fortiori on the account user) which contains the configuration file with the crypted password. Nevertheless, without decoding the password, there will remain possible with a third person to reach the mails if she recovers at the same time the file of configuration and the commands described in chapters 2 and 3 of this documentation. Despite everything, if the same password is used for the management of a Web site and for associated account email, this encoding will make the password less visible. The command cryptepass of Libremail or how it works, must be knowned to decrypt the password. The SMTP authentication file To achieve a SMTP authentication before sending mails, it is necessary to create a file with the authentication following structure:
The first few lines of the authentication describe features of the SMTP connection. The first line contains the name of the SMTP server used by the Internet service provider to which you are connected. That would be the information of the 6th line of the configuration file if SMTP authentication was not required. By default, the SMTP connection uses port 25. If it is necessary to use another port, it is shown in the following line under form: port port_number A blank line it is necessary to indicate that the first part of authentication file is complete.
The text lines that follow contain different messages sent to the
SMTP server to perform authentication. Messages dialogue authentication are transmitted using BASE64 encoding. To simplify the seizure of response to send, it's possible to ask Libremail to make the conversion. To this end, line to be converted will begin with the string of 4 characters "b64 " followed by the message to be sent in clear. Example
The provider Tele2 uses in France the SMTP server smtp.tele2.fr
with whom we can talk through the port 587. Suppose a user has the cxu-1a2-b3c account and he has chosen as a password supersecret (super secrecy). His SMTP authentication file can be:
port 587 auth login b64 cxu-1a2-b3c b64 supersecret
It may be preferable not to let certain information in clear
in the authentication file. For this, the tool convb64
lets you convert a line of text in base64 if we tape b64
at the beginning of the line, or from the base64 if the tape
directly on the string to be converted.
port 587 auth login Y3h1LTFhMi1iM2M= c3VwZXJzZWNyZXQ= |