piler have a lot of mails be discard ...
the piler had a lot mails that not be archived . It showa staus “discarded”, why??
below log was on of them.
Aug 20 14:19:07 mp2 piler-smtp[25725]: connected from 192.168.11.89:38924 on fd=6 (active connections: 1)
Aug 20 14:19:07 mp2 piler-smtp[25725]: received: VUA3MJRR5BY6HE4Y, from=xinxing.xi@nikosem.com, size=104358, client=192.168.11.89, fd=6, fsync=2941
Aug 20 14:19:07 mp2 piler-smtp[25725]: disconnected from 192.168.11.89 on fd=6, slot=0, reason=done (0 active connections)
Aug 20 14:19:08 mp2 piler[21683]: ERR: create socket to /tmp/clamd
Aug 20 14:19:08 mp2 piler[21683]: 50000000611f49660da0fda42553fb0c2852: cannot open
Aug 20 14:19:08 mp2 piler[21683]: 0/VUA3MJRR5BY6HE4Y: discarding: missing security header
Aug 20 14:19:08 mp2 piler[21683]: 0/VUA3MJRR5BY6HE4Y: 50000000611f49660da0fda42553fb0c2852, size=104358/0, attachments=0, reference=, message-id=null, retention=0, folder=0, delay=0.0013, status=discarded
piler ver.1.3.12
os: ubuntu 21.04
php:7.4.21
sphinx 2.2.1
Comments (9)
-
repo owner -
reporter Can I disable security header check and how to do?
-
repo owner The same place where you turned it on: in piler.conf. Fix it, then be sure to restart the piler daemons.
-
reporter But I didn’t turn on …. I used the default setting… below config is my piler.conf…
archive_emails_not_having_message_id=0
archive_only_mydomains=0
backlog=20
check_for_client_timeout_interval=20
cipher_list=ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
clamd_socket=/tmp/clamd
default_retention_days=2557
enable_chunking=0
enable_cjk=1
enable_folders=0
encrypt_messages=1
extract_attachments=1
extra_to_field=X-Envelope-To:
helper_timeout=20
hostid=piler.yourdomain.com
listen_addr=0.0.0.0
listen_port=25
max_connections=64
max_requests_per_child=10000
memcached_servers=127.0.0.1
memcached_to_db_interval=900
memcached_ttl=86400
min_message_size=100
min_word_len=1
mmap_dedup_test=0
mysqlcharset=utf8mb4
mysql_connect_timeout=2
mysqldb=piler
mysqlpwd=Niko0223
mysqlsocket=/var/run/mysqld/mysqld.sock
mysqluser=piler
number_of_worker_processes=2
pemfile=/usr/local/etc/piler/piler.pem
pidfile=/var/run/piler/piler.pid
piler_header_field=X-piler-id:
process_rcpt_to_addresses=0
security_header=
server_id=0
smtp_access_list=0
smtp_timeout=60
spam_header_line=
syslog_recipients=0
tls_enable=1
tweak_sent_time_offset=0
update_counters_to_memcached=0
username=piler
verbosity=1
workdir=/var/piler/tmp
queuedir=/var/piler/store -
repo owner Show me pilerconf -q security_header output.
-
reporter root@mp2:~/jsuto-piler-e1ea14374a57# pilerconf -q
pilerconf: option requires an argument -- 'q'
pilerconf [-n -c <configfile>] [-q <key>]
archive_address=
archive_emails_not_having_message_id=0
archive_only_mydomains=0
backlog=20
check_for_client_timeout_interval=20
cipher_list=ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
clamd_addr=
clamd_port=0
clamd_socket=/tmp/clamd
debug=0
default_retention_days=2557
enable_chunking=0
enable_cjk=1
enable_folders=0
encrypt_messages=1
extra_to_field=X-Envelope-To:
extract_attachments=1
helper_timeout=20
hostid=piler.yourdomain.com
iv=
listen_addr=0.0.0.0
listen_port=25
locale=
max_connections=64
max_requests_per_child=10000
memcached_servers=127.0.0.1
memcached_to_db_interval=900
memcached_ttl=86400
min_message_size=100
min_word_len=1
mmap_dedup_test=0
mysqlcharset=utf8mb4
mysqlhost=
mysqlport=0
mysqlsocket=/var/run/mysqld/mysqld.sock
mysqluser=piler
mysqlpwd=Niko0223
mysqldb=piler
mysql_connect_timeout=2
number_of_worker_processes=2
pemfile=/usr/local/etc/piler/piler.pem
pidfile=/var/run/piler/piler.pid
piler_header_field=X-piler-id:
process_rcpt_to_addresses=0
queuedir=/var/piler/store
security_header=
server_id=0
smtp_access_list=0
smtp_timeout=60
spam_header_line=
syslog_recipients=0
tls_enable=1
tls_min_version=TLSv1.2
tweak_sent_time_offset=0
update_counters_to_memcached=0
username=piler
use_antivirus=1
verbosity=1
workdir=/var/piler/tmp -
repo owner Run the below command:
pilerconf -q security_header
Also show me the
-
reporter I recompiler without clamd and it’s OK now. thanks for your time.
-
repo owner - changed status to closed
I'm not sure how those 2 are related, but I'm glad that it works properly.
- Log in to comment
You must have configure the security header in piler.conf, however the email in this example doesn’t have that header.