歡迎您光臨本站 註冊首頁

postfix性能以及是否可以設置優先順序隊列?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix性能以及是否可以設置優先順序隊列?

目前的狀況是這樣的,隊列里有1000封郵件,當我再次發送新郵件時,收件人似乎需要順序等待所有1000封處理完了,才會收到!這個時候,可能2個小時已經過去了.另一台qmail郵件伺服器就沒有遇到這樣的問題.這是我的第一個疑問!
第二個疑問,是否可以配置特定地址的優先順序?

我的main.cf和master.cf配置如下:
main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = 省略
mydomain = 省略
myorigin = $mydomain
inet_interfaces = all
mydestination =
unknown_local_recipient_reject_code = 550
mynetworks = 172.29.0.0/16,127.0.0.0/8,172.23.0.3

###############################CYRUS-SASL##############################
broken_sasl_auth_clients = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_u
nknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,rejec
t_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning:Version not Available!
###############################SASL-END################################

###############################Virtual Mailbox Settings################
virtual_mailbox_base = /var/mailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
maximal_queue_lifetime = 10m
qmgr_message_active_limit = 30000
queue_run_delay = 240s
###############################Mailbox END##############################

###############################Quota Settings###########################
message_size_limit = 14336600
virtual_mailbox_limit = 2147483648
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps=mysql:/etc/postfix/mysql/virtual_mailbox_limit_override=yes
virtual_maildir_limit_message=User's maildir has overdrawn his diskspace quota,try again later.
virtual_overquota_bounce=yes
default_destination_concurrency_limit = 20
default_process_limit = 1024
###############################Quota END################################

###############################Amavis Start#############################
content_filter=amavisfeed::10024
max_use=10
################################Amavis END###########################

debug_peer_level = 2
debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        xxgdb  $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /var/www/postfix_html
manpage_directory = /usr/local/postfix/man
sample_directory = /etc/postfix
biff = no
#recipient_bcc_maps = hash:/etc/postfix/recipient_bcc

################################Security Start##############################
append_at_myorigin = no
append_dot_mydomain = no
disable_vrfy_command = yes
smtp_skip_5xx_greeting = yes
smtp_skip_4xx_greeting = yes
qmgr_message_active_limit = 40000
qmgr_message_recipient_limit = 40000
minimal_backoff_time = 1000s
maximal_backoff_time = 3000s
smtpd_recipient_limit = 10000
################################Security END################################


master.cf:
smtp inet n - n - 2048 smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
        flags=DRhu user=vmail argv=/usr/bin/maildrop -w 90 -d ${recipient}
old-cyrus unix - n n - - pipe
        flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
        user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
        flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
        flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
        flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
amavisfeed unix - - n - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
        -o disable_dns_lookups=yes
        -o max_use=20
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
        -o smtpd_delay_reject=no
        -o smtpd_client_restrictions=permit_mynetworks,reject
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=reject_unauth_pipelining
        -o smtpd_end_of_data_restrictions=
        -o smtpd_restriction_classes=
        -o mynetworks=127.0.0.0/8
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o smtpd_client_connection_count_limit=5
        -o smtpd_client_connection_rate_limit=5
        -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
        -o local_header_rewrite_clients=
《解決方案》

看來是大公司,郵件隊列裡面這麼多郵件等待處理

[火星人 ] postfix性能以及是否可以設置優先順序隊列?已經有604次圍觀

http://coctec.com/docs/service/show-post-21190.html