Re: Rewriting Addresses in SMTPD

2009-06-01 Thread Gilles Chehade
On Mon, Jun 01, 2009 at 04:11:29PM +0200, Jacek Masiulaniec wrote:
> On Sun, May 31, 2009 at 10:56:50PM -0400, Aaron W. Hsu wrote:
> > Is there a way in smtpd(8) yet, to do something like genericstables in 
> > sendmail? Right now, when my client sendmail sends out a mail, it 
> > rewrites the envelope and the From addresses to be valid email addresses 
> > with the domain that I want tacked on to the username. I couldn't 
> > find a way to do this in smtpd.conf(5), which seems to have aliases 
> > and virtual domain maps for receiving mail, but not sending it.
> 
> We don't have it yet.  We will at one point.
> 
> > If this is better done before the mail is sent to smtpd(8), is there 
> > a way to do this with mail(1)?
> 
> You may pass sendmail options to mail(1), eg.:
> 
>   echo test | mail root -f f...@foo.com -F "Fred"
> 
> Not sure how useful that is in your case.
>

Ooops, i replied in private, but basically what i said was:

it is on a todo list, we'll work on it, but there's stuff to finish
prior to that.

Gilles



Re: Rewriting Addresses in SMTPD

2009-06-01 Thread Jacek Masiulaniec
On Sun, May 31, 2009 at 10:56:50PM -0400, Aaron W. Hsu wrote:
> Is there a way in smtpd(8) yet, to do something like genericstables in 
> sendmail? Right now, when my client sendmail sends out a mail, it 
> rewrites the envelope and the From addresses to be valid email addresses 
> with the domain that I want tacked on to the username. I couldn't 
> find a way to do this in smtpd.conf(5), which seems to have aliases 
> and virtual domain maps for receiving mail, but not sending it.

We don't have it yet.  We will at one point.

> If this is better done before the mail is sent to smtpd(8), is there 
> a way to do this with mail(1)?

You may pass sendmail options to mail(1), eg.:

  echo test | mail root -f f...@foo.com -F "Fred"

Not sure how useful that is in your case.



Rewriting Addresses in SMTPD

2009-05-31 Thread Aaron W. Hsu
Hello again,

Is there a way in smtpd(8) yet, to do something like genericstables in 
sendmail? Right now, when my client sendmail sends out a mail, it 
rewrites the envelope and the From addresses to be valid email addresses 
with the domain that I want tacked on to the username. I couldn't 
find a way to do this in smtpd.conf(5), which seems to have aliases 
and virtual domain maps for receiving mail, but not sending it.

If this is better done before the mail is sent to smtpd(8), is there 
a way to do this with mail(1)?

Thanks!

-- 
Aaron W. Hsu  | 
"Government is the great fiction, through which everybody endeavors to
live at the expense of everybody else." -- Frederic Bastiat
+++ ((lambda (x) (x x)) (lambda (x) (x x))) ++