6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] problem with mail...
FromSent OnAttachments
Jon NelsonDec 2, 2003 8:45 am 
Jeff JansenDec 2, 2003 10:12 am 
Sam VarshavchikDec 2, 2003 3:49 pm 
Jon NelsonDec 2, 2003 4:42 pm 
Sam VarshavchikDec 2, 2003 7:06 pm 
Jon NelsonDec 2, 2003 8:45 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] problem with mailq command?Actions...
From:Jeff Jansen (ivb_@sil.org)
Date:Dec 2, 2003 10:12:39 am
List:net.sourceforge.lists.courier-users

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.