Prev: RHSBL bcc_maps on rcpt-to for outbound spam checks
Next: Throttling, trivial-rewrite and problem talking to serviceerrors when using LDAP
From: Jon Kristensen on 13 Jul 2010 11:12 Hello! I'm getting some throttling/trivial-rewrite/problem talking to service errors when enabling LDAP with Postfix. My virtual map seems to work using postmap: cybersec:~# postmap -q jon.kristensen(a)cybersec.se ldap:/etc/postfix/virtual_mailbox_maps.cf /var/mail/virtual/cybersec/csjonkri/ These are the errors I get when trying to Telnet to the box (Postfix stops responding after acknowledging the HELO command): cybersec:~# tail -f /var/log/mail.log Jul 13 14:28:52 cybersec postfix/master[2422]: warning: process /usr/lib/postfix/trivial-rewrite pid 2457 killed by signal 6 Jul 13 14:28:53 cybersec postfix/smtpd[2455]: warning: problem talking to service rewrite: Success Jul 13 14:28:53 cybersec postfix/master[2422]: warning: process /usr/lib/postfix/trivial-rewrite pid 2458 killed by signal 6 Jul 13 14:28:53 cybersec postfix/master[2422]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling This is my configuration: cybersec:~# postconf -n alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_size_limit = 0 mydestination = $mydomain, jonkristensen.com, $myhostname, localhost mydomain = cybersec.se myhostname = cybersec000.$mydomain mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 # + vpn myorigin = cybersec.se notify_classes = bounce, 2bounce, delay, policy, protocol, resource, software readme_directory = no recipient_delimiter = + smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) virtual_mailbox_maps = ldap:/etc/postfix/virtual_mailbox_maps.cf This is my virtual_mailbox_maps map: cybersec:~# cat /etc/postfix/virtual_mailbox_maps.cf server_host = ldap://ldap.cybersec.se search_base = dc=cybersec,dc=se start_tls = yes version = 3 # tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt # tls_cert = /etc/postfix/tls/ldap.cybersec.se.crt # tls_key = /etc/postfix/tls/ldap.cybersec.se.pem # tls_require_cert = yes query_filter = (|(mail=%s)(mailLocalAddress=%s)) result_attribute = uid result_format = /var/mail/virtual/cybersec/%s/ If I comment out the virtual_mailbox_maps line in my configuration file the errors does not appear. Thanks in advance for any help! Warm regards, Jon Kristensen
From: Wietse Venema on 13 Jul 2010 11:42 Jon Kristensen: > cybersec:~# tail -f /var/log/mail.log > Jul 13 14:28:52 cybersec postfix/master[2422]: warning: process /usr/lib/postfix/trivial-rewrite pid 2457 killed by signal 6 You need to search your logfiles for lines with the word "panic". Wietse
From: Jon Kristensen on 13 Jul 2010 11:58
On 7/13/2010 5:42 PM, Wietse Venema wrote: > Jon Kristensen: >> cybersec:~# tail -f /var/log/mail.log >> Jul 13 14:28:52 cybersec postfix/master[2422]: warning: process /usr/lib/postfix/trivial-rewrite pid 2457 killed by signal 6 > You need to search your logfiles for lines with the word "panic". > > Wietse That word is not in any log file. Postfix uses /var/log/mail.{log,info,err,warn}. cybersec:~# cat /var/log/* | grep panic cat: /var/log/apache2: Is a directory cat: /var/log/apt: Is a directory cat: /var/log/fsck: Is a directory cat: /var/log/news: Is a directory cat: /var/log/ntpstats: Is a directory Do I need to enable debug or something? I'm using Debian and the official repository... Best, Jon Kristensen |