Closed Bug 50159 Opened 24 years ago Closed 24 years ago

Postfix's sendmail analogon chokes on "-ODeliveryMode=deferred" (Fix included :-)

Categories

(Bugzilla :: Bugzilla-General, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
Bugzilla 2.12

People

(Reporter: e.maryniak, Assigned: justdave)

References

()

Details

In file 'processmail', line #587 this statement:

    open(SENDMAIL, "|/usr/lib/sendmail -ODeliveryMode=deferred -t") ||
      die "Can't open sendmail";

causes Postfix's sendmail analogon _not_ to send the mail, because it does
not support the "-ODeliveryMode=deferred" flag.
Therefore, it is simply fixed by:

    open(SENDMAIL, "|/usr/lib/sendmail -t") || die "Can't open sendmail";

if you run Postfix. Postfix provides sendmail, mailq and some other
programs for easy migration from sendmail but apparently this -O flag
is not supported (-t is supported and mentioned in the man page).

Maybe it's an idea to put a '$postfix = 0 (no) or 1 (yes)' in checksetup.pl
and localconfig? Under SuSE Linux 6.4 you can test for Postfix presence with:

    my $postfix = (-x "/usr/sbin/postfix") ? 1 : 0;

Fyi: Postfix (www.postfix.org) is a very secure mta, developed and
open-sourced by Wietse Venema working for IBM and aimed at replacing
sendmail. Postfix has better security, maintainability and configurability,
performance and disk usage than sendmail (it's worth looking at!).
I think this was fixed in bug 50698.  Please take a look and let me know if you 
agree.  A parameter was added that allows you to set whether or not the 
-ODeliveryMode=deferred is passed in the sendmail command line.

If I don't hear any objections within a week, I will mark this as fixed.
Assignee: tara → dave
Fixed by bug 50698, per private email from reporter.

Found a couple other semi-related things that he pointed out, but they'll get 
their own bug reports.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
In search of accurate queries....  (sorry for the spam)
Target Milestone: --- → Bugzilla 2.12
V.
Status: RESOLVED → VERIFIED
I release noted this BTW.
Moving closed bugs to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: other → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.