Results 1 to 3 of 3
-
12-29-2005, 04:04 AM #1Junior Guru Wannabe
- Join Date
- Jan 2005
- Posts
- 60
allowing mail with "undisclosed-recipients"?
Hi all,
How can I set up my server (FreeBSD 5.2 + Cpanel) to allow mail addresses only in the Bcc field? If I compose a message with the To: field empty and the Bcc: field populated, my server refuses to send the mail, yet if I use the same format and send through Google's SMTP servers, the message is sent and the receipients see
To: undisclosed-recipients:;
in their message.
Any ideas?
Cheers and hope you all had/are having a great holiday
-
12-29-2005, 06:17 AM #2Junior Guru Wannabe
- Join Date
- Aug 2005
- Location
- Make a guess
- Posts
- 67
examine /etc/exim.pl and if you know perl you should be able to make the changes you need for yourself.
Shashank Wagh.
Systems Administrator.
http://www.shashank.net
-
12-29-2005, 08:28 AM #3Junior Guru Wannabe
- Join Date
- Jan 2005
- Posts
- 60
My perl is passable, but not great, but I figured out the matches are being made here
Code:my ($receivedfor); my @RECPS; my @HEADERS = split(/\n/, $headers); my ($header,$email); foreach $header (@HEADERS) { if ($header =~ /^to:/i) { my $line = $header; $line =~ s/^to: //ig; my @TRECPS = split(/[\,\;]/, $line); foreach(@TRECPS) { push(@RECPS,$_); } } if ($header =~ /^bcc:/i) { my $line = $header; $line =~ s/^to: //ig; my @TRECPS = split(/[\,\;]/, $line); foreach(@TRECPS) { push(@RECPS,$_); } } if ($header =~ /^cc:/i) { my $line = $header; $line =~ s/^to: //ig; my @TRECPS = split(/[\,\;]/, $line); foreach(@TRECPS) { push(@RECPS,$_); } } if ($header =~ /\tfor\s([^\;]+)/i) { $receivedfor = $1; } } for(my $i=0;$i<=$#RECPS;$i++) { if ($RECPS[$i] =~ /\<(\S+)\>/) { $RECPS[$i] = $1 } elsif ($RECPS[$i] =~ /\((\S+)\)/) { $RECPS[$i] = $1; } } my $matchdomain = 0; my $matchrecv = 0; foreach my $ldomain (@LD) { $ldomain =~ s/\n//g; next if ($ldomain !~ /\./); foreach my $recp (@RECPS) { if ($recp =~ /\@${ldomain}$/) { $matchdomain = 1; } } if ($receivedfor =~ /\@${ldomain}$/) { $matchrecv = 1; } }