On Tuesday 02 December 2003 16:45, Jon Nelson wrote:
Questions:
1. What went wrong?
If you want multiple recipients you specify them separated by whitespace, not
by a comma. This message was injected with ONE recipient since there was no
whitespace between the address "fo...@domain.com,ba...@domain.com" is seen as a
single address.
You needed to use
mail -s 'subject here' fo...@domain.com ba...@domain.com
2. why is 'ba...@domain.com' after the host= line
Courier parses the address looking for a '@'. Everything after the '@' is
assumed to be the domain. So in the address "fo...@domain.com,ba...@domain.com",
"domain.com,ba...@domain.com" is what's after the first '@'. Hence courier
sets that as the mailhost.
3. most importantly, why didn't the 'mailq' command show the message.
I ran mailq both as a normal user and as root, and the mailq
executable is setuid to daemon, mode daemon.daemon, and the queue
files were jnelson.daemon.
Well two out of three isn't bad! ;-)
I just submitted a message using exactly the line that you indicated and I can
see the message with mailq run both as root and as the user who injected the
message.