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 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=, 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=,
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