> I don't see anything wrong with these times.  They summarize as:

Thanks,
So then I do not have any bottleneck problem?
Is this only a matter of upgrading my hardware then?

>
> $ ./amavis-logwatch --timings 100 --timing_percentiles "50 100" <
> maillog.jkim
>
> =================================================================
> Timing Percentiles         % Time   Total (s)       50%      100%
> -----------------------------------------------------------------
> SA check                   98.91%      36.008    14.556    15.086
> SMTP DATA                   0.20%       0.071     0.035     0.035
> lookup_sql                  0.19%       0.068     0.004     0.060
> fwd-connect                 0.16%       0.059     0.014     0.032
> update_cache                0.13%       0.049     0.011     0.028
> main_log_entry              0.09%       0.032     0.011     0.011
> fwd-xforward                0.06%       0.022     0.001     0.020
> spam-wb-list                0.03%       0.012     0.004     0.004
> fwd-end-chkpnt              0.03%       0.012     0.004     0.004
> SA parse                    0.03%       0.011     0.004     0.004
> fwd-mail-pip                0.03%       0.011     0.004     0.004
> decide_mail_destiny         0.02%       0.009     0.003     0.003
> check_header                0.02%       0.009     0.003     0.003
> update_snmp                 0.02%       0.006     0.002     0.002
> write-header                0.02%       0.006     0.002     0.002
> SMTP pre-DATA-flush         0.02%       0.006     0.002     0.002
> digest_hdr                  0.01%       0.003     0.001     0.001
> prepare-dsn                 0.01%       0.003     0.001     0.001
> gen_mail_id                 0.01%       0.003     0.001     0.001
> SMTP pre-response           0.01%       0.003     0.001     0.001
> check_init                  0.01%       0.003     0.001     0.001
> rundown                     0.00%       0.000     0.000     0.000
> fwd-data-chkpnt             0.00%       0.000     0.000     0.000
> unlink-0-files              0.00%       0.000     0.000     0.000
> digest_body                 0.00%       0.000     0.000     0.000
> fwd-rcpt-pip                0.00%       0.000     0.000     0.000
> SMTP response               0.00%       0.000     0.000     0.000
> fwd-data-contents           0.00%       0.000     0.000     0.000
> =================================================================
> Total Time                100.00%      36.406
>
> 98% of the time, amavis is doing SpamAssassin checks, which takes no
> longer than 15.086 seconds (using your three samples, one of which was
> conspicuously fast). This would lead me to indicate your network checks
> are enabled.
>
>
> > Sep 12 22:34:00 amavis1 amavis[15774]: (15774-01-7) lookup_sql_field(id)
> > (WARN: no such field in the SQL table), "[EMAIL PROTECTED]"
> > result=undef
> > Sep 12 22:34:01 amavis1 amavis[15758]: Net::Server: 2007/09/12-22:34:01
> > Server closing!
> > Sep 12 22:34:01 amavis1 amavis[15765]: (15765-01-11) (!)TempDir removal:
> > tempdir is to be PRESERVED: /var/amavis/tmp/amavis-20070912T223232-15765
> ...
>
> I'm no SQL expert, but it appears there is no "id" field in your table,
> so lookup of [EMAIL PROTECTED] fails, and that instance of
> amavis closes.
>
> MrC

Thanks I think I need to fix SQL lookup configuration on Amavisd.conf.

/etc/amavisd.conf:

@lookup_sql_dsn =
   ( ['DBI:mysql:database=postfix;host=mydomain;port=3306', 'amavis',
'passwd'] );
$sql_select_policy = 'SELECT "Y" as local FROM domain WHERE
CONCAT("@",domain) IN (%k)';
$sql_select_white_black_list = undef;  # undef disables SQL
white/blacklisting
$recipient_delimiter = '+';                # (default is '+')
$replace_existing_extension = 1;        # (default is false)
$localpart_is_case_sensitive = 0;        # (default is false)

I set lookup part like this. And I am only checking if the domain is the
valid one or not.
I think that part is failing. Can someone help please?

Justin



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to