Mostly for the archive, a copy of my answer on the postfix list. See also README.postfix for details.
> Everyone seems to use LMTP to connect to amavis, but is there a good reason > for this? > Does SMTP offer something better? > > > > SMTP is simpler and faster. The only reason to use LMTP is to allow > > per-user (soft/hard) failure responses after ".". If you don't need > > that, you should use SMTP. Indeed. Old versions of Postfix didn't do connection caching in smtp client, but nowadays this advantage of lmtp is lost. The only little advantage there still is with lmtp is when some but not all of recipients of a message are tempfailed by the second MTA (on port 10025). This should very rarely if ever occur in practice on a well configured system. Using smtp to feed amavisd-new is nowadays more common. > OK, thank you. From what I can tell, it looks like that's mostly a matter > of changing lmtp to smtp in this line: > amavis unix - - n - 10 lmtp > And removing the lmtp_send_xforward_command option. ...replacing it with smtp_send_xforward_command=yes > Although just for kicks, I tried doing this: > amavis unix - - n - 10 lmtp > -o lmtp_send_xforward_command=yes > -o lmtp_cache_connection=no > And restarted postfix and watched for several minutes, but only one of our > amavis servers was getting any requests - then it _switched_ to another. Is > our load too light - I can't imagine it is *that* light.... Postfix lmtp client is VERY persistent in keeping the connection open. The smtp client is much less so. Mark ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
