Re: vacation not working with qmail, autorespond, vpopmail

Rick Romero <[email protected]>
Newsgroups gmane.comp.horde.sork
Message-ID <[email protected]>
On Jun 21, 2007, at 10:59 AM, Claus Szypura wrote:

> Rick Romero <rick <at> havokmon.com> writes:
>
>> Hi Claus,
>>
>>
> Hi Rick,
> many thanks for the link to the files.
> At first glance (didn't try it yet) this
> should work, at least for a mysql based vpopmail default installation.
> One little bit of couriosity: did you do it for a popmail compiled  
> with
> --enable-many-domains (default). If so, I now have the task  
> adapting it for
> --without-many-domains,
> where each domain has its own table in the vpopmail
> database like so: my_first_domain_tld, my_second_domain_tld,
> anotherdomain_tld...
> because I did a compile configured --without-many-domains
>

My hack does not account for a table for each domain.   All domains  
are expected to be in the vpopmail table.

It should be trivial though to modify it to search a table based on  
the domain instead of the vpopmail table with an additional field.

Rick

> I will give it a try and give feedback here!
> Thanks again
> Claus
>
>
>> Here's what I attempted to post to the list:
>> ---------------------------
>> Hi All,
>>
>> This is based on Vacation H3 3.0
>>
>> I've created a vpopmailsql.php Driver that will create a 'qmailadmin'
>> compliant vacation message and .qmail file.  It still uses ftp to put
>> the data into the user's 'home' directory.  I saw a couple posts  
>> looking
>> for another way, but IMHO, using pureftp works just fine.  pureftp  
>> will
>> do SQL auths and grab the home dir from SQL, you can specify a uid  
>> (89
>> is usually vpopmail), and set the users chroot.
>>
>> Anyhow, an autorespond vacation message looks like:
>> From: email <at> home.com <newline>
>> Subject: Vacation <newline>
>> <newline>
>> Text
>> <newline>
>>
>> So the vpopmailsql.php does this for you.  I also modified the  
>> main.php
>> to display the vacation message correctly, as 3.0 doesn't do the  
>> 'From'
>> address.   The only bug is the 'Subject' line has an extra space  
>> at the
>> beginning because of how I snipped it.
>>
>> The driver uses mostly vars from the conf.php file, but I didn't  
>> finish
>> the SQL integration so Mysql_connect/query are hardcoded.
>>
>> I kinda ran out of steam.
>
>
>
> -- 
> Sork mailing list - Join the hunt: http://horde.org/bounties/#sork
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: [email protected]

-- 
Sork mailing list - Join the hunt: http://horde.org/bounties/#sork
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.