Commit Graph

581 Commits

Author SHA1 Message Date
Janos SUTO
15c9fa7101 Retire piler child after processing max_requests_per_child messages
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-06 14:42:07 +01:00
Janos SUTO
ae1d551db4 Added more signals to result p_clean_exit()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-06 11:59:24 +01:00
Janos SUTO
2ca822c689 fix buffering issue introduced with the simplifed handle_data()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-04 20:16:30 +01:00
Janos SUTO
1d0019ff35 simplified handle_data()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-04 19:50:37 +01:00
Janos SUTO
a48e3c74df fix opendocument text extraction
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-04 13:21:19 +01:00
Janos SUTO
553d7e92c0 truncate extremely long from address and message_id
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-03 11:20:55 +01:00
Janos SUTO
6939b7fe45 added missing include file to test.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-03 10:37:19 +01:00
Janos SUTO
e18ec3a701 revised smtp protocol handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-02 22:46:48 +01:00
Janos SUTO
52d44ddee1 added option to specify a different config file for pilertest
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-28 14:19:58 +01:00
Janos SUTO
e284d15801 reset rcpt_domain hash as well for journaled messages after the journal header is found
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-26 17:38:17 +01:00
Janos SUTO
a815d1b60f write only envelope to if it's not on @hostname
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-21 13:55:05 +01:00
Janos SUTO
b9f6f3627a add only envelope recipients to the beginning of email in case of process_rcpt_to_addresses=1
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 21:47:08 +01:00
Janos SUTO
30b50f72c5 parser fix for envelope addresses
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 21:09:08 +01:00
Janos SUTO
f88740ad9b envelope header fix for piler
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 20:35:31 +01:00
Janos SUTO
abe2849ace fix writing envelope recipients to eml file
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 20:03:20 +01:00
Janos SUTO
e0e59d2e74 write envelope addresses to the beginning of email message file
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 15:59:21 +01:00
Janos SUTO
1a9c145116 re-introduced the archive_only_mydomains feature to the new architecture
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-19 15:01:11 +01:00
Janos SUTO
e3569f02c1 fixed missing comma in stats.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-18 19:45:54 +01:00
Janos SUTO
34ba5b25d1 improve pilerstats by adding the number of error emails
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-18 14:48:32 +01:00
Janos SUTO
3f7fdb7f08 improved the sphinx stats
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-17 19:36:48 +01:00
Janos SUTO
ce0bd526a6 fixed json output for pilerstats
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-17 17:44:06 +01:00
Janos SUTO
6003e08060 added pilerstats utility
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-17 17:27:17 +01:00
Janos SUTO
7310552ffb syslog rules loaded
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-07 13:52:25 +01:00
Janos SUTO
4be9f7dcc4 parser: handle properly if there is no filename in content-type mime header
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-06 19:55:17 +01:00
Janos SUTO
96f831a652 release: 1.3.3
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-06 13:36:07 +01:00
Janos SUTO
00df5107e0 fix a 4000....xxx.a0 issue for pilerget
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-05 22:42:29 +01:00
Janos SUTO
3e22fbfd76 parser: fix multiline attachment name
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-04 10:50:42 +01:00
Janos SUTO
5830bf5ef7 improved error handling for sql insert failures
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-23 20:02:50 +01:00
Janos SUTO
06b5954070 improved mysql logging
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-23 20:00:40 +01:00
Janos SUTO
b4e1a6cf44 fix for ks_c_5601-1987 encoding
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-23 20:00:20 +01:00
Janos SUTO
67dcb496a4 remove commented out unlink pidfile from piler-smtp.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-16 10:57:56 +01:00
Janos SUTO
bef68aec3a added pidfile check in piler.c to prevent multiple start of the piler daemon
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-11 10:56:32 +01:00
Janos SUTO
e03a9f2982 test: added new unit tests
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-11 10:20:02 +01:00
Janos SUTO
723f0b5c5f additional parser fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-11 09:59:58 +01:00
Janos SUTO
1c8dc1cc68 parser fix to support some emojis in subject line
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-11 09:28:45 +01:00
Janos SUTO
6eb6d5aebc added remote smtp host to piler-smtp received: log message
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-02 09:16:19 +01:00
Janos SUTO
018e6ca07a src: added proper usage text to piler daemons
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-30 10:32:14 +01:00
Janos SUTO
b90438bef6 src: fix for multiple filename in a single mime part line
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-28 08:56:39 +01:00
Janos SUTO
1192fc3218 src: decoder and parser fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-08 11:50:28 +01:00
Janos SUTO
25aeff66ba src: fix gb2312 -> utf8 iconv conversion issue
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-07 19:24:06 +01:00
Janos SUTO
1c27ead3af src: syslog if problematic message is moved
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-07 15:25:17 +01:00
Janos SUTO
36b1e03939 src: move problematic messages to error directory
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-07 15:07:56 +01:00
Janos SUTO
6af77bf0f1 src: timeout check fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-05 16:17:56 +01:00
Janos SUTO
9646225ae9 src: fixing aborted connection handling, mostly from o365
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-05 08:35:01 +01:00
Janos SUTO
20d41eb261 src: improved sessin logging
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-04 15:34:34 +01:00
Janos SUTO
c96693f98f piler-smtp wont scare users with epoll error if the remote end just disconnected
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-11-01 07:54:16 +01:00
Janos SUTO
0232f3cb81 bumped version to 1.3.2
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-10-29 08:32:46 +01:00
Janos SUTO
052a93fc3d src: dir import fix #3
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-10-28 22:33:47 +02:00
Janos SUTO
7b0f93edf6 src: dir import fix #2
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-10-28 22:27:33 +02:00
Janos SUTO
8d41af27d0 src: fixed recursive directory import
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-10-28 22:13:08 +02:00
Janos SUTO
445e6e96bd src: fix the smtp protocol handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-10-18 20:34:51 +02:00
Janos SUTO
631e8de191 src: fix html parsing + added amazon journaling support
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-09-06 19:55:30 +02:00
Janos SUTO
b2c372b0fe src: bdat fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-30 20:46:39 +02:00
Janos SUTO
64056bdc73 src: bdat fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-30 17:35:19 +02:00
Janos SUTO
7e67db16ae src: fixed typo in sql refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-11 19:44:36 +02:00
Janos SUTO
63e21aa7d1 src: sql structure refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-11 18:18:45 +02:00
Janos SUTO
d0c432bd79 src: removed not used smtp messages from smtpcodes.h
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-09 15:35:45 +02:00
Janos SUTO
f4f0806e40 src: fix smtp response code for helo command
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-08 20:27:19 +02:00
Janos SUTO
ac3ae0e2f3 src: imap folder fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-08 16:04:54 +02:00
Janos SUTO
950211687f src: refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-08 15:34:45 +02:00
Janos SUTO
0ea240dab3 improved pilertest
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-07-09 16:48:31 +02:00
Janos SUTO
17f21f1bc3 src: openssl 1.1 fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-07-07 21:55:40 +02:00
Janos SUTO
20b50b7f21 src: bump up build number
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-07-07 21:48:57 +02:00
Janos SUTO
3289b3fc27 src: pilerimport counter display fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-07-07 21:48:06 +02:00
Janos SUTO
ae5123ac3c src: openssl 1.1 support for pilerimport
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-07-07 21:47:25 +02:00
Janos SUTO
30d8861b5d src: added openssl 1.1 support
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-07-07 21:46:35 +02:00
Janos SUTO
2036843b88 release of 1.3.0
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-06-25 08:23:38 +00:00
Janos SUTO
1a0acb0185 switch from utf8 to utf8mb4 on the database level
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-06-24 06:07:38 +00:00
Janos SUTO
0cf7bfa04a parser: remove isHexNumber() function
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-06-13 19:46:48 +00:00
SJ
a94019f09f util: rewritten pilerpurge in python
Change-Id: I2dfa02fa287a02c636f5c91914c3b8e4bef0e764
Signed-off-by: SJ <sj@acts.hu>
2017-05-14 22:18:05 +02:00
SJ
c0308ac70b rename path fix
Change-Id: Ib46c6e869fb0ce31ff90f3bc33f60ef2bfcbaddb
Signed-off-by: SJ <sj@acts.hu>
2017-05-14 17:48:47 +02:00
SJ
a21328139c Resolved issue #791
Change-Id: Ie9477db7e13490e1b19594a8d9f8e56d215c8f1d
Signed-off-by: SJ <sj@acts.hu>
2017-05-14 17:18:09 +02:00
SJ
a831d8cd2e starttls fix
Change-Id: I271bb3bb0db4308254fe193efddcdb19fd0ab9f0
Signed-off-by: SJ <sj@acts.hu>
2017-05-12 20:57:06 +02:00
SJ
961ae7afee improved the search feature
Change-Id: Ia714ffade38edc9dd19b70ba37f996e6705ce057
Signed-off-by: SJ <sj@acts.hu>
2017-05-06 20:15:41 +02:00
SJ
12ea64c90b src: remove unused syslog() call
Change-Id: I39bedda7cef2c06a554378c588713b3ebbf5a818
Signed-off-by: SJ <sj@acts.hu>
2017-04-14 21:43:51 +02:00
SJ
0489af6cbb src: fixed ssl_accept handling
Change-Id: Ibebe79a3e740eded4238061ab5feac51d45af0d8
Signed-off-by: SJ <sj@acts.hu>
2017-04-14 17:38:55 +02:00
SJ
71f0af9bb2 parser: fixed aaa+bbb@aaa.fu recipient address
Change-Id: I56b8065edc1a2efb371911236108acbbdb051233
Signed-off-by: SJ <sj@acts.hu>
2017-03-05 21:16:18 +01:00
SJ
a59e322c2c fixed logging
Change-Id: I568e5f3cc4fbe898a77bde7c7a16ffc88edf546d
Signed-off-by: SJ <sj@acts.hu>
2017-03-04 17:45:39 +01:00
SJ
2b4c64de0e antivirus fixes
Change-Id: If5d5caee19880ba121d7f1165a22f7e8b811e476
Signed-off-by: SJ <sj@acts.hu>
2017-01-26 20:16:33 +01:00
SJ
2c55ff96f7 antivirus check refactored
Change-Id: I47d599239dac13f7bc455070dd5a84dd034cbb42
Signed-off-by: SJ <sj@acts.hu>
2017-01-25 22:19:12 +01:00
SJ
376b0345e1 smtp session fixes
Change-Id: I2e1b7dac87d5513e3dfefe4823dcaf43167f1d64
Signed-off-by: SJ <sj@acts.hu>
2017-01-18 09:38:30 +01:00
SJ
7c3d659194 terminate fix for piler-smtp
Change-Id: I07592f4bc68549a0bdae155b8bff4035bdb213dd
Signed-off-by: SJ <sj@acts.hu>
2016-12-22 10:46:11 +01:00
SJ
96625883bb Update the imap noselect fix
Change-Id: I91c260dec9e50e0b12d51f2bcc2b843c579acca6
Signed-off-by: SJ <sj@acts.hu>
2016-12-19 20:25:09 +01:00
SJ
3be31d52ac fix a Noselect imap folder problem
Change-Id: I128fbeb45c56f7d456cac5c71d5a0c31de263976
Signed-off-by: SJ <sj@acts.hu>
2016-12-19 20:25:09 +01:00
SJ
1a68d37a36 minor fixes
Change-Id: I16d16df9db05219fefd918d2c977e6ee6cc9f5f0
Signed-off-by: SJ <sj@acts.hu>
2016-11-26 11:49:08 +01:00
SJ
0b95fc19ac code refactoring
Change-Id: I6b634f1cc57b69a243259ad424b7c7aab6b93736
Signed-off-by: SJ <sj@acts.hu>
2016-11-12 10:48:08 +01:00
SJ
f3cf6896a7 removed debug info
Change-Id: I5192cd078f39987fff4b58972697f57773584a7c
Signed-off-by: SJ <sj@acts.hu>
2016-11-10 22:11:29 +01:00
SJ
a59508b994 listener socket fix
Change-Id: I6a81c4ab345b072b2bf6e3b1a3b914a6da08a49e
Signed-off-by: SJ <sj@acts.hu>
2016-11-10 21:25:42 +01:00
SJ
1c941a6433 initial release of an epoll version
Change-Id: I53bf6621abdbfeb6b5d5f22c2aa632d29c48441b
Signed-off-by: SJ <sj@acts.hu>
2016-11-06 22:16:03 +01:00
SJ
2e5ddbaef5 added some explanation to example.conf
Change-Id: I859b48c70008a4961c87cd23c16ce9573bf8a18a
Signed-off-by: SJ <sj@acts.hu>
2016-10-31 09:39:17 +01:00
SJ
f4e9238aaf lowering the default max connection value to 64
Change-Id: Ib0f317d6ed0480686d2dbf4ddcfd4a97315959a7
Signed-off-by: SJ <sj@acts.hu>
2016-10-31 09:27:12 +01:00
SJ
4a1c1785d1 user can sepcify the max connections piler-smtp can handle
Change-Id: Id92d625d354838558a63dfdd668143168bb7ebee
Signed-off-by: SJ <sj@acts.hu>
2016-10-30 22:53:49 +01:00
SJ
49348fd261 syslog recipients
Change-Id: I9d7e5307447babb71ab152d33b0f02d9bf05384f
Signed-off-by: SJ <sj@acts.hu>
2016-10-29 10:32:12 +02:00
SJ
d314a606b2 move email fix
Change-Id: Ie9754cae0d08c6717069cff2d6c93443f5e48066
Signed-off-by: SJ <sj@acts.hu>
2016-10-28 22:37:12 +02:00
SJ
cf1d7bdf45 improved queue id generation
Change-Id: I8a0f91eabd3eaf6c074946f723147a3f6ef925d9
Signed-off-by: SJ <sj@acts.hu>
2016-10-28 22:11:14 +02:00
SJ
37d4babd38 added a queue id to piler-smtp
Change-Id: Id616c31c709ccc3e986c7cbe46f23ec927efa5df
Signed-off-by: SJ <sj@acts.hu>
2016-10-28 21:46:25 +02:00
SJ
4e5ded4da9 ttmpfile name fix
Change-Id: I51af73005423177055fac2c41f1c2588ea2e20de
Signed-off-by: SJ <sj@acts.hu>
2016-10-28 20:17:36 +02:00
SJ
e6e83a1635 minor fixes
Change-Id: I0b6c8c53bbe65c3a6f4b01b64c6883b8560acfbd
Signed-off-by: SJ <sj@acts.hu>
2016-10-28 20:00:46 +02:00
SJ
d505fd10c2 piler.c trimming
Change-Id: I0b1ca133a291680534171b517bcfdaf70e0302b3
Signed-off-by: SJ <sj@acts.hu>
2016-10-28 19:32:59 +02:00
SJ
028ee95365 import fix
Change-Id: Idbbf7f8204d52710d58f4fc23139c3dbf7b339c6
Signed-off-by: SJ <sj@acts.hu>
2016-10-26 22:33:29 +02:00