OSEC

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

From: Alcros (alcrosgmail.com)
Date: Fri Oct 21 2005 - 15:26:23 CDT


Hello,

I have a postfix-2.1.4 mailserver, using php I'm trying to send an
email to multiple addresses, but when there are more than 100
addresses, I get the following output on my logs:

Oct 19 10:33:09 miserver postfix/postdrop[8258]: warning: stdin:
illegal length 15542, record type 78
Oct 19 10:33:10 miserver postfix/sendmail[8257]: warning: premature
end-of-input on /usr/sbin/postdrop -r while reading input attribute
name
Oct 19 10:33:09 miserver postfix/postdrop[8258]: fatal: uid=74: malformed input
Oct 19 10:33:10 miserver postfix/sendmail[8257]: fatal: apache(74):
Error writing message file

I think it might be because I'm writing all these email addresses on
the Bcc: field on the headers, but I'm not sure.
I tried setting the line_length_limit to 15000 it worked but then my
server went down all of a sudden.

I'll be thankful if you can give some ideas or pointers.

Following you'll find the output from postfinger:

postfinger - postfix configuration on Fri Oct 21 14:14:55 GMT 2005
version: 1.29

--System Parameters--
mail_version = 2.1.4
hostname = mydomain.com
uname = Linux mydomain.com 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST
2004 i686 Intel(R) Pentium(R) III CPU family 1133MHz unknown
GNU/Linux

--Packaging information--
looks like this postfix comes from RPM package: postfix-2.1.4-2mdk

--main.cf non-default parameters--
alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
daemon_directory = /usr/lib/postfix
debug_peer_list = 172.16.120.15
delay_warning_time = 4h
html_directory = /usr/share/doc/postfix-2.1.4/html
inet_interfaces = localhost
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mynetworks_style = host
newaliases_path = /usr/bin/newaliases.postfix
owner_request_special = no
readme_directory = /usr/share/doc/postfix-2.1.4/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.1.4/samples
sendmail_path = /usr/sbin/sendmail.postfix
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
unknown_local_recipient_reject_code = 450

--master.cf--
smtp inet n - y - - smtpd -v
pickup fifo n - y 60 1 pickup
  -o content_filter=
  -o receive_override_options=
cleanup unix n - y - 0 cleanup
qmgr fifo n - y 300 1 qmgr
tlsmgr fifo - - y 300 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
anvil unix - - y - 1 anvil
maildrop unix - n n - - pipe
  flags=DRhu user=nobody argv=/usr/bin/maildrop -d ${recipient}
cyrus-deliver unix - n n - - pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m
${extension} ${user}
cyrus unix - n n - - lmtp
  -o lmtp_cache_connection=yes
cyrus-chroot unix - - y - - lmtp
  -o lmtp_cache_connection=yes
cyrus-inet unix - - y - - lmtp
  -o lmtp_cache_connection=yes
  -o lmtp_sasl_auth_enable=yes
  -o lmtp_sasl_password_maps=hash:/etc/postfix/cyrus_lmtp_sasl_pass
  -o lmtp_sasl_security_options=noanonymous
uucp unix - n n - - pipe
  flags=Fqhu user=uucp argv=/usr/bin/uux -r -n -z -a$sender -
$nexthop!rmail ($recipient)
127.0.0.1:10026 inet n - y - - smtpd
  -o content_filter=
  -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 mynetworks_style=host
  -o strict_rfc821_envelopes=yes
  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  -o smtpd_client_connection_limit_exceptions=127.0.0.0/8
lmtp-filter unix - - y - - lmtp
  -o lmtp_data_done_timeout=1200
  -o disable_dns_lookups=yes
smtp-filter unix - - y - - smtp
  -o smtp_data_done_timeout=1200
  -o disable_dns_lookups=yes

-- end of postfinger output --