On Fri, Sep 12, 2003 at 09:16:14AM -0400, Jeff Elkins wrote:
> She who must be obeyed asked me to generate a list of family birthdays, so I 
> whipped up a perl script to read a flat file at the beginning of each month 
> and report via mail on who's up... However, it seems that my exim.conf is not 
> up to snuff. When I enter proper addresses into my script (i.e. 
> [EMAIL PROTECTED]) delivery fails with a munged address of: 
> [EMAIL PROTECTED] --- It works if addresses in the perl script are 
> left unqualified, pointing to local accounts -- jeff works [EMAIL PROTECTED] 
> fails. Mail seems to work fine otherwise. 
> 
> Where might I have screwed up?

now using -w and use strict on your program would be my guess.

$foo is a scalar
@foo is an array.

BTW -- there's modules on CPAN for sending mail.  Check them out.


> 
> #!/usr/bin/perl
> 
> open(MAIL,"|exim -bm -f jeff -t");
> print MAIL "To: [EMAIL PROTECTED]";
> print MAIL "From: [EMAIL PROTECTED]";
                   ^^^^^^^^^^^^^^^^^^^
> print MAIL "CC: [EMAIL PROTECTED]";
> print MAIL "Subject: Birthdays\n";
> print MAIL "X-Generated-By: bday\n";
> 
> print MAIL "Upcoming Birthdays\n";
> print MAIL "==================\n";
> 
> open (BDAY,"/tmp/bday.tmp");
> 
> while (<BDAY>) {
>  print MAIL $_;
> }
> close (bday);
> close (MAIL);
> 
> exim log:
> 
> <= [EMAIL PROTECTED] U=root P=local S=415
> <= [EMAIL PROTECTED] U=mail P=spam-scanned S=733 [EMAIL PROTECTED]
> => jeff.org <[EMAIL PROTECTED]> D=spamcheck T=spamc_delivery
> ** [EMAIL PROTECTED]: unknown local-part "jeff.org" in domain "elkins.org"
> <= <> R=19xnfe-0000IA-00 U=mail P=local S=1536
> Error message sent to [EMAIL PROTECTED]
> Completed
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

-- 
Bill Moseley
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to