Closed Bug 93822 Opened 21 years ago Closed 2 months ago

It should be possible to use /usr/sbin/sendmail

Categories

(MailNews Core :: Networking: SMTP, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: hpa, Unassigned)

References

()

Details

The standard method of submitting mail on a Linux system is spawning
/usr/sbin/sendmail (which may or may not actually be Sendmail, but can be any
MTA.)  The Linux Standards Base specification (http://www.linuxbase.org/)
contains a detailed description of the set of arguments any MTA should be able
to handle (which includes the -bs option for speaking SMTP protocol.)

It would be highly desirable to support the standard API for submitting outgoing
mail, especially in this day and age when outgoing mail servers tend to be
highly restricted for antispam security reasons.  The system MTA can obtain its
configuration from DHCP or IPCP or otherwise have information that an MUA like
Mozilla would not have.  Although being able to override this and use a
different mechanism is useful, not being able to use the standard
system-provided mechanism at all is a serious problem.
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: nbaca → sheelar
*** Bug 132275 has been marked as a duplicate of this bug. ***
changing QA contact from Sheela to Gregg
*** Bug 158609 has been marked as a duplicate of this bug. ***
IMHO, we need to again concentrate all access to sendmail, and allow people to
modify the path for sendmail in localconfig.
This will hopefully be fixed in bug 84876, using 

for sendmail (from attachment 130959 [details] [diff] [review])

+sub DoSendmailMailing {
+    my ($envFrom, $envTo, $msgHeaders, $msgBody) = @_;
+    my $sendmailExecutable = Bugzilla::Config::Param('mailmodargs');
+
+    open(SENDMAIL, "|$sendmailExecutable") or 
+     ::ThrowCodeError('sendmail_mailing_failed', { openrv => $! } );
+    print SENDMAIL "$msgHeaders\n\n";
+    print SENDMAIL "$msgBody\n";
+    close(SENDMAIL);
+
+    return 1;
+}

with Bugzilla::Config::Param('mailmodargs'); being the name of the executable
centralized

but sendmail is going to be deprecated for Bugzilla installations in favor of
Net::SMTP
Depends on: 84876
Breaking dependency.  This has absolutely nothing to do with Bugzilla, Brian is
confused.  The reporter is requesting that on unix/linux systems Mozilla
MailNews be able to send mail via sendmail.
No longer depends on: 84876
Use of /usr/sbin/sendmail would be nice as Mozilla Mail seem to add imaginary
hostname after HELO/EHLO command:

Received: from iki.fi (localhost [127.0.0.1])
        by dsl-hkigw4q31.dial.inet.fi (Postfix) with ESMTP
        id D74A8240C1C9; Sat,  6 Mar 2004 16:19:47 +0200 (EET)

This will confuse some servers that will check received headers for validity in
effort to reduce spam. I don't get into merits or validity of such checks, I am
 just stating facts.

I think in "Mail & Newsgroups Account Settings" the topic "Outgoing Server
(SMTP) Settings" should be renamed to "Outgoing Mail Settings", where you could
select use of sendmail (on the platforms that support it) or SMTP relay server
to be used.

Aside note: I am happy that there is already TLS available. =)
Product: MailNews → Core
Isn't this fixed in thunderbird?
No, (In reply to comment #8)
> Isn't this fixed in thunderbird?

No, it isn't.
Flags: wanted-thunderbird3?
Assignee: mscott → nobody
Product: Core → MailNews Core
QA Contact: sheelar → networking.smtp
wanted‑thunderbird3-
Flags: wanted-thunderbird3? → wanted-thunderbird3-
Depends on: ipc
Duplicate of this bug: 59736
Type: defect → enhancement

No something we would implement. The value would be questionable, and testing or bug diagnosis would become a nightmare.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.