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

Re: wrong From: and/or Return-Path:



echo "Reply-To: Horacio <homega@vlc.servicom.es>"X-Mailer: ELM [version 2.4ME+ PL39 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1576      

Martin Bialasinski dixit:
> 
> 
> [Headerrewriting with smail]
> 
> Well, I send it to the list. Shouldn't be a problem, right?

No problem at all, thanks.

The problem is with the stuff you sent... I get an "/etc/smail/transports
unexpected end of string" message.  OTH, am I supposed to rewrite smtp, or
just add the smtp-remap?  and... agr30... is that a variable or a constant
for your email?

Thanks.
> 
> Try this (I got it from someone else some time ago):
> 
> -----[/etc/smail/routers]-----
> smart_host:
> 	driver=smarthost, transport=smtp-remap;
> 	path=your.providers.smtp.host
> 
> - -----[/etc/smail/transports]-----
> 
> [...]
> 
> smtp-remap:
> 	driver=tcpsmtp, max_addrs=100, -max_chars, inet,
> 	remove_header="From",
> 	insert_header="From: ${lookup:from:lsearch{maps/from}{$value}{agr30@uni-koeln.de ($from: $fullname)}}",
> 	remove_header="Message-ID",
> 	insert_header="Message-ID: <$id@$primary>",
> 	insert_header="Sender: ${lookup:from:lsearch{maps/from}{$value}{agr30@uni-koeln.de ($from: $fullname)}}";
> 	use_bind, defer_no_connect, -local_mx_okay, defnames
> 
> - -----[/etc/smail/maps/from]-----
> root	agr30@uni-koeln.de (root)
> martinb	agr30@uni-koeln.de (Martin Bialasinski)
> robot	martin@internet-treff.uni-koeln.de (Testuser)
> - -----[end]-----
> 
> So, smail will use the address on the right for the user on the
> left. If the user is not found in the file, the default address in the 
> transports file will be used.
> 
> HTH,
> 	Martin

-- 
Un saludo,

Horacio
------------------------
homega@vlc.servicom.es
------------------------


Reply to: