Компиляция своего фильтра Sendmail+milter
Добавлено: 2013-03-01 19:15:50
Доброго времени суток!!
Есть вопрос, как можно откапилеть свой фильтр (milter) для Sendmail
Я на офф сайте milter наткнулся вот на это
Installation
Compiling and Installing Your Filter
To compile a filter, modify the Makefile provided with the sample program, or:
• Put the include and Sendmail directories in your include path (e.g. -I/path/to/include -I/path/to/sendmail).
• Make sure libmilter.a is in your library path, and link your application with it (e.g. "-lmilter").
• Compile with pthreads, either by using -pthread for gcc, or linking with a pthreads support library (-lpthread).
Your compile command line will look like
cc -I/path/to/include -I/path/to/sendmail -c myfile.c
and your linking command line will look something like
cc -o myfilter [object-files] -L[library-location] -lmilter -pthread
я не селен в английском а google переводит не очень понятно. Может кто то сталкивался
Есть вопрос, как можно откапилеть свой фильтр (milter) для Sendmail
Я на офф сайте milter наткнулся вот на это
Installation
Compiling and Installing Your Filter
To compile a filter, modify the Makefile provided with the sample program, or:
• Put the include and Sendmail directories in your include path (e.g. -I/path/to/include -I/path/to/sendmail).
• Make sure libmilter.a is in your library path, and link your application with it (e.g. "-lmilter").
• Compile with pthreads, either by using -pthread for gcc, or linking with a pthreads support library (-lpthread).
Your compile command line will look like
cc -I/path/to/include -I/path/to/sendmail -c myfile.c
and your linking command line will look something like
cc -o myfilter [object-files] -L[library-location] -lmilter -pthread
я не селен в английском а google переводит не очень понятно. Может кто то сталкивался