qmail scanner from localhost
frankie-freebsd at kyblik.pieskovisko.sk
frankie-freebsd at kyblik.pieskovisko.sk
Sat Dec 13 03:38:23 PST 2003
On Sat, Dec 13, 2003 at 12:06:51PM +0100, Michael Sig Birkmose wrote:
> Hi,
>
> I just recently installed qmail + qmail scaner + clamav + fprot and it all
> works fine.
>
> However when I attempt to send myself a test email from the machine
> running the services, using pine, this mail does not pass through qmail
> scanner?
>
> Here is my /etc/tcp.smtp:
> bash-2.05b# cat /etc/tcp.smtp
> 127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
> 192.168.1.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
> 62.242.118.225:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
> :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
>
> When I send to myself using pine i get this header in the email:
>
> Received: from localhost (sendmail-bs at 127.0.0.1)
>
> When I get from outside I get:
>
> Received: from email at address.dk by gisp.dk by uid 82 with
> qmail-scanner-1.20
> (clamuko: 0.54. f-prot: 4.2.0/3.14.7. spamassassin: 2.60.
> Clear:RC:1(127.0.0.1):.
> Processed in 0.010936 secs); 13 Dec 2003 10:57:27 -0000
Pine should send mail using /usr/sbin/sendmail (which should be a link
to /var/qmail/bin/sendmail), which calls /var/qmail/bin/qmail-inject,
which calls /var/qmail/bin/qmail-queue, which explains the absence of
qmail-scanner headers, but not the ``sendmail-bs at 127.0.0.1'' part.
Does the message have any qmail headers? If not, you are probably using
/usr/sbin/sendmail from real sendmail (not the qmail one), which passes
the mail to sendmail submission process running on the port 587/tcp.
The message is then delivered by sendmail.
If this is the case, you should disable sendmail by
chmod 0 /usr/libexec/sendmail/sendmail
and create the symlink
ln -sf /var/qmail/bin/sendmail /usr/sbin/sendmail
.
Or maybe I'm wrong. (I certainly am wrong if you are not using mbox
delivery to the same place, where sendmail would deliver the mail).
m&f
--
What do you care what other people think?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031213/91b5b324/attachment.bin
More information about the freebsd-questions
mailing list