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

Re: [cobalt-developers] aliases and viertusertable



Ariel Manzur wrote:

> I'm writing a "free e-mail" system (stupid portals..) to use on a RaQ3i,
> and I have some questions:
> 
> - is there any open sourve solution alredy existing for that? :-)

Yes.  One of them is called "imp", I believe.

> - is there any documentation about the "aliases" and "virtusertable"?

"Sendmail", the book, Bryan Costales with Eric Allman (Eric Allman wrote
the original Sendmail), 1997, O'Reilly.  Available from Amazon and other
sources, us$39.95.

> I saw
> this on /etc/aliases:
> 
> user: "|/path/vacation.pl parameters"

Okay...

> So I tryed to put this on /etc/virtusertable:
> 
> @free_email_domain.com  "|/bin/cat>>/path/%1"

Not okay.

/etc/virtusertable can ONLY send to a user or an alias on the machine;
nothing else.

> So I get all the e-mails for the users on a text file. I would store the
> e-mails on a database, so I'd do this:
> 
> @free_email_domain.com  "|/path/deliver.pl %1"
> 
> But it didn't work..

You did remember to do the "makemap", right?  Good.  But it still won't
work.

> Any ideas on how to do this?

Yes.

In /etc/virtusertable, replace yourline with:

@free_email_domain.com	free_email

And then run the makemap.

In the aliases file (actually you'd be better of creating a new aliases
file, so as to make sure you don't interfere with the gui
administration) add the following line:

free_email:	"|/path/deliver.pl

And since you've lost the "recipient" part (the left side of the @
sign), you now need your deliver.pl program to parse it out of the
topmost "Received:" line, since you can't pass it as "%1".

I hope this helps.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205