[wellylug] outgoing mail date

Rob Stockley wellylug at mowgli.net.nz
Wed May 4 07:53:28 NZST 2005


Persian wrote:

>Hello
>
>On Tue, May 03, 2005 at 09:35:11 +1200, Rob Stockley wrote:
>  
>
>>This might be easier than you think. Which package management system do 
>>you use? Apt-get by chance?
>>
>>    
>>
>
>I have RH9 Synaptic.It does not find submit.mc
>guess as it is not a package. I don't even know if I can use apt-get
>Sorry!
>Lyndsay
>
>  
>
To restore the file submit.mc
===================
In that case what you want is something like rpm2cpio. You'll need to 
locate the rpm for sendmail on the installation media that you used. 
Then you'll do something like;

    $ rpm2cpio sendmail-[version].rpm | cpio -itv

to list the contents of the rpm archive. Then you'll need to use

    $ rpm2cpio sendmail-[version].rpm | cpio -idv [path to]/submit.mc

to extract the file. This should all be run in your home directory as a 
regular user. cpio will create the path to the extracted file under your 
home folder. You can then copy it to the correct place with

    $ su -c 'cp ./[path to]/submit.mc /etc/[path to]/submit.mc'

Replace all the [path to]'s with the appropriate path for your system. 
You'll have to enter the root password and all should be done. I hope 
all this helps and isn't too confusing.

Good luck,
Rob




More information about the wellylug mailing list