[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim.conf screwed up?



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. 
> jeffelkins@earthlink.net) delivery fails with a munged address of: 
> jeffelkins.net@elkins.org --- It works if addresses in the perl script are 
> left unqualified, pointing to local accounts -- jeff works jeff@elkins.org 
> 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: jeff@elkins.org\n";
> print MAIL "From: jeff@elkins.org\n";
                   ^^^^^^^^^^^^^^^^^^^
> print MAIL "CC: jeffelkins@earthlink.net\n";
> 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:
> 
> <= jeff@elkins.org U=root P=local S=415
> <= jeff@elkins.org U=mail P=spam-scanned S=733 id=E19xnfb-0000I5-00@elkins.org
> => jeff.org <jeff.org@elkins.org> D=spamcheck T=spamc_delivery
> ** jeff.org@elkins.org: unknown local-part "jeff.org" in domain "elkins.org"
> <= <> R=19xnfe-0000IA-00 U=mail P=local S=1536
> Error message sent to jeff@elkins.org
> Completed
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
Bill Moseley
moseley@hank.org



Reply to: