We recently had a discussion in the inn-workers mailing list about
mails sent to moderators. The common command line used to send such
mails is:
/usr/lib/sendmail -oi -oem %s
where %s is replaced by the address of the moderator.
Could it be improved to notably receive errors, and how?
As a few mail experts lurk in this newsgroup, I believe we'll manage to find the right options to use :-)
I've seen that we have an exception with the news2mail gatewaying program, which uses additional flags:
<mta without %s> -ee -odq -fxxx -pNNTP:pathhost addresses
I don't know what "-ee" means. Does someone know? Is it still a useful flag?
-odq queues mails. It means that "sendmail -q" should be periodically
run to actually send the mails. I wonder whether that's really
useful. Maybe a flag should be added to news2mail to configure that behaviour (for backwards compatibility: if -q is given to news2mail,
then it does not queue messages).
I am unsure -pNNTP:pathhost is really necessary... Any thoughts?
I've seen that we have an exception with the news2mail gatewaying program, which uses additional flags:
<mta without %s> -ee -odq -fxxx -pNNTP:pathhost addresses
I don't know what "-ee" means. Does someone know? Is it still a useful flag?
-eX is a historical synonym for -oeX, and -oee means that if an error in
is encountered when sending the message then it should be reported by an email, with the exit status always being 0. Contrast -oem where you get errors by mail but (presumably) also a nonzero exit status.
(Assuming the administrator actually wants to see errors) it should
probably be -oee or -oem depending on what the calling process expects
from the MTA’s exit status.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:07:58 |
Calls: | 10,387 |
Calls today: | 2 |
Files: | 14,061 |
Messages: | 6,416,770 |