Hi,
A fix has been committed to -current (revision 1.146 of smtp_session.c,
1.237 of smtpd.h and 1.2 of filter.h).
Gilles
On Thu, Sep 01, 2011 at 07:29:29PM -0700, Aiden Sullivan wrote:
> I have an smtpd setup as below:
>
> listen on lo0
> listen on em0
> map "aliases" { source db "/etc/mail/aliases.db" }
> accept from all for domain "sullivan.in" alias aliases deliver to mda
> "procmail -f -"
> accept from all for local alias aliases deliver to mda "procmail -f -"
> accept from local for all relay
>
> I try to send a message has a few attachments -- making it 22220 lines long
> and
> 1.6 megabytes. A copy of the message is at:
> http://ugcs.caltech.edu/~irene/drop/longmail
>
> I run:
> date;sendmail [email protected] < longmail ;date
>
> to see how long it takes for smtpd to enqueue the message -- it takes
> 12 minutes to do so. The CPU on this machine is otherwise idle, and none
> of the smtpd processes use up much CPU time when the sendmail command is
> running.
>
> 12 minutes to transmit 22220 lines comes out to about 30 lines per second --
> which seems oddly low.
>
> if I run smtpd -dv and do the above, I get:
> smtp_new: incoming client on listener: 0x3c009a40
> session_pickup: greeting client
> command: EHLO args: localhost
> smtp: got imsg_mfa_helo/mail/rcpt/quit
> command: MAIL FROM args: <[email protected]>
> session_rfc5321_mail_handler: sending notification to mfa
> smtp: got imsg_mfa_helo/mail/rcpt/quit
> smtp: imsg_queue_create_message returned
> command: RCPT TO args: <[email protected]>
> smtp: got imsg_queue_commit_envelopes
> command: DATA args: (null)
> smtp: imsg_queue_message_file returned
> smtp: got imsg_mfa_helo/mail/rcpt/quit
> smtp: got imsg_mfa_helo/mail/rcpt/quit
> smtp: got imsg_mfa_helo/mail/rcpt/quit
> smtp: got imsg_mfa_helo/mail/rcpt/quit
> [repeated ``smtp: got imsg_mfa_helo/mail/rcpt/quit'' lines, apparently one
> for
> every line in the email]
>
> --
> Aiden
>
--
Gilles Chehade
http://www.poolp.org/ http://u.poolp.org/~gilles/