The problem is fixed, thanks to everybody responded.
It's all about "metoo" option for the mail(1).

I didn't expect mail(1) to do alias expansion on its own.
I thought it was done by mail.local, which in its turn was reading
sendmail.cf

Also, the man page for mail(1) is somewhat confusing:
     metoo   Usually, when a group is expanded that contains the sender, the
             sender is removed from the expansion.  Setting this option causes
             the sender to be included in the group.
I read it several times before, and was sure it was only about a
group alias set for mail(1) in .mailrc
It also seems to me that there was some change (in sendmail bandled
with 3.x and later 4.x) in the way local mail is handled, 
but I might be wrong on that.

Igor


Igor Roshchin wrote:

> I am not sure how consistent this is yet, exactly what circumstances
> lead to this problem, and that's why I am not filing this as a PR yet.
> Maybe somebody has some insight on this problem:
> 
> I am not sure if this happens every time, but at least, very often:
> When I am sending an e-mail to an address that is an alias in
> /etc/aliases, pointing to several local addresses,
> and using mail(1), I am not receiving that message myself,
> even though my address is included in that alias, and /etc/sendmail.cf
> is set to
> O MeToo=True
> 
> This is happening on a 4.3-RELEASE system, and I haven't had problems
> with previous (at least 3.x) systems.
> 
> Am I missing something related to mail.local (or lmtp) configuration ?



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to