echo "Reply-To: Horacio <[EMAIL PROTECTED]>"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/[EMAIL PROTECTED] > ($from: $fullname)}}", > remove_header="Message-ID", > insert_header="Message-ID: <[EMAIL PROTECTED]>", > insert_header="Sender: ${lookup:from:lsearch{maps/[EMAIL PROTECTED] > ($from: $fullname)}}"; > use_bind, defer_no_connect, -local_mx_okay, defnames > > - -----[/etc/smail/maps/from]----- > root [EMAIL PROTECTED] (root) > martinb [EMAIL PROTECTED] (Martin Bialasinski) > robot [EMAIL PROTECTED] (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 ------------------------ [EMAIL PROTECTED] ------------------------