Outgoing Queue Dir Ruleset
Julian Field
MailScanner at ecs.soton.ac.uk
Mon Aug 27 19:38:00 IST 2007
Jim Hermann wrote:
> It's possible. Does MailScanner automatically add the
> -OQueueDirectory="Outgoing Queue Dir" argument for Sendmail2? It looks like
> it does. I was not expecting it.
>
Of course it does. Otherwise it wouldn't be able to tell sendmail to
deliver the message if it wasn't placed in the default queue. You
weren't expecting a bug now were you? :-)
> I had:
>
> Sendmail2 = /usr/sbin/sendmail -L sm-MailScanner
> -OProcessTitlePrefix=sm-MailScanner -ODeliveryMode=background
> -OQueueDirectory=/home/virtual/FILESYSTEMTEMPLATE/services/sendmail/mqueue.s
> canned -C /etc/mail/sm-MailScanner.cf
>
> So I changed it to:
>
> Sendmail2 = /usr/sbin/sendmail -L sm-mailscanner
> -OProcessTitlePrefix=sm-mailscanner -ODeliveryMode=background -C
> /etc/mail/sm-MailScanner.cf
>
> Jim
>
>
>> -----Original Message-----
>> From: Julian Field [mailto:MailScanner at ecs.soton.ac.uk]
>> Sent: Sunday, August 26, 2007 03:54 PM
>> To: MailScanner discussion
>> Subject: Re: Outgoing Queue Dir Ruleset
>>
>> I have just tested this code, and it works just fine.
>> Are you sure it hadn't put the files in the outgoing queue
>> directories
>> and then delivered them before you had time to look in the
>> directories?
>>
>> Julian Field wrote:
>>
>>> Start by testing them with MailScanner's command-line options.
>>> Do a "MailScanner --help" to start with.
>>> Is your "Run As User" set to blank (or root)?
>>> The last time I tested this functionality it worked just
>>>
>> fine, and I
>>
>>> think other people use it.
>>> If you really can't get it to work with test messages, then mail me
>>> back and I'll test it here for you.
>>>
>>> Make sure your editor hasn't line wrapped the .rules file,
>>>
>> the version
>>
>>> you posted to the list has been wrapped.
>>>
>>> Jim Hermann wrote:
>>>
>>>> I have trying to create a ruleset for Outgoing Queue Dir
>>>>
>> and it does not
>>
>>>> appear to work.
>>>>
>>>> In MailScanner.conf, I changed to:
>>>>
>>>> Outgoing Queue Dir = /etc/MailScanner/rules/outgoing.rules
>>>>
>>>> My /etc/MailScanner/rules/outgoing.rules is:
>>>>
>>>> # Set "Outgoing Queue Dir =
>>>>
>> /etc/MailScanner/rules/outgoing.rules".
>>
>>>> To: *@aol.com
>>>> /home/virtual/FILESYSTEMTEMPLATE/services/sendmail/mqueue.aol
>>>> To: *@comcast.net
>>>> /home/virtual/FILESYSTEMTEMPLATE/services/sendmail/mqueue.comcast
>>>>
>>>> FromOrTo: default
>>>> /home/virtual/FILESYSTEMTEMPLATE/services/sendmail/mqueue.scanned
>>>>
>>>> I created the new directories in
>>>> /home/virtual/FILESYSTEMTEMPLATE/services/sendmail/:
>>>>
>>>> drwxr-xr-x 6 root root 4.0K Aug 26 14:02 .
>>>> drwxr-xr-x 4 root root 4.0K Sep 15 2006 ..
>>>> drwxr-xr-x 2 root root 64K Aug 26 15:14 mqueue
>>>> drwxr-xr-x 2 root root 4.0K Aug 26 14:01 mqueue.aol
>>>> drwxr-xr-x 2 root root 4.0K Aug 26 14:01 mqueue.comcast
>>>> drwxr-xr-x 2 root root 32K Aug 26 15:12 mqueue.scanned
>>>>
>>>> I restarted MailScanner and all email stopped moving from the
>>>> Incoming Queue
>>>> Dir to anywhere.
>>>>
>>>> What did I do wrong?
>>>>
>>>> Jim
>>>>
>>>>
>>>>
>>> Jules
>>>
>>>
>> Jules
>>
>> --
>> Julian Field MEng CITP
>> www.MailScanner.info
>> Buy the MailScanner book at www.MailScanner.info/store
>>
>> MailScanner customisation, or any advanced system administration help?
>> Contact me at Jules at Jules.FM
>>
>> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>> For all your IT requirements visit www.transtec.co.uk
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>> For all your IT requirements visit www.transtec.co.uk
>>
>>
>>
>>
>
>
Jules
--
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk
More information about the MailScanner
mailing list