Reading a file from Lotus notes DB

Hi,

is there any way Unix shell script can directly read a mail on a mail server
(Lotus notes) and save it as a text file in a unix directory ?

For eg mail can be at abc@xyz.com and the same should be stored at
home/script on def.com

Thanks in advance,
CD

follow the steps

Smarthost for sendmail and/or exim | Linux Operating System - Debian, Ubuntu, Fedora, Gentoo, Arch

@Raj: Thanks for the reply
I think the above link is userful for sending emails. But I require to extract a attachment from an lotus notes DB and place that in unix server. Can you please put the relavant steps in detail?