>>>>> "Sandip" == Sandip Bhattacharya <[EMAIL PROTECTED]> writes:
Sandip> Hi! We are using a POP-before-SMTP based relaying mail
Sandip> server. It updates a .db file with the IP of the POP
Sandip> client on every access, which is further used by sendmail
Sandip> before allowing relaying.
Sandip> Now I started facing a problem with the relaying access,
Sandip> and none of my mails are going out. I want to see that my
Sandip> IP is being included in .db file. For that I need a way to
Sandip> "unmap" the .db file. makemap(8) in other platforms
Sandip> supposedly supports the "-u" options which prints the
Sandip> contents of the .db file. Unfortunately, this option
Sandip> doesn't work in the sendmail packaged with RedHat Linux.
Sandip> Does anyone know of a way to print the contents of such a
Sandip> file?
#!/usr/bin/perl -w
use DB_File;
tie %x , 'DB_File' , "/etc/mail/access.db" , O_RDONLY ; # put your filename here
foreach $i ( keys %x )
{
print "file{$i} = $x{$i}\n" ;
}
exit 0 ;
Regards,
-- Raju
--
Raju Mathur [EMAIL PROTECTED] http://kandalaya.org/
It is the mind that moves
================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
=================================================