PDA

View Full Version : qmail-autoresponder doesn't work


tomse
01-04-2004, 09:46 AM
I've got this problem on FreeBSD 5.1 with the qmail-autoresponder,
that qmail/qmailadmin won't acknowledge that the file is called qmailautoresponder, and not autoresponder.. yeah yeah.. rename i've also tried..
actually qmail looks for the autoresponder at this place
/usr/bin/qmailautoresponder/autorespond
(seems like the "--autorespond-bin=/usr/bin/" (can't remember the option correctly, but you'll understand) isn't registered properly)

the problem is that now it needs parameters/options..

i've followed the guide with no problems.. exept that..

my problem is that the mailserver now is in fully production, so I can't just start from scratch, i was thinking to use the autoresponder2.0.2 instead, but doing so I might uninstall qmailautoresponder, and re-register the autoresponder path or something..

does anyone have a painful solution ??
best regards

Tomse

dez247
01-07-2004, 03:34 AM
Not sure if this will work, but how about making a sym-link?

tomse
01-09-2004, 05:35 PM
Well actually i don't think so..
since my executable file is called qmail-autoresponder, and the library which the autoresponder should be inside, should then be called qmail-autoresponder. I don't think that a file and a library can have the same name in the same sub-library.

best regards
Tomse

tomse
01-16-2004, 06:55 PM
Ok, i've gotten closer..

what is being written in every .qmail file for each user is
"| /usr/local/bin/qmail-autoresponder/autorespond 86400 3 /usr/home/vpopmail/domains/domain.com/user/vacation/message /usr/home/vpopmail/domains/domain.com/user/vacation"

how the syntax should be for it to work.
"| /usr/local/bin/qmail-autoresponder -t 86400 -n 1 /usr/home/vpopmail/domains/domain.com/user/vacation/message /usr/home/vpopmail/domains/domain.com/user/vacation"

(I changed the 3 to a 1 instead)
now my problem is.. which file should I configure for the autogenerated .qmail file for every new user to have the new setup ????

best regards
Carsten

tomse
01-21-2004, 02:25 PM
pheeeeeeeew

I finally found it..
it seems that the qmailAdmin doesn't directly support the qmail-autoresponder..

what you need to do though..

find the user.c file in the source of qmailadmin
search for 86400
before that number, insert a -t and after insert -n, also edit the autorespond so the line would look like this...

fprintf(fs, "| %s/qmail-autoresponder -t 86400 -n 1 %s/vacation/message %s/vacation\n",

pay attention to the line it was before
fprintf(fs, "| %s/autorespond 86400 1 %s/vacation/message %s/vacation\n",

do the ./configure
./configure --enable-cgibindir=/usr/local/www/cgi-bin --enable-htmldir=/usr/local/www/webmail --enable-autoresponder-bin=/usr/local/bin/

(again pay attention here since the qmail-autoresponder isn't there, and shouldn't have been there in the first place)

Our friend who made the guide just needs to correct this in his documenation :-)

I hope I saved alot of ppl some time now.. i've been searching for this answer for almost 1½ month now..

cheers
Tomse

tomse
01-21-2004, 02:28 PM
ups.. forgot my path statements in the cgibindir and html dir needs to be corrected after your own paths.. since I changed mine on my server :-)

tomse
03-08-2004, 06:27 AM
just wanted to mark the subject as fixed

/Tomse

drew2578
03-27-2004, 02:55 PM
Thanks alot for the info. It helped me tons. In my case it also asked me for the --enable-autoresponder-path=/usr/local/bin/qmail-autoresponder.

Cheers and thanks again!

gizmik
05-08-2004, 06:05 AM
thanks a lot tomse, i almost figured it out myself, but i wouldn't have made it out all by myself ;)

the same thing has to be done with autorespond.c
find 10000 and edit the line to look like this:

fprintf(fs, "|%s/qmail-autoresponder -t 10000 -n 5 %s/%s/message %s/%s\n",

there are two identical lines, so you have to change them both.

after that just

./configure --enable-cgibindir=/usr/local/www/cgi-bin --enable-htmldir=/usr/local/www/data --enable-autoresponder-bin=/usr/local/bin --enable-autoresponder-path=/usr/local/bin/qmail-autoresponder

and

make install && make install-strip

madmac
11-23-2004, 02:26 PM
I had the same Autoresponder error,
Applied both changes listd here, now every thing works great.


Thanks again all.

madmac

resistor
01-01-2005, 07:42 PM
I had the same problem with an installation I had done, thanks for the help.

Martin Ocando
06-02-2005, 06:54 PM
I did the correction on the .c files, make clean, make install && make install-strip.

Now, the .qmail file still reports a bad path. Is:
/usr/local/bin/qmail-autoresponder/autorespond

and doesn't include the -t and -n modifiers.

Am I doing something wrong?

Thanks