* Alex Le Fevre <[EMAIL PROTECTED]> [010404 21:16]:
> The relevant part of the script appears below: 

Speaking of relevancy, this is pretty irrellevant to this list. You made a
perl mistake.

> $recip = $ARGV[0];
> $recip =~ s/\@/\\\@/g;
> print $recip;
> open (MAIL, "|/usr/sbin/sendmail -t");
> print MAIL "To: $recip\n";
> print MAIL "From: quoteoftheday\@schnarff.com\n";
> print MAIL "Reply-to: alex\@schnarff.com\n";
> print MAIL "Subject: Quote for $date\n";
> print MAIL $sdata[rand(@sdata)];
> close MAIL; 
> 
> $recip, when I printed it to the screen for testing purposes, came out as 
> user\@domain.com, which is exactly what I need. 

No it isn't. The =~ s stuff is totally unnecessary, as you're not passing
the address on the command line to sendmail... Take out that line and
qmail will stop appending the domain...

> Any idea why the mailwrapper would append my local domain like that? 

Because it couldn't find a domain.

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/

PGP signature

Reply via email to