I got the below log when receiving the mail
Fri Oct 22 19:06:24 2021 [3327677] info: spamd: connection from ::1 [::1]:41218 to port 783, fd 5 Fri Oct 22 19:06:24 2021 [3327677] info: spamd: using default config for spamd: /var/sentora/vmail///spamassassin/user_prefs Fri Oct 22 19:06:24 2021 [3327677] info: spamd: processing message CAG5_gF5ScjOQm-WSyxdBr8vb_wjLcXH7094pUf8MPqx=br93Cw@mail.gmail.com for spamd:986 Fri Oct 22 19:06:25 2021 [3327677] info: spamd: clean message (0.1/4.0) for spamd:986 in 0.5 seconds, 2819 bytes. Fri Oct 22 19:06:25 2021 [3327677] info: spamd: result: . 0 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS scantime=0.5,size=2819,user=spamd,uid=986,required_score=4.0,rhost=::1,raddr=::1,rport=41218,mid=CAG5_gF5ScjOQm-WSyxdBr8vb_wjLcXH7094pUf8MPqx=br93Cw@mail.gmail.com,autolearn=ham autolearn_force=no Fri Oct 22 19:06:25 2021 [3327667] info: prefork: child states: II
spamd: /var/sentora/vmail///spamassassin/user_prefs => instead of that i need to get /var/sentora/vmail/DomainName/UserName/spamassassin/user_prefs
/etc/sysconfig/spamassassin
I have updated the below values
SPAMDOPTIONS="-c -m5 -H --razor-home-dir='/var/lib/razor/' --razor-log-file='sys-syslog' -x --virtual-config-dir='/var/sentora/vmail/%d/%l/spamassassin' --username=vmail -s /var/log/spamd.log"
In /etc/postfix/master.cf
smtps inet n - n - - smtpd -o content_filter=spamfilter
465 inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
submission inet n - n - - smtpd -o content_filter=spamfilter
pickup fifo n - n 60 1 pickup
-o content_filter=
-o receive_override_options=no_address_mappings
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
# -o receive_override_options=no_header_body_checks
-o smtpd_helo_required=no
-o smtpd_client_restrictions=
-o smtpd_restriction_classes=
-o disable_vrfy_command=no
-o strict_rfc821_envelopes=yes
#
# Dovecot LDA
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient}
#
# Vacation mail
vacation unix - n n - - pipe
flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
spamfilter
unix - n n - - pipe
flags=Rq user=spamd argv=/usr/bin/spamfilter.sh -oi -f ${sender} ${recipient}
retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
26 inet n - n - - smtpd```
0 Answers