Hi Mouss,

The informaiton about  Postfix environment follows :-

Postfix 2.5.1 (Ubuntu package)
Ubuntu 8.04.2 LTS

The content of main.cf using 'postconf -n' follows :-

=== begin of postconf -n ===

alias_database = 
alias_maps = 
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = 
myhostname = imapsv02.auth.hk1.sml.citizen.co.jp
mynetworks = 127.0.0.0/8 10.144.1.0/24 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = 
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = reject_unauth_pipelining, 
permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, 
reject_unauth_destination, check_policy_service
smtpd_tls_CAfile = /etc/ldap/ssl/cacert.pem
smtpd_tls_cert_file = /etc/ldap/ssl/imapsv02-cert.pem
smtpd_tls_key_file = /etc/ldap/ssl/imapsv02-key.pem
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = no
virtual_alias_domains = auth.hk1.sml.citizen.co.jp
virtual_alias_maps = ldap:/etc/postfix/ldap-virtualalias
virtual_gid_maps = static:112
virtual_mailbox_base = /local/mailbox
virtual_mailbox_domains = imapsv02.auth.hk1.sml.citizen.co.jp
virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtualmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:104

=== end of postconf -n ===

I checked and the results returned from hash and ldap are the same, and 
the problem only happened when using ldap :-

>postmap -q 'venus....@auth.hk1.sml.citizen.co.jp 
hash:/etc/postfix/virtual
venus....@imapsv02.auth.hk1.sml.citizen.co.jp
>postmap -q 'venus....@auth.hk1.sml.citizen.co.jp 
ldap:/etc/postfix/ldap-virtualalias
venus....@imapsv02.auth.hk1.sml.citizen.co.jp

=== begin of master.cf ===

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# 
==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# 
==========================================================================
smtp      inet  n       -       n       -       -       smtpd 
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup 
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX 
loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail 
($recipient)
#
# Other external delivery methods.
#
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/lib/bsmtp/bsmtp -t$nexthop -f$sender 
$recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store 
${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

=== end of master.cf ===

The log (at /var/log/mail.log) follows :-

=== begin of error log ===

< Jul 28 08:31:51 imapsv02 postfix/master[17401]: daemon started -- 
version 2.5.1, configuration /etc/postfix
< Jul 28 08:32:01 imapsv02 postfix/smtpd[17407]: connect from 
imapsv02.auth.hk1.sml.citizen.co.jp[10.144.1.50]
< Jul 28 08:32:23 imapsv02 postfix/smtpd[17407]: 78C2F25E6F: 
client=imapsv02.auth.hk1.sml.citizen.co.jp[10.144.1.50]
< Jul 28 08:32:23 imapsv02 postfix/master[17401]: warning: process 
/usr/lib/postfix/cleanup pid 17410 exit status 2
< Jul 28 08:32:23 imapsv02 postfix/master[17401]: warning: 
/usr/lib/postfix/cleanup: bad command startup -- throttling

=== end of error log ===

I have disabled chroot in SMTP but Postfix failed with an error "451 4.3.0 
Error: queue file write error"  :-

>Trying 10.144.1.50...
>Connected to imapsv02.auth.hk1.sml.citizen.co.jp.
>Escape character is '^]'.
>220 imapsv02.auth.hk1.sml.citizen.co.jp ESMTP Postfix (Ubuntu)
helo auth.hk1.sml.citizen.co.jp
>250 imapsv02.auth.hk1.sml.citizen.co.jp
mail from: j...@sml.citizen.co.jp
>250 2.1.0 Ok
rcpt to: venus....@auth.hk1.sml.citizen.co.jp
>250 2.1.5 Ok
data
>354 End data with <CR><LF>.<CR><LF>
This is a line text.
>451 4.3.0 Error: queue file write error
bye
>221 2.0.0 Bye

Please help to advise what is the problem.

Thanks a lot.

John Mok






mouss <mo...@ml.netoyen.net>
Sent by: owner-postfix-us...@postfix.org
07/28/2009 05:40 AM
Please respond to mouss+nobulk

 
        To:     postfix-users@postfix.org
        cc: 
        Subject:        Re: [Re: virtual_alias_maps works with hash but not 
LDAP (Postfix 2.5.1)]


John/SML a écrit :
> 
> [snip]
> 
> however, there is an error about cleanup server in the verbose log when
> using LDAP :-


mouss said:

>> next time, do not show VERBOSE logs unless asked. ...


> 
> [verbose log ignored]
> 
> I googled the problem, but find no clue. Any idea?
> 

Please be collaborative, and show the infos that we need to see in order
to help you. This is described in the DEBUG README. In particular:
- show 'postconf -n' output
- show master.cf
- show NORMAL logs (not verbose)

also, it would be appropriate to test the SAME config with ldap and with
hash, to make sure that the problem only happens with ldap.


Reply via email to