Organization of mailing list

The driver of forwardfile can be used for organization of simple mailing lists, for example so:

rassylka:
driver = forwardfile
domains = comizdat.lan
no_more
file = /opt/lists/$local_part
no_check_local_user
forbid_pipe
forbid_file
errors_to = $local_part-err@comizdat.lan

In this instance the name of recipient serves as the switch of mailing lists, that letter, sent to address of list1@comizdat.lan, it will be sent on the list of /opt/lists/list1. If such file is not found,, in obedience to the option of no_more, treatment of report will be halted and an error message will be directed to address of list1-err@comizdat.lan. Options with prefix of forbid abolish expansion of the names of addressees to the file or channel name; no_check_local_user abolishes verification of rights for a file. If it is needed to cover delivery, doing its accessible only for certain users, it is possible to add the followings parameters:

require_files =/opt/lists/$local_part
senders = lsearch;/opt/lists/$local_part

 

www.cpp.com.ua