My question was, how is the best way to manage the time of smtpd executation. How can i prevents malicious connections. For exemple , if i do this:
"" #!/usr/bin/expect -f spawn telnet $argv 25 expect "220" send "helo localhost .\r" expect "250.*" send "mail from:<u...@gmail.comr>\r" expect "250.*" set i 1 while { $i < 50 } { send "rcpt to:<u...@gmail.com>\r" expect "250.*" sleep 50 } "" I can occupy a processes of smtpd for a long time, only checking recipients. There is another way to control this, What i can do is only tunning this settings ? smtp_rcpt_timeout, smtp_connect_timeout, smtp_data_init_timeout, smtp_data_done_timeout, smtp_mail_timeout 2009/4/7 Barney Desmond <barneydesm...@gmail.com> > 2009/4/8 Alexandre Carlim <alexandrecar...@gmail.com>: > > I have a question, how can i do to define the time to smtpd executing , > for > > example , currently if i connect in mx.x.x and send a rcpt to in interval > of > > 50s (or 10s) i can use the process for about 30 minutes (or 5 minutes) , > > depend the number of recipients are allow. I've been thinking if i do > the > > script in perl or with expect, i can lock all process , how can i > control > > this. There is a parameter in Postfix for this ? > > Your question is a little unclear. Are you looking for smtpd_timeout? > http://www.postfix.org/postconf.5.html#smtpd_timeout >