OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Need Some Guidance With Postfix/Changing From Sendmail
From: Ralf Hildebrandt (news-list.postfix.usersinnominate.de)
Date: Wed Aug 30 2000 - 02:42:06 CDT


On 30 Aug 2000 07:16:16 +0200, Mike Flynn <mikeflynyahoo.com> wrote:

>My current interface to sendmail is a fork of a
>child process, opening a pipe to the child and
>piping over the mail message and then have the
>child "execv" into sendmail. The "execv" part is
>easy to change - today there string like this:
>"/usr/sbin/sendmail -bm -t -f" which I can easily
>change to "/postfix/bin/sendmail -bm -t -f". I have
>already done this and I was disappointed in the
>results. I was hoping to see the "postfix" version
>run rings around the "sendmail" version but it didn't.
>I guess because they both have the same
>overhead - a process creation and a pipe.

Yup. Besides, your installation should have removed /usr/sbin/sendmail and
installed Postfix's /usr/sbin/sendmail there!

>I'm wondering how to speed this up. I am considering

Use SMTP submission

>changing to a threaded implementation in which each
>thread (up to some limit of simultaneous threads)
>writes its mail message to the maildrop directory
>rather than going through postfix's sendmail
>interface.

No. These are subject to change. Use SMTP.

>Q04.
>How does Postfix do that? For example if I am
>sending 10,000 email messages and 30% are to
>"aol.com" but the distribution of the "aol.com"
>messages is random how does Postfix work?
>Will it look ahead to find if the next message
>is also to an "aol.com" address?

I always assumed that you use:

MAIL FROM: <hildebinnominate.de>
RCPT TO: <luser1aol.com>
RCPT TO: <luser2aol.com>
RCPT TO: <luser3aol.com>
RCPT TO: <luser4aol.com>
RCPT TO: <luser5aol.com>
...
RCPT TO: <lusernaol.com>
DATA

-- 
ralf.hildebrandtinnominate.de
Dipl.-Informatiker                                       innominate AG
system engineer                                      networking people
tel: +49.30.308806-62  fax: -77   http://innominate.de  pgp at request