From: Klaus J. R. <Kla...@at...> - 2003-01-15 19:00:00
|
Joost van Baal wrote: > > I'd be nice if syncmail could supply a commandline option which would > > make it call /usr/sbin/sendmail instead of connecting to localhost on > > port 25 (which is what smtplib.SMTP() does, I believe). On some > > (arguably misconfigured, perhaps) systems, this makes a difference. > > MUA's generally call /usr/sbin/sendmail to sent out mail. Therefore, I > > believe it'd be a sane thing for syncmail to do this too (or make it > > available.) The advantage of smtplib.SMTP is portability -- some platforms, most notably Windows, do not have a sendmail binary in the default path. The Perl version of cvs-syncmail at http://cvs-syncmail-pl.sf.net/, which is based on cvs-syncmail, has a configuration option for specifying a different SMTP server, so if you are relaying all messages through a smarthost at your ISP you can do export SMTP_SERVER=myserver cvs-syncmail ... > tried to write a patch, based on these old scripts, but failed. I'm not that fluent in python :( ) Retrofitting the change for allowing different smarthosts to the Python code should not be too difficult, if you prefer hacking Perl code you have a ready-to-use solution already (and changing the Net::SMTP call to an external sendmail call would be easy too if you still want to call sendmail instead). -- Klaus Johannes Rusch Kla...@at... http://www.atmedia.net/KlausRusch/ |