Hi,
Upon further investigation what I'm seeing is if an email is sent to a
non-existent address which includes the complete mail server host's name (ie.
ns3.domain.com) spamdyke-qrv correctly rejects the email but if the same email
is sent just to the domain name (ie. domain.com) spamdyke accepts the email and
passes it on to qmail for delivery. See below for details:
Email sent to non-existent email address at host.domain.com
Jul 2 14:39:38 ns3 spamdyke[5875]: FILTER_INVALID_RECIPIENT recipient:
nob...@ns3.domain.com
Jul 2 14:39:38 ns3 spamdyke[5875]: DENIED_INVALID_RECIPIENT from:
u...@gmail.com to: nob...@ns3.domain.com origin_ip: 209.85.213.178 origin_rdns:
mail-yb0-f178.google.com auth: (unknown) encryption: TLS reason: (empty)
Jul 2 14:39:38 ns3 spamdyke[5875]: ERROR(tls_read()@tls.c:620): unable to read
from SSL/TLS stream: The operation failed due to an I/O error, Unexpected EOF
found
Email sent to non-existent email address at domain.com
Jul 2 14:43:02 ns3 spamdyke[5952]: ALLOWED from: u...@gmail.com to:
nob...@domain.com origin_ip: 209.85.161.177 origin_rdns:
mail-yw0-f177.google.com auth: (unknown) encryption: TLS reason:
250_ok_1499020982_qp_5956
Jul 2 14:43:03 ns3 qmail: 1499020983.002267 starting delivery 2116: msg
8127566 to local domain.com-nob...@domain.com
Jul 2 14:43:03 ns3 qmail: 1499020983.002313 status: local 1/10 remote 0/20
Jul 2 14:43:03 ns3 qmail-local-handlers[5961]: Handlers Filter before-local
for qmail started ...
Jul 2 14:43:03 ns3 qmail-local-handlers[5961]: from=u...@gmail.com
Jul 2 14:43:03 ns3 qmail-local-handlers[5961]: to=domain.com-nob...@domain.com
Jul 2 14:43:03 ns3 qmail-local-handlers[5961]: mailbox:
/var/qmail/mailnames/domain.com
Jul 2 14:43:03 ns3 qmail-queue-handlers[5962]: Handlers Filter before-queue
for qmail started ...
Jul 2 14:43:03 ns3 qmail-queue-handlers[5962]: from=u...@gmail.com
Jul 2 14:43:03 ns3 qmail-queue-handlers[5962]: to=nonexist...@domain.com
Jul 2 14:43:03 ns3 spamdyke[5952]: ERROR(tls_read()@tls.c:620): unable to read
from SSL/TLS stream: The operation failed due to an I/O error, Unexpected EOF
found
Note: Currently, as Plesk with qmail cannot reject such emails, I've setup
Plesk to forward invalid emails to go to an a specific address
(nonexist...@domain.com) to prevent backscatter spam issues.
/var/qmail/control/me contains
ns3.domain.com
/var/qmail/control/rcpthosts contains
ns3.domain.com
domain.com
Also, as Plesk does not use: /var/qmail/control/morercpthosts.cdb so there is
no such file on my server
Thanks for any assistance,
Shane Bywater
--
Message: 1
Date: Sat, 17 Jun 2017 18:13:33 +
From: Shane Bywater
To: "spamdyke-users@spamdyke.org"
Subject: [spamdyke-users] spamdyke-qrv not executing
Message-ID:
Content-Type: text/plain; charset="utf-8"
Hi,
I'm setting up a new Plesk 17.5.3 Centos 7.3 server with spamdyke 5.0.1. Now I
know from the installation notes that if you are using Plesk spamdyke-qrv is
not supposed to be required as Plesk "already does recipient validation for
you". I have found this statement to be false when using Plesk with qmail.
Please see post at
https://talk.plesk.com/threads/rejecting-email-for-unknown-addresses.339204/
Basically even though Plesk is configured to reject invalid email addresses
qmail accepts the email attempt and sends a "550 sorry, no mailbox here by that
name. (#5.7.17)" back to the sender. Maybe Plesk with Postfix rejects invalid
email addresses but I'm not going to try that as I want to continue using
spamdyke.
I have spamdyke-qrv compiled/installed correctly as I can run it successfully
from the command line:
#spamdyke-qrv -v domain.com invalid
returns no output but -vv shows UNAVAILABLE RECIPIENT #spamdyke-qrv -v
domain.com valid
QRV-ALLOWED(main@spamdyke-qrv.c:60): VALID ADDRESS
My issue is when my server receives an email I don't see spamdyke-qrv being
executed (from looking at the /var/log/maillog file). I only see spamdyke
entries but no spamdyke-qrv entries so I'm assuming that is why the rejecting
of invalid email addresses is still not working.
My /etc/spamdyke.conf file contains among other things:
reject-recipient=invalid
recipient-validation-command=/usr/local/bin/spamdyke-qrv
My /etc/xinetd.d/smtp_psa contains:
server_args = -Rt0 /usr/local/bin/spamdyke -f /etc/spamdyke.conf
/var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth
/var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
I'm guessing I'm missing something simple but can't see it currently. If
anyone can offer a suggestion on what I'm doing wrong and what I need to do to
fix this I would appreciate it.
Thanks,
Shane Bywater
--
Subject: Digest Footer
___
s