Reuben (Plexus IT):
> Sep  1 22:06:08 host postfix-local[24106]: cannot chdir to mailname dir
> return+test=bob.com: No such file or directory
> Sep  1 22:06:08 host postfix-local[24106]: Unknown user:
> return+test=bob....@give2partners.org

Above, the plesk_virtual service can't find the user yet it reports
success to Postfix (next logfile record).

> Sep  1 22:06:08 host postfix/pipe[17625]: BE72CEA0255:
> to=<return+test=bob....@give2partners.org>, relay=plesk_virtual, delay=0.39,
> delays=0.32/0/0/0.07, dsn=2.0.0, status=sent (delivered via plesk_virtual
> service)
> Sep  1 22:06:08 host postfix/qmgr[16285]: BE72CEA0255: removed

The plesk_virtual service has returned "successful delivery" (process
exit status 0) to Postfix, therefore Postfix deletes the queue
file.

Instead, the plesk_virtual service should have returned "user
unknown" (process exit status 67) to Postfix.  Process exit status
codes are defined in /usr/include/sysexits.h.

So you have two problems:

1) Making the plesk_virtual service recognize username with extension.

2) Making the plesk_virtual service return non-zero process exit status
numbers in case of error.

        Wietse

Reply via email to