From owner-freebsd-questions@FreeBSD.ORG Sat Dec 13 03:38:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D211116A4CE for ; Sat, 13 Dec 2003 03:38:23 -0800 (PST) Received: from a.mx.7f000001.org (kyblik.pieskovisko.sk [213.215.72.42]) by mx1.FreeBSD.org (Postfix) with SMTP id E812B43DC4 for ; Sat, 13 Dec 2003 03:35:16 -0800 (PST) (envelope-from frankie-freebsd@kyblik.pieskovisko.sk) Received: (qmail 64269 invoked by uid 19508); 13 Dec 2003 11:35:07 -0000 Date: Sat, 13 Dec 2003 12:35:07 +0100 From: frankie-freebsd@kyblik.pieskovisko.sk To: questions@freebsd.org Message-ID: <20031213113507.GG1768@kyblik.pieskovisko.sk> Mail-Followup-To: frankie-freebsd@kyblik.pieskovisko.sk, questions@freebsd.org References: <20031213120345.V62647@gisp.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6BvahUXLYAruDZOj" Content-Disposition: inline In-Reply-To: <20031213120345.V62647@gisp.dk> User-Agent: Mutt/1.5.5.1i Subject: Re: qmail scanner from localhost X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2003 11:38:23 -0000 --6BvahUXLYAruDZOj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 13, 2003 at 12:06:51PM +0100, Michael Sig Birkmose wrote: > Hi, >=20 > I just recently installed qmail + qmail scaner + clamav + fprot and it all > works fine. >=20 > 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? >=20 > Here is my /etc/tcp.smtp: > bash-2.05b# cat /etc/tcp.smtp > 127.0.0.1:allow,RELAYCLIENT=3D"",QMAILQUEUE=3D"/var/qmail/bin/qmail-scann= er-queue.pl" > 192.168.1.:allow,RELAYCLIENT=3D"",QMAILQUEUE=3D"/var/qmail/bin/qmail-scan= ner-queue.pl" > 62.242.118.225:allow,RELAYCLIENT=3D"",QMAILQUEUE=3D"/var/qmail/bin/qmail-= scanner-queue.pl" > :allow,QMAILQUEUE=3D"/var/qmail/bin/qmail-scanner-queue.pl" >=20 > When I send to myself using pine i get this header in the email: >=20 > Received: from localhost (sendmail-bs@127.0.0.1) >=20 > When I get from outside I get: >=20 > Received: from email@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@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 =2E 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 =09 --=20 What do you care what other people think? --6BvahUXLYAruDZOj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/2vlr4PY2BaN84VwRAkhBAJwLwPSxWtegjUQ3BPpbfKdQxe5vaQCgg5eF F2amsWaS/vS5LJerSTbt700= =PFjF -----END PGP SIGNATURE----- --6BvahUXLYAruDZOj--