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

[cobalt-developers] sendmail options.



Hi..

I'm writting this "free webmail" script on a RaQ3, I'm done actually, and I
have this problem:

For the delivery of incoming msgs, I send all mails to an alias and then
put this on /etc/aliases:

free-mail:	"|/usr/bin/delivery.pl"

And on delivery.pl I parse the topmost "Recieved" header to find out who
gets the mail. The problem is with local mails, when user1@xxxxxxxxxxxx
sends a mail to user2@xxxxxxxxxxxxx I use 

open(SENDMAIL, "|$sendmail -oi -t");

to send the mails, so sendmail justs delivers the e-mail without any
"recieved" header, so I can't know who is the mail for (specially if there
is more than 1 local recipient).

So, can anyone sugest a solution? I looked at sendmail's man page, maybe
there is an option to make it handle local mail as non-local mail, or
something like that? I didn't find anything.

Thanks.. Bye.

Ariel.