-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 8 May 2007, Justin McAleer wrote:
Steffen Kaiser wrote:
msgid=200705080749.l487nclf029596@ux-2s11-9.inf.fh-bonn-rhein-sieg.de: Return-Path missing, rejection reason: Not enough disk space May 8 09:49:53 ux-2s11-9 sendmail[29618]: l487nclf029596: to="| /etc/mail/runde", ctladdr=dvtest (31045/102), delay=00:00:15, xdelay=00:00:00, mailer=prog, pri=120033, dsn=2.0.0, stat=Sent
Was the return-path of that message indeed empty/missing as indicated? Can you show the entire log history for message id l487nclf029596? Of course, if there was no return-path, then no bounce would be generated.
History of sendmail? Dunno, but here it is: May 8 09:49:45 ux-2s11-9 sendmail[29596]: l487nclf029596: from=root, size=33, class=0, nrcpts=1, msgid=<200705080749.l487nclf029596@ux-2s 11-9.inf.fh-bonn-rhein-sieg.de>, relay=root@localhost May 8 09:49:45 ux-2s11-9 sendmail[29596]: l487nclf029596: to="| /etc/mail/runde", delay=00:00:07, mailer=prog, pri=30033, stat=queued May 8 09:49:53 ux-2s11-9 deliver(dvtest): Loading modules from directory: /usr/local/dovecot/lib/dovecot/lda May 8 09:49:53 ux-2s11-9 deliver(dvtest): Module loaded: /usr/local/dovecot/lib/dovecot/lda/lib10_quota_plugin.so May 8 09:49:53 ux-2s11-9 deliver(dvtest): Module loaded: /usr/local/dovecot/lib/dovecot/lda/lib20_mail_log_plugin.so May 8 09:49:53 ux-2s11-9 deliver(dvtest): Module loaded: /usr/local/dovecot/lib/dovecot/lda/lib90_cmusieve_plugin.so May 8 09:49:53 ux-2s11-9 deliver(dvtest): maildir: data=/home/dvtest/MailDir:CONTROL=/var/cache/dovecot/31045/control:INDEX=/var/cache/do vecot/31045/index May 8 09:49:53 ux-2s11-9 deliver(dvtest): maildir: root=/home/dvtest/MailDir, index=/var/cache/dovecot/31045/index, control=/var/cache/do vecot/31045/control, inbox= May 8 09:49:53 ux-2s11-9 deliver(dvtest): fs quota add storage dir = /home/dvtest/MailDir May 8 09:49:53 ux-2s11-9 deliver(dvtest): fs quota block device = /dev/mapper/mailstud-mailstud May 8 09:49:53 ux-2s11-9 deliver(dvtest): fs quota mount point = /home May 8 09:49:53 ux-2s11-9 deliver(dvtest): msgid=200705080749.l487nclf029596@ux-2s11-9.inf.fh-bonn-rhein-sieg.de: save failed to INBOX May 8 09:49:53 ux-2s11-9 deliver(dvtest): msgid=200705080749.l487nclf029596@ux-2s11-9.inf.fh-bonn-rhein-sieg.de: Return-Path missing, rejection reason: Not enough disk space May 8 09:49:53 ux-2s11-9 sendmail[29618]: l487nclf029596: to="| /etc/mail/runde", ctladdr=dvtest (31045/102), delay=00:00:15, xdelay=00:0 0:00, mailer=prog, pri=120033, dsn=2.0.0, stat=Sent
=====================
Well, I have three problems with the situation:
a) sendmail will send bounces easily, when Deliver's exit code is != 0 and != Tempfail. Moreover, the sendmail log wouldn't claim that the mail had been delivered successfully in this case. You can return any message by printing to stdout or stderr.
b) "rejection reason: Not enough disk space" is not a permanent, but a temporary failure. error = mail_storage_get_last_error(storage, &syntax, &temporary_error); in src/deliver/deliver.c near line 700 should set temporary_error.
c) If Deliver cannot send the bounce - for whatever reason -, it had not saved the message either, hence, it must not simply ignore the fact, but at least should tempfail the mail. So I do interprete the "return smtp_client_close(smtp_client);" near line 121 of src/deliver/mail-sent.c as well for the case that the rejection is attempted.
You have been right, sendmail does not put Return-Path into the mail, but a From<SPACE> only, when using the .forward mechanism. When using Deliver as mailer, there is the Return-Path.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRkF1Ty9SORjhbDpvAQJoDQgA07vkOdiDHsROUEClnhLsGQDzX0HL+Y3l bpOFaCvb5BIJEoZEHkbXFEvau+qDAsxs47iC8X4cXaFoLsyUpH+vmM3Kb2wMEmyI +iuYCl8q1zEKEj/mWb+Z0a9BCr2KM5ECyX8hsake4czrzOx9y0QCUx6f5SiJHRkj mYfLi2N4J/Yrva2C9bXADfYo/5rSF5UKnVvIeqKMu0vOKC6AS/Ayea5t31edaJY9 Ew8PadroAgGKsBSZfElyDbUIkbKMAEnJ5cebzV4dVjK0tGva7ANo18FNou8UM5Cz UPmUZ6y7nG6fEAzYXV3r5Pi3A93U2YTWWgXyRjRuPra/0cZ9PZ83Qw== =2i7K -----END PGP SIGNATURE-----