bryan hunt, Mon, Dec 30, 2002 at 05:47:12PM +0000:
> I was planning on redirecting the firewall port 25 to an AV proxy which
> forwards the mail to a postfix server.
> Just for the next couple of days I want to set up postfix so that every mail
> it recieves is duplicated to a second ( existing windowz )server. Is there a
> quick and dirty way to do this ? I seem to remember it was easy to do with
> sendmail but I haven't seen anything nice yet.
the funnier way is to modify master.cf so it doesn't call smtpd for
connections over port 25, but rather something, say a shell script, who
does forward a copy to the port 25 of the other server (eg using netcat)
and to smtpd, sort of
#!/bin/sh
otherserver=your.other.mail.server.ie
$(postconf | grep program_directory)
tmpf=/tmp/received-mail.$$
tee $tmpf | $program_directory/smtpd
(cat $tmpf | nc $otherserver -p 25) && rm $tmpf
p.
--
pbm - "oh this rain it will continue till the morning as I'm listening
- to the bells of the cathedral - I am thinking of your voice"
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!