OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Problem

From: Johan Boshoff (johanconnixinternet.co.za)
Date: Mon Aug 27 2007 - 03:46:18 CDT


Hi All,

I have a problem where my Postfix keep lots of mail in the /var/spool/active and incoming directories.

I got entries like this in my maillog:

 lots of deferred mail, that is bad for performance : 186 Time(s)
     mail for localhost.localdomain is using up 12478 of 15778 active queue entries : 2 Time(s)
     mail for localhost.localdomain is using up 14388 of 17688 active queue entries : 2 Time(s)
     mail for localhost.localdomain is using up 15354 of 18741 active queue entries : 2 Time(s)
     mail for localhost.localdomain is using up 15360 of 18749 active queue entries : 2 Time(s)
     mail for localhost.localdomain is using up 15373 of 18763 active queue entries : 2 Time(s)
     mail for localhost.localdomain is using up 15378 of 18770 active queue entries : 2 Time(s)
     mail for localhost.localdomain is using up 15385 of 18778 active queue entries : 2 Time(s)

Then the maillog ends like this:

 please avoid flushing the whole queue when you have : 186 Time(s)
     premature end-of-input on private/rewrite socket while reading input attribute name : 2 Time(s)
     problem talking to service rewrite: Connection reset by peer : 2 Time(s)
     this may slow down other mail deliveries : 186 Time(s)
     to turn off these warnings specify: qmgr_clog_warn_time = 0 : 186 Time(s)
     you may need a separate master.cf transport for localhost.localdomain : 186 Time(s)

I am very new to Postfix and I do not seem to know what to do to fix it. I can see kind of what to do but I do not know.

I am using ISPConfig to manage my mail and hosting. My Postfix output is like follow:

postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
invalid_hostname_reject_code = 554
local_recipient_maps = $alias_maps, proxy:unix:passwd.byname
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10485760
multi_recipient_bounce_reject_code = 554
mydestination = $myhostname, localhost.$mydomain
mynetworks = 127.0.0.0/8 69.64.0.0/24
newaliases_path = /usr/bin/newaliases.postfix
non_fqdn_reject_code = 554
notify_classes = resource, software
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_invalid_hostname, reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client multi.uribl.com, reject_rbl_client dsn.rfc-ignorant.org, reject_rbl_client dul.dnsbl.sorbs.net, reject_rbl_client list.dsbl.org, reject_rbl_client sbl-xbl.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client dnsbl.sorbs.net, reject_rbl_client cbl.abuseat.org, reject_rbl_client ix.dnsbl.manitu.net, reject_rbl_client combined.rbl.msrbl.net, reject_rbl_client rabl.nuclearelephant.com, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_random_source = dev:/dev/urandom
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 550
unknown_relay_recipient_reject_code = 554
unknown_virtual_alias_reject_code = 554
unknown_virtual_mailbox_reject_code = 554
unverified_recipient_reject_code = 554
unverified_sender_reject_code = 554
virtual_mailbox_domains = /etc/postfix/local-host-names

Please look at the entry for mydestination = $myhostname, localhost.$mydomain. Where does it actually get this myhostname from? Can I change this because I also get errors syaing that I cannot list my hostname (eg mail.example.com) in both mydestination and virtual_mailbox_domains which ISPConfig uses to put in all the domains added. Unfortunately I cannot comment out my hostname because when ISPConfig refreshes, it takes out the comment automatically.

Please assist because every morning I have to clear the active and incoming folders of all the messages because my load goes up to 150!

Regards,
Johan Boshoff