Modify ↓
Opened 13 years ago
Closed 13 years ago
#10354 closed enhancement (wontfix)
mailx (e.g. mailx-heirloom) is not supported to send notifications
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | notification | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
If I set the following in trac.ini
, it doesn't work:
email_sender = SendmailEmailSender sendmail_path = mailx
The error message I get is:
Sendmail failed with (2, More than one file given with -f Usage: mailx -eiIUdEFntBDNHRV~ -T FILE -u USER -h hops -r address -s SUBJECT -a FILE -q FILE -f FILE -A ACCOUNT -b USERS -c USERS -S OPTION users), command: '[u'mailx', '-i', '-f', u'xxx@yyy.com', u'xxx@gmail.com', u'yyy@gmail.com']
The reason for that is that -r
flag should be used instead of -f
in case of mailx
. So it would be nice to have mailx
supported, for example, by having MailxEmailSender
in addition to SendmailEmailSender
.
Is there any known workarounds?
Attachments (0)
Note:
See TracTickets
for help on using tickets.
As the name of the component implies, we support
sendmail
-compatible mailers, and therefore the command-line options ofsendmail
. You could create aMailxEmailSender
(in a single-file plugin), but adding a complete new component just for one changing option seems a bit overkill. You could also use a wrapper script that callsmailx
with the right options, something like: