Mail not delivered to local users: status=deferred (mail transport unavailable)

2009-03-29 Thread Tobi

Hi All,
I set up an after-queue content filter following the instructions on
http://www.postfix.org/FILTER_README.html .
Everything works fine except that mail directed to local users is
deferred when it is re-injected to postfix after the content filter.
However, virtual and remote addresses work.
I have the trivial-rewrite, qmgr, local, and error daemons running
with the -v switch.
Here is a `grep id mail.log`  for a re-injected mail:

===
postfix/smtpd[22439]: BA9452DA112C: client=localhost[127.0.0.1]
postfix/cleanup[22435]: BA9452DA112C: message-  
id=20090329202930.dc9872da1...@mail.knmm.de

postfix/qmgr[22419]: qmgr_active_feed: incoming/BA9452DA112C
postfix/qmgr[22419]: qmgr_message_alloc: active BA9452DA112C
postfix/qmgr[22419]: BA9452DA112C: recipient limit 5000
postfix/qmgr[22419]: BA9452DA112C: from=a...@mail.knmm.de, size=516,  
nrcpt=1 (queue active)
postfix/qmgr[22419]: qmgr_peer_select: BA9452DA112C retry 4.3.0 mail  
transport unavailable (1 of 5)

postfix/qmgr[22419]: qmgr_job_retire: BA9452DA112C
postfix/qmgr[22419]: send attr queue_id = BA9452DA112C
postfix/error[22442]: BA9452DA112C: to=a...@mail.knmm.de,  
relay=none, delay=0.17, delays=0.02/0.13/0/0.02, dsn=4.3.0,  
status=deferred (mail transport unavailable)

postfix/qmgr[22419]: qmgr_active_done: BA9452DA112C
postfix/qmgr[22419]: wakeup BA9452DA112C after 300 secs
postfix/qmgr[22419]: qmgr_active_defer: defer BA9452DA112C
postfix/qmgr[22419]: qmgr_job_free: BA9452DA112C local
postfix/qmgr[22419]: qmgr_job_free: BA9452DA112C retry
===

Here is my master.cf section for the re-injection smtpd:

===
127.0.0.1:10025 inetn   -   y   -   -   smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o relay_recipient_maps=
 -o mynetworks=127.0.0.0/8
 -o smtpd_restriction_classes=
 -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_error_sleep_time=0
 -o smtpd_soft_error_limit=1001
 -o smtpd_hard_error_limit=1000
 -o smtpd_client_connection_count_limit=0
 -o smtpd_client_connection_rate_limit=0
 -o smtpd_authorized_xforward_hosts=127.0.0.0/8
 -o
receive_override_options 
=no_address_mappings,no_unknown_recipient_checks,no _header_body_checks

===

The local destination domain is included in mydestination.
My transport map has only one entry for an external domain.
I tried removing the '-o receive_override_options=no_address_mappings'
and '-o local_recipient_maps=', but nothing changed.
I'm out of ideas.

I really appreciate your help.

Thanks,

Tobi 


Re: Mail not delivered to local users: status=deferred (mail transport unavailable)

2009-03-29 Thread Wietse Venema
Tobi:
 Hi All,
 I set up an after-queue content filter following the instructions on
 http://www.postfix.org/FILTER_README.html .
 Everything works fine except that mail directed to local users is
 deferred when it is re-injected to postfix after the content filter.
 However, virtual and remote addresses work.
 I have the trivial-rewrite, qmgr, local, and error daemons running
 with the -v switch.
 Here is a `grep id mail.log`  for a re-injected mail:

Don't turn on verbose logging. You're overwhelming the log
with useless information.

Instead look at all the screams for help that Postfix already logs.

http://www.postfix.org/DEBUG_README.html#logging

Wietse


Re: Mail not delivered to local users: status=deferred (mail transport unavailable)

2009-03-29 Thread Tobi

On Mar 29, 2009, at 5:10 PM, Wietse Venema wrote:


Tobi:

Hi All,
I set up an after-queue content filter following the instructions on
http://www.postfix.org/FILTER_README.html .
Everything works fine except that mail directed to local users is
deferred when it is re-injected to postfix after the content filter.
However, virtual and remote addresses work.
I have the trivial-rewrite, qmgr, local, and error daemons running
with the -v switch.
Here is a `grep id mail.log`  for a re-injected mail:


Don't turn on verbose logging. You're overwhelming the log
with useless information.

Instead look at all the screams for help that Postfix already logs.

http://www.postfix.org/DEBUG_README.html#logging

Wietse



Wietse,

Thanks much for pointing this out.
It turned out that the problem was caused by:

postfix/local[29798]: fatal: main.cf configuration error:  
mailbox_size_limit is smaller than message_size_limit


My bad.

Many thanks for your support and the great work on postfix!

Tobi