Re: [qmailtoaster] auto detach

2008-12-09 Thread George Mogielnicki
As it turns out, to plug in your own script is quite easy. All I had to do
was to place the following in .mailfilter

`/tmp/test/test.pl`

and the mail file is passed in the stdin to the script.

Is there an easy way to enable .mailfilter domain wise? /etc/
mail/mailfilter seems to include rules for users only. I could modify
/etc/mail/mailfilter I suppose...

Jake - thanks for the initial hint.

George


> I've got maildrop to work, I think I missed the install step.
> Just to recap for other goofs like me ...
>
> fdr60 specific, source in /usr/src/qtms-install
>
> rpm -e qmailadmin-toaster
> rpmbuild --rebuild --with fdr60 --define 'spambox 1'
> qmailadmin-toaster-*.src.rpm
> rpm -Uvh /usr/src/redhat/RPMS/i386/qmailadmin-toaster*.rpm
>
> Once complete, logon to qmailadmin and you should be able to click on spam
> box checkbox. Once you do that, you should see the following in user
> .qmail
>
> |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
> maildrop-toaster' /etc/mail/mailfilter
>
> You should see log file in /var/log/maildrop.
>
> Now I have to plug in my script somehow...
>
> George
>
>
>
>
>
>
>
>>
>> I have setup a .qmail for one user with this content
>>
>> |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
>> maildrop-toaster' /etc/mail/mailfilter
>>
>> Nothing happens, there is no log in /var/log/maildrop. I have also
>> followed the FAQ in http://wiki.qmailtoaster.com/index.php/FAQs to get
>> the
>> maildrop to work but no joy.
>>
>> any ideas ?
>>
>> George
>>
>>
>>> George Mogielnicki wrote:
>>>> Hi;
>>>>
>>>> I need to run ripmime on either incoming or already delivered email to
>>>> detach specific pdf documents (this is for an asterisk related fax
>>>> gateway). Currently I run a cron job against MailDir of a domain and
>>>> am
>>>> able to detach required pdf's.
>>>>
>>>> I would prefer to run my script when the mail is delivered, not from
>>>> cron,
>>>> this should improve concurrency of processes. Is there a way to insert
>>>> my
>>>> custom script somewhere ?
>>>>
>>>>
>>>
>>> You could use a .mailfilter in the directory and use the maildrop
>>> commands (which can call other scripts as well).
>>>
>>>
>>> -
>>>  QmailToaster hosted by: VR Hosted <http://www.vr.org>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail:
>>> [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> -
>>  QmailToaster hosted by: VR Hosted <http://www.vr.org>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> -
>  QmailToaster hosted by: VR Hosted <http://www.vr.org>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
 QmailToaster hosted by: VR Hosted <http://www.vr.org>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] auto detach

2008-12-09 Thread George Mogielnicki
I've got maildrop to work, I think I missed the install step.
Just to recap for other goofs like me ...

fdr60 specific, source in /usr/src/qtms-install

rpm -e qmailadmin-toaster
rpmbuild --rebuild --with fdr60 --define 'spambox 1'
qmailadmin-toaster-*.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/qmailadmin-toaster*.rpm

Once complete, logon to qmailadmin and you should be able to click on spam
box checkbox. Once you do that, you should see the following in user
.qmail

|/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
maildrop-toaster' /etc/mail/mailfilter

You should see log file in /var/log/maildrop.

Now I have to plug in my script somehow...

George







>
> I have setup a .qmail for one user with this content
>
> |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
> maildrop-toaster' /etc/mail/mailfilter
>
> Nothing happens, there is no log in /var/log/maildrop. I have also
> followed the FAQ in http://wiki.qmailtoaster.com/index.php/FAQs to get the
> maildrop to work but no joy.
>
> any ideas ?
>
> George
>
>
>> George Mogielnicki wrote:
>>> Hi;
>>>
>>> I need to run ripmime on either incoming or already delivered email to
>>> detach specific pdf documents (this is for an asterisk related fax
>>> gateway). Currently I run a cron job against MailDir of a domain and am
>>> able to detach required pdf's.
>>>
>>> I would prefer to run my script when the mail is delivered, not from
>>> cron,
>>> this should improve concurrency of processes. Is there a way to insert
>>> my
>>> custom script somewhere ?
>>>
>>>
>>
>> You could use a .mailfilter in the directory and use the maildrop
>> commands (which can call other scripts as well).
>>
>>
>> -
>>  QmailToaster hosted by: VR Hosted <http://www.vr.org>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> -
>  QmailToaster hosted by: VR Hosted <http://www.vr.org>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
 QmailToaster hosted by: VR Hosted <http://www.vr.org>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [qmailtoaster] auto detach

2008-12-08 Thread George Mogielnicki

I have setup a .qmail for one user with this content

|/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
maildrop-toaster' /etc/mail/mailfilter

Nothing happens, there is no log in /var/log/maildrop. I have also
followed the FAQ in http://wiki.qmailtoaster.com/index.php/FAQs to get the
maildrop to work but no joy.

any ideas ?

George


> George Mogielnicki wrote:
>> Hi;
>>
>> I need to run ripmime on either incoming or already delivered email to
>> detach specific pdf documents (this is for an asterisk related fax
>> gateway). Currently I run a cron job against MailDir of a domain and am
>> able to detach required pdf's.
>>
>> I would prefer to run my script when the mail is delivered, not from
>> cron,
>> this should improve concurrency of processes. Is there a way to insert
>> my
>> custom script somewhere ?
>>
>>
>
> You could use a .mailfilter in the directory and use the maildrop
> commands (which can call other scripts as well).
>
>
> -
>  QmailToaster hosted by: VR Hosted <http://www.vr.org>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
 QmailToaster hosted by: VR Hosted <http://www.vr.org>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[qmailtoaster] auto detach

2008-12-08 Thread George Mogielnicki
Hi;

I need to run ripmime on either incoming or already delivered email to
detach specific pdf documents (this is for an asterisk related fax
gateway). Currently I run a cron job against MailDir of a domain and am
able to detach required pdf's.

I would prefer to run my script when the mail is delivered, not from cron,
this should improve concurrency of processes. Is there a way to insert my
custom script somewhere ?

Thanks;

George


-
 QmailToaster hosted by: VR Hosted 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]