MailScanner: extracting attachments

Scott Silva ssilva at sgvwater.com
Mon Mar 17 22:17:12 GMT 2008


on 3-16-2008 5:37 AM Julian Field spake the following:
> 
> 
> Hugo van der Kooij wrote:
>> * PGP Signed by an unverified key: 03/16/08 at 09:10:32
> 
>> Julian Field wrote:
>> |
>> |
>> | Devon Harding wrote:
>> |>     What do you mean by the "file consistency check"?
>> |
>> |
>> |> If you, for example, forget the </VirtualHost> in
>> |> /etc/httpd/conf/httpd.conf, you would get the following error:
>> |
>> |> [root at mars ~]# service httpd start
>> |> Starting httpd: httpd: Syntax error on line 1014 of
>> |> /etc/httpd/conf/httpd.conf: /etc/httpd/conf/httpd.conf:1014:
>> |> <VirtualHost> was not closed.
>> |>                                                            [FAILED]
>> |
>> |> Just wondering if thats possible with MailScanner.
>> | It already does syntax checking of the MailScanner.conf and 
>> complains in
>> | the logs about any errors it finds.
> 
>> The usual way for me to restart MailScanner after a change is
> 
>> service MailScaner restart;tail -f /var/log/maillog
> 
>> Then the output of the syslog file will show wether or not MailScanner
>> was happy or if I had my fingers all thumbled up again and made some
>> horrible typos.
> 
>> Apache does not always tell me what typo I made either. Most of the
>> times I have to dig into the error log to find it. But apache always
>> clearly indicates it did not start and I have seen cases where
>> MailScanner did not report a failure on the command prompt but it was
>> obvious from the logs that it did not startup either.
> Unfortunately, I read the config after I've forked, unlike Apache which 
> appears to read it first. So by the time I've read the config it's 
> already too late.
> I'll take a look, but don't hold out much hope other than reading the 
> conf then throwing it away, just to syntax check it before starting up. 
> That might be possible.
> 
Or a test prog like samba's testparm. That way you don't have to modify the 
main progs.

-- 
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20080317/883d1dba/signature.bin


More information about the MailScanner mailing list