Hi,

We are using both mail forwarding (with an alias_database and
$HOME/.forward - files), and a mailbox_size_limit for the user
mailboxes. The local delivery is done by postfix/local.

The problem now is: If the mailbox is full, also the forwarding does not work
anymore -- postfix/local generates a SOFTBOUNCE before trying to forward the
mail:

postfix/smtpd[12341]: A9B8515C6F8: client=localhost.localdomain[127.0.0.1]
postfix/cleanup[12335]: A9B8515C6F8: 
message-id=<20101022181430.e253115c...@...de>
postfix/qmgr[5039]: A9B8515C6F8: from=<r...@....de>, size=855, nrcpt=1 (queue 
active)
postfix/local[12342]: A9B8515C6F8: to=<a...@....de>, relay=local, delay=1, 
delays=0/0.01/0/1, dsn=4.2.0, status=SOFTBOUNCE (can't create user output file. 
Command output: procmail: Error while writing to "/var/mail/abf" )


When there is space left in the mailbox, the mail is locally delivered and then
also forwarded correctly:

postfix/qmgr[5039]: A9B8515C6F8: from=<r...@....de>, size=855, nrcpt=1 (queue 
active)
postfix/local[12401]: A9B8515C6F8: to=<a...@.....de>, relay=local, delay=425, 
delays=425/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: 
/usr/bin/procmail -a "$EXTENSION")
postfix/local[12401]: A9B8515C6F8: to=<a...@.....de>, relay=local, delay=425, 
delays=425/0.01/0/0.01, dsn=2.0.0, status=sent (forwarded as B4E2015C0FA)
postfix/qmgr[5039]: A9B8515C6F8: removed


Is there an (easy) way how I could convince postfix to forward mails
also if local delivery is impossible due to mailbox_size_limit? E.g.
exchanging the order (first forwarding, then delivery in the local
mailbox (and this local delivery maybe followed by the SOFTBOUNCE))
would be perfect for me. (Then it would be possible to distribute
automatic warn messages to users whose mailbox is full).

The configuration:

service "local" is defined in master.cf as:
local     unix  -       n       n       -       -       local

The relevant parts of "postconf -n" (except myhostname, the
command-direcotries,..):

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
content_filter = smtp:[127.0.0.1]:10024
default_transport = uucp
inet_interfaces = localhost
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 102400000
message_size_limit = 30240000
myorigin = /etc/mailname
readme_directory = /usr/share/doc/postfix
recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
recipient_delimiter = +
relayhost = shuttle
sender_canonical_maps = hash:/etc/postfix/sender_canonical
soft_bounce = yes
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550



Axel

Reply via email to