Problem with bounced email to lists defined in aliases

Problem with bounced email to lists defined in aliases

Post by jim » Wed, 21 May 2008 06:40:15


Hello,

On an internal box behind a NAT with hostname similar to
internal.local (OS 10.2.8 Darwin). I have an alias file located at /
etc/mail/aliases which resembles the following:

www: XXXX@XXXXX.COM
admin: XXXX@XXXXX.COM
root: XXXX@XXXXX.COM
me: XXXX@XXXXX.COM
mailgroup:/usr/local/group1
mailgroup2:/usr/local/group2

Additionally, I have a symlink living at /etc/aliases which points to /
etc/mail/aliases. If I generate an internal mail on this box addressed
to admin, root, me, etc. the email will be delivered and forwarded to
XXXX@XXXXX.COM as defined in aliases just fine. However, if I try
to generate an internal email to either one of the groups I've defined
in aliases, I am returned a bounced message which resembles the
following:

From: Mail Delivery Subsystem < XXXX@XXXXX.COM >
Monday - May 19, 2008 2:19 PM
To: < XXXX@XXXXX.COM >
Subject: Returned mail: see transcript for details
The original message was received at Mon, 19 May 2008 14:19:25 -0700
(PDT)
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
/usr/local/group1
(reason: Can't create output)
(expanded from: < XXXX@XXXXX.COM >)

----- Transcript of session follows -----
550 5.0.0 /usr/local/group1... Can't create output

I'm not sure why my aliased groups don't work but my regular addresses
do. The groups USED to work but have ceased to function correctly in
the past 6 months. Any insight would be appreciated.

Thanks,
 
 
 

Problem with bounced email to lists defined in aliases

Post by per » Wed, 21 May 2008 07:52:48

In article
< XXXX@XXXXX.COM > jim
< XXXX@XXXXX.COM > writes:

This (assuming that the file actually has some whitespace between LHS
and RHS) says that mail messages to 'mailgroup' should be written to the
file '/usr/local/group1' (and correspondingly for mailgroup2). It's a
valid thing to specify, but since there's no "group" involved, I suspect
that you want something else. If /usr/local/group1 has a list of e-mail
addresses, the way to reference the list in the alias file is:

mailgroup: :include:/usr/local/group1

Perhaps that's what you want?


This means that sendmail (with your config) doesn't have the privilege
to write to the file - which is probably a good thing if it's a list of
e-mail addresses...

--Per Hedeland
XXXX@XXXXX.COM

 
 
 

Problem with bounced email to lists defined in aliases

Post by jim » Wed, 21 May 2008 08:13:40

Thanks for the reply. see notes below...


Actually, I originally had the word "include" as part of the path but
still received the bounced messages just the same. And yes, the file
group1 contains a list of e-mail addresses.



Since it is a list of e-mail addresses I guess the privileges on the
file are correct. But perhaps privileges are incorrect somewhere else.
 
 
 

Problem with bounced email to lists defined in aliases

Post by per » Wed, 21 May 2008 14:56:21

In article
< XXXX@XXXXX.COM > jim
< XXXX@XXXXX.COM > writes:

So put the ":include:" (note the colons) back in, and report the exact
error you get then - it's not like the ":include:" is optional, as I
explained it completely changes the meaning of the entry. Don't forget
to run 'newaliases'.

--Per Hedeland
XXXX@XXXXX.COM
 
 
 

Problem with bounced email to lists defined in aliases

Post by jim » Wed, 21 May 2008 22:37:23

>

Ah-ha! After your suggestion it now seems to work! I think the syntax
I used before was:

mailgroup2:include:/usr/local/group2

which didn't include the extra colon in front of the word "include"
like you pointed out. On a side note, when I run the command
newaliases I am greeted with a "Command not found" message. I needed
to run sendmail -bi, instead. Regardless, I think I'm back on the
right track! Thanks!!