[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Postmaster emails disappearing



"Roy A. Urick" wrote:

> *grumble* I did the sendmail -bv , and got that it was deliverable, but
> doesnt show its being redirected as yours does.
> 
> [admin admin]$ /usr/sbin/sendmail -bv admin
> admin... deliverable: mailer local, user admin

Turns out we learn something new every day.

Here's what the change in the "gui" under administrator does...

it creates a line in aliases as follows:

sys:    admin, jeff@xxxxxxxxxxx

Note that it doesn't redirect "admin" anywhere; it just directs "sys" to
admin and to the email address you put into the gui.

The line:

admin:  jeff@xxxxxxxxxxx

was in aliases.local, that I created myself.

Note that I not only created the alias, I also created the entire
database, aliases.local, and aliases.local.db.

Here's how:

Create the file aliases.local in the same directory as aliases.  In my
RaQ that's /etc/mail; your mileage may vary.

In that file, add a line like this:

admin:	jeff@xxxxxxxxxxx

(that's a <tab> between the columns).

Then find the lines in sendmail.cf that look something like this:

O AliasFile=/etc/mail/aliases
O AliasFile=/etc/mail/aliases.majordomo

Then add a line right under that:

O AliasFile=/etc/mail/aliases.local

and save sendmail.cf.

Then restart sendmail:

[root init.d]# /etc/rc.d/init.d/sendmail restart

Now you can add lines to aliases.local any time you want, just remember
to restart sendmail afterwards.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net
P. O. Box 52672, Riverside, CA  92517
voice: (909) 778-9980  *  fax: (702) 548-9484