John Mandeville wrote:

I'm having trouble getting Qmail-Scanner to send alerts to either the
admin or the sender.  When I first ran contrib/test_installation.sh, I
received no alerts.



"test_installation.sh" sends a "plain" mail, one virus, one policy-block and one SPAM to the administration address you set for your system via the "--admin xxx --domain yyy" option. So if everything is working, you should receive two e-mails, but have records of four events in syslog.

I noticed that $RECIP in the was script was set to something strange
(mydomain.xyz rather than [EMAIL PROTECTED]).


? Huh? It's set to "grep '\$V_FROM=' $QMAILQUEUE" by default - and $V_FROM is defined by "--admin xxx --domain yyy".


When I
deleted /var/qmail/control/defaultdomain, test_installation.sh told me
"Cannot find any reference to the Q-S administrator Email address" and
quit. (This is a bug in the test script: defaultdomain is not a
required file for qmail.)



Sorry but you are probably now the only Qmail installation in the world without a defaultdomain file - so
I don't feel too bad. Why did you think it would be a good idea to delete that? The test script looks for that file just as a sanity check for a "good" install of Qmail.


So I changed the script to hard-code values
for both $RECIP and $QS_SENDER. I also added a fifth test to make sure
I had a message blocked by policy rather than as a virus:



Test 2 already does that.

So I really don't know what's up with your install. Check V_FROM as mentioned above - that's where the problem lies...

--
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Qmail-scanner-general mailing list
Qmail-scanner-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to