> >Hi all,
> >I am having little bit of problem with delivery.
> >I had postfix+mysql+dovecot+amavisd-new all in one machine.
> >It was working fine but I just wanted separate those components
> so I tried
> >to offload amavisd-new first.
> >After one day of separating it, i see a lot of messages in the
> active queues
> >and deferred queues and it is delaying the message delivery. I
> see a lot of
> >messages has 'Connection timed out' in deferred queue.
> >I would like to know what I can do to correct this problem?
> >I have a feeling that this is related to configuration of my
> number of smtp,
> >smtpd, amavis processes.
> >Can someone help me??
>
> Look at the timing on your amavisd-new machine at log level 2 or
> greater.  With the 12 connections you have configured, it's not able
> to process mail in the 1200 seconds you have allowed.


For 12 connection on amavis, I setup postfix master.cf to have the same
process number. And postfix, amavis everything is localhost.
For 20 max_server numbers on separate amavis1 server, I didn't do anything
on postfix master.cf side. Is that causing the problem? Should I match that
number too?
And I don't know where I setup 1200 seconds.


> Does amavisd-nanny show more than 12 connections in use at a
> time?  If not, good.  You may need to reduce the number of
> connections allowed in the postfix master.cf amavisd entry to get the
> processing time down to some reasonable number.
>
> I see you have amavisd-new configured for 20 servers.
> Are you running out of memory?  CPU stuck at 100%?
>
> You might try running "amavisd debug" or "amavisd debug-sa" to help
> find the bottleneck.
>
> Good luck.
>
> --
> Noel Jones


Can you help me to pin point the problem?
Can this be a DNS related problem? Does amavis server need to have the
correct DNS server setup? (the same one as the postfix server is using?)
I only made host file to point postfix server hostname.
I just want to have my postfix server to accept legitimate emails even some
spams and pass it to another server for spam filtering and then recieve back
and deliver to the maildir on postfix local disk.

On my postfix localhost where 12 max_server is configured amavisd-nanny
shows:
PID 02500: .             0:00:01 .
PID 02607: 02607-06-4    0:00:03 ===
PID 02627: .             0:00:01 .
PID 02856: 02856-04-8    0:00:01 =
PID 03134:               0:00:03 ...
PID 03244:               0:00:05 .....
PID 03327: 03327-04-2    0:00:04 ====
PID 03450: 03450-02      0:00:02 ==
PID 03463: 03463-02-2    0:00:01 =
PID 03682:               0:00:03 ...
PID 04076: .             0:00:01 .
PID 04331:               0:00:03 ...

On my amavis server (separate machine) where 20 max_server is configured
amavisd-nanny shows:
PID 14849: 14849-01      0:00:19 =====SSSS:SSSSSSSSS:
PID 14850: 14850-01-4    0:00:00 S
PID 14851: 14851-01      0:00:19 =====SSSS:SSSSSSSSS:
PID 14852:               0:00:17 .........:.......
PID 14853: 14853-01      0:00:09 =SSSSSSSS:
PID 14854:               0:00:16 .........:......
PID 14855:               0:00:19 .........:.........
PID 14856: 14856-01-4    0:00:01 =S
PID 14857: 14857-02-2    0:00:03 SSS
PID 14858:               0:00:19 .........:.........
PID 14859:               0:00:19 .........:.........
PID 14860: 14860-01-3    0:00:00 S
PID 14861: 14861-01      0:00:04 SSSSS
PID 14862: 14862-01-2    0:00:01 S
PID 14863: 14863-01-2    0:00:04 SSSS
PID 14864: 14864-01-2    0:00:05 =SSSSS
PID 14865:               0:00:19 .........:.........
PID 14866: 14866-01-2    0:00:00 S
PID 14867:               0:00:18 .........:........
PID 14868:               0:00:18 .........:........


PID 14849: 14849-01      0:00:49 =====SSSS:SSSSSSSSS:SSSSSSSSS:SSSS>
PID 14850: 14850-01-10   0:00:03 =SSS
PID 14851: 14851-01-5    0:00:00 S
PID 14852:               0:00:47 .........:.........:.........:.....
PID 14853: 14853-01-6    0:00:00 S
PID 14854:               0:00:46 .........:.........:.........:.....
PID 14855:               0:00:49 .........:.........:.........:.....
PID 14856: 14856-01-8    0:00:03 SSS
PID 14857: 14857-02-6    0:00:03 =SSS
PID 14858:               0:00:49 .........:.........:.........:.....
PID 14859:               0:00:49 .........:.........:.........:.....
PID 14860: 14860-01-10   0:00:08 SSSSSSSSS
PID 14861: 14861-01-6    0:00:10 SSSSSSSSS:S
PID 14862: 14862-01-6    0:00:11 =SSSSSSSS:SS
PID 14863: 14863-01-8    0:00:01 S
PID 14864: 14864-01-7    0:00:07 SSSSSSS
PID 14865:               0:00:49 .........:.........:.........:.....
PID 14866: 14866-01-5    0:00:00 F
PID 14867:               0:00:48 .........:.........:.........:.....
PID 14868:               0:00:48 .........:.........:.........:.....


master.cf
----------------------------------------------------------------------------
---
smtp      inet  n       -       n       -       150       smtpd
#
amavis unix    -       -       n       -       12      smtp
       -o smtp_data_done_timeout=1200
       -o smtp_send_xforward_command=yes
       -o disable_dns_lookups=yes
       -o fallback_relay=127.0.0.1:10024
#
10.150.10.6:10025        inet    n       -       n       -       -
smtpd
       -o smtpd_authorized_xforward_hosts=10.0.0.0/8
       -o content_filter=
       -o local_recipient_maps=
       -o relay_recipient_maps=
       -o smtpd_restriction_classes=
       -o smtpd_client_restrictions=
       -o smtpd_helo_restrictions=
       -o smtpd_sender_restrictions=
       -o smtpd_recipient_restrictions=permit_mynetworks,reject
       -o mynetworks=10.0.0.0/8
       -o strict_rfc821_envelopes=yes
       -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
#
127.0.0.1:10025        inet    n       -       n       -       -       smtpd
       -o smtpd_authorized_xforward_hosts=127.0.0.0/8
       -o content_filter=
       -o local_recipient_maps=
       -o relay_recipient_maps=
       -o smtpd_restriction_classes=
       -o smtpd_client_restrictions=
       -o smtpd_helo_restrictions=
       -o smtpd_sender_restrictions=
       -o smtpd_recipient_restrictions=permit_mynetworks,reject
       -o mynetworks=127.0.0.0/8
       -o strict_rfc821_envelopes=yes
       -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks



amavisd.conf
----------------------------------------------------------------------------
----
# COMMONLY ADJUSTED SETTINGS:

@bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
$bypass_decode_parts = 1;         # controls running of decoders&dearchivers

$max_servers = 20;            # num of pre-forked children (2..15 is
common), -m
$daemon_user  = "amavis";     # (no default;  customary: vscan or
amavis), -u
$daemon_group = "amavis";     # (no default;  customary: vscan or
amavis), -g

$forward_method = 'smtp:[10.150.10.6]:10025';  # set to undef with milter!
$notify_method  = $forward_method;

$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # only applies with
$unix_socketname

$policy_bank{'AM.PDP-SOCK'} = {
  protocol => 'AM.PDP',
  auth_required_release => 0,  # do not require secret_id for
amavisd-release
};

$sa_tag_level_deflt  = -9999;  # add spam info headers if at, or above that
level
$sa_tag2_level_deflt = 5.0;  # add 'spam detected' headers at that level
$sa_kill_level_deflt = 8.0;  # triggers spam evasive actions (e.g. blocks
mail)
$sa_dsn_cutoff_level = 8.0;   # spam level beyond which a DSN is not sent
$sa_quarantine_cutoff_level = 12; # spam level beyond which quarantine is
off
#$penpals_bonus_score = 8;    # (no effect without a @storage_sql_dsn
database)
#$penpals_threshold_high = $sa_kill_level_deflt;  # don't waste time on hi
spam
$sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is
larger
$sa_local_tests_only = 0;    # only tests which do not require internet
access?

$final_virus_destiny      = D_DISCARD;
$final_banned_destiny     = D_DISCARD;
$final_spam_destiny       = D_PASS;
$final_bad_header_destiny = D_PASS;



-------------------------------------------------------------------------
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
AMaViS-user@lists.sourceforge.net
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