A renaissance view of technology

Yet Another Autoresponder (YAA) installation

I just finished a very grueling installation of a nifty little autoresponder called “Yet Another Autoresponder” (YAA.) The software is Perl based and requires only a few modules which can easily be installed or upgraded via CPAN. However, my difficulties in getting this system working were due to YAA not being able to find the configuration file (yaa.conf). What clued me in to the idea that YAA was not able to find the configuration file was the somewhat ambiguous error message in the maillog:

(Command died with status 1: "/usr/local/yaa/bin/yaa.pl". Command output: Cannot continue, becouse [sic] no lookup maps were defined. )

Looking through the sparse “documentation,” there is no mention of where to put the configuration file. I moved the yaa.conf file to various locations around the file system without any success. Finally, I took matters into my own hands and edited yaa.pl by hand. If you find yourself in the predicament, give this a try:

1) Copy yaa.conf to wherever you want it to reside. I chose the standard configuration path of /etc
2) Edit yaa.pl using your favorite editor and change the following line of code from:

$YAA_DEFAULT_CONFIG_FILE = $module_dir . YAA_SLASH . ".." . YAA_SLASH . "conf" . YAA_SLASH . "yaa.conf";

To:

$YAA_DEFAULT_CONFIG_FILE = "/etc/yaa.conf";

Of course be sure to replace /etc with the path of where you copied your yaa.conf.

After a quick test, I received my autoreponse. Double-checking /var/log/maillog showed no errors or complaints from YAA.

5 Comments

rssComments RSS transmitTrackBack Identifier URI


in my case there were problems with yaa.conf (perl syntax error)

I added print command to yaa.pl find out error:

sub parse_config_file {
my ($file) = @_;
unless (my $result = do $file) {
if ($@) {
$error = “Syntax error in file ” . $file . “: ” . $@;
}
elsif (! defined $result) {
$error = “Couldn’t open file ” . $file . “: ” . $!;
}
elsif (! $result) {
$error = “Couldn’t run config file ” . $file;
}
# return error
# —— this — line — added ————————————-
print STDERR “parse_config_file return 0 error=$error\n”;
# —— this — line — added ————————————-
return 0;
}
return 1;
}

Comment by Errvee on January 15, 2009 2:36 am


Hey,

These tips helped a lot for me. I had a wrong line in the yaa.conf as well and I could find it with Errvee’s comment.
(The problem was: I used an @(at) sign in my sql password so I had to use another kind of apostrophe.)

Thanks and cheers,
Peter

Comment by Peter on March 4, 2009 8:26 am



PillSpot.org. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price drugs. Buy pills online

Buy:Retin-A.Zovirax.Actos.Valtrex.Nexium.Arimidex.Prevacid.Human Growth Hormone.Prednisolone.Zyban.Accutane.Synthroid.Lumigan.Mega Hoodia.100% Pure Okinawan Coral Calcium.Petcam (Metacam) Oral Suspension….

Trackback by CLINTON on July 15, 2010 2:31 pm


hunting http://icarnmfttzy.01DODGEPARTS.US/tag/hunting+car+spotlights/ : hunting…

car…

Trackback by car on August 29, 2010 4:52 pm


pot http://uvectorzetm.ABABYCLOTHES.INFO/tag/Waterless+pot+wearever/ : pot…

Waterless…

Trackback by Waterless on August 29, 2010 11:33 pm

addLeave a comment