Creat a .forward file in your home directory, with a line similar to the following one: "| /path/to/yourscript.pl "
Sendmail will then pipe all your mails to the script "/path/to/yourscript.pl". You can write the script to do anything with your mails including sending (forwarding) to another MTA. Probably, perl (with Net::SMTP module) will be a good choice for such kind of job.
Make sure that .forward file has 644 permissions.
Cheers! Manu Garg
Clifford D'Mello cjdmello@gmail.com Sent by: linuxers-bounces@mm.ilug-bom.org.in 07/10/2004 03:39 PM
Please respond to "GNU/Linux Users Group, Mumbai, India" linuxers@mm.ilug-bom.org.in
To gopi joshi gopijoshi@rediffmail.com, "GNU/Linux Users Group, Mumbai, India" linuxers@mm.ilug-bom.org.in cc
Subject Re: [ILUG-BOM] sendmail Query
Hi, Maybe this could help http://ftp.cfu.net/pub/amavisd-new/README.sendmail-dual
What is needed is to pass an argument to the Mesmtp mailer to specify the port.
Maybe you should be looking at postfix ;-)
Clifford
On 10 Jul 2004 09:33:00 -0000, gopi joshi gopijoshi@rediffmail.com wrote:
i want sendmail to send all my incomming mails in= cluding local mails to some other MTA on port 2525 ....!is it possible...